Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with a server-side clustering implementation #151

Closed
dasjo opened this issue Apr 5, 2013 · 5 comments
Closed

Integration with a server-side clustering implementation #151

dasjo opened this issue Apr 5, 2013 · 5 comments

Comments

@dasjo
Copy link

dasjo commented Apr 5, 2013

hi,

this is just a rough idea and i'm not sure if i will have the resources for implementing this. so please take it mainly as a collection of ideas rather than an actual request to make this happen :)

i have developed Geocluster, a server-side clustering implementation for Drupal that integrates with Leaflet: http://drupal.org/project/geocluster

the clustering works quite well and scales up to 100,000 using mysql and beyond 1,000,000 items using a apache solr implementation of the Geohash-based clustering algorithm.

obviously, the visualization part of my implementation is very rough and leaves a lot of room for improvements :) i think, Leaflet.markercluster has implemented this quite nicely. i'm wondering, if one could extend markercluster to support a hybrid approach: the server provides a clustered result as geojson and the js clustering library would visualize it the same way as markercluster does. the only difference is that sub-requests to the server are issued, if necessary for expanding clusters.

let me know if you are interested adding capabilities of integrating a server-side clustering implementation / your thoughts on implementation-details. here's a link to some discussion on that topic we had in the geocluster issue queue on drupal.org http://drupal.org/node/1914704

regards,
dasjo

@phayes
Copy link

phayes commented May 20, 2013

This is definitely needed.

I can see two separate features that would allow this to happen.

  1. Allow a user to pass a property of the marker to be used to sum the total result. This way we could create clustering using specially crafted "cluster markers" that sum based on the number of sub-items that the server says are in each cluster-marker.
  2. Allow manual attachment of sub-markers to cluster-markers when the user zooms in. That way we could query the server, manually attach each sub-marker, then have the "split / spider" effect.

This is sounding more like a fork of the markercluster package the more I think about it.

@danzel
Copy link
Member

danzel commented Jun 14, 2013

I'm going to say this is outside of the scope of L.MarkerCluster.
Would love to see an implementation of it however!

@dewdad
Copy link

dewdad commented Sep 25, 2016

Any progress on this?

@SimonEast
Copy link

Yes, I've also been looking into solutions for this but not really found any.

This site (ddproperty.com/en/property-map-search) appears to perform server-side clustering of 100,000+ markers, and it appears to use something similar to Leaflet, or maybe a forked version of it or something. Hoping to find out how they achieved it.

@vivekmtuity
Copy link

You can use supercluster, which can load in server side, same functionality as ddproperty.com/en/property-map-search, I am using with node js :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants