Skip to main content

anycluster provides Server-Side clustering of map markers for Geodjango

Project description

anycluster (POSTGIS version)

https://anycluster.org

anycluster provides Server-Side clustering of map markers for Geodjango. It is suitable for large amounts of markers. Depending on your server and personal feeling, it works very well with 200.000 to 500.000 markers.

The postgis version is recommended. There is a mysql version with limited functionality: https://github.com/biodiv/anycluster-mysql

Documentation

http://anycluster.readthedocs.org/en/latest/

ChangeLog

  • [22.04.2023] anycluster 2.0 (breaking changes, see docs), npm, Django 4.x, updated docs
  • [09.09.2019] support for Django 2.x and above (python 3), added leaflet support
  • [08.10.2015] major code improvements
  • you now need to add {% csrf_token % } somewhere in your template

Features

This application offers 2 methods of clustering:

  • grid-based clustering
  • clustering based on geometric density of the points (needs PSQL extension)
  • cluster contents of any geographic area defined as Polygon/Multipolygon
  • get all elements contained in a cluster

... and has a builtin caching mechanism: if the user pans a map, only the new areas are processed.

And lots of optional customization possibilities:

  • works with OpenLayers, google maps and Leaflet
  • define what happens if you click on a cluster
  • use your own cluster graphics
  • define gridsize and other cluster parameters
  • apply filters to your clusters
  • use specialized markers/pins if count is 1

Performance Tips

  • index your GIS database columns correctly
  • usage of a SSD can be 10-20 times faster compared to HDD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anycluster-2.4.0.tar.gz (84.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anycluster-2.4.0-py3-none-any.whl (96.7 kB view details)

Uploaded Python 3

File details

Details for the file anycluster-2.4.0.tar.gz.

File metadata

  • Download URL: anycluster-2.4.0.tar.gz
  • Upload date:
  • Size: 84.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for anycluster-2.4.0.tar.gz
Algorithm Hash digest
SHA256 9fef0ac4852f2e3871037a9ffb442399c909d973a41db0d7e300fbf5ee83e49d
MD5 52021a7d48964179f706cc74cafe7296
BLAKE2b-256 d5895cdeac2bc60a21bf5d7e5957bb349e76f80429a1d375797275aecdbc6a55

See more details on using hashes here.

File details

Details for the file anycluster-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: anycluster-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 96.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for anycluster-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fa71e7674cccbc06e6b6e9d5c707be7aa59577b7c89ecdbafec8ac5f9a9d56c
MD5 f5203e974d27f07a9a7cc89d9afcc8a4
BLAKE2b-256 c3a04c704c4be9a9135d5729e119d4e6e3946d719e9743b1c58c70191f0cd5c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page