Dynamic Marker Cluster Javascript?
|
#1 -
3/9/2011 4:24:52 PM
|
Reporta abuso
|
PermaLink
|
|
Dynamic Marker Cluster Javascript?
|
|
|
|
|
Hi again!
So I've moved to Marker Clusters, very very cool. Problem, it doesn't like 10,000 markers :P
Think I need a way to update the marker cluster on page zoom, so i can show maybe 1,000 in cluster, and as you zoom in it re-loads with bound-restricted markers.
I've tried the obvious, return markerCluster.ToString() - but doesn't seem to work. Looks like you can only instantiate a marker cluster on map load/page load???
Is it possible, or should I be looking at alternate solutions for displaying thousands of markers? Any suggestions? lol
Thanks for your time,
Dan.
|
|
|
|
|
|
#2 -
4/13/2011 9:17:35 AM
|
Reporta abuso
|
PermaLink
|
|
RE: Dynamic Marker Cluster Javascript?
|
|
|
I've never done it, but it should be the way
100.000 markers are a lot of markers :D
|
|
|
|
|
|
|
#3 -
3/14/2011 11:38:10 AM
|
Reporta abuso
|
PermaLink
|
|
RE: Dynamic Marker Cluster Javascript?
|
|
|
Sorry - I'm mistaken on one part, I owe you an apology :) does not break on 10,000 markers
My problem is I *might* be loading in 100,000s of markers... if the website becomes big! So I'm going to see if I can repopulate market cluster, on DragEnd... Think that must be the way, if it can be done
|
|
|
|
|
|
|
#4 -
3/14/2011 11:29:43 AM
|
Reporta abuso
|
PermaLink
|
|
RE: Dynamic Marker Cluster Javascript?
|
|
|
Hi Subgurim,
I mean:
Random r.... for (i < 10,000) add new marker
Doing this, crashes the map... Chrome times out and says the web page is broke etc. Works if I do 3,000 but 10,000 it breaks. It might be browser restriction on amount of javascript? Time out etc? Not sure
Anyway, is there a way to dynamically populate a markercluster using javascript loading? eg. when i move around the map and trigger OnZoomEnd, can I re-populate new markers into the markercluster? (I know I can do with normal markers... not sure markerclusters..)
Thanks!
|
|
|
|
|
|
|
#5 -
3/14/2011 9:02:34 AM
|
Reporta abuso
|
PermaLink
|
|
RE: Dynamic Marker Cluster Javascript?
|
|
|
Hi Dan,
What does it mean that the markerclusterer doesn't like 10.000 markers?
As far as I know is one of the best ways of showing a lot of markers.
You can also give a try to the marker manager.
|
|
|
|
|
|
|
#6 -
3/9/2011 4:32:03 PM
|
Reporta abuso
|
PermaLink
|
|
RE: Dynamic Marker Cluster Javascript?
|
|
|
|
I fail to write this in Help section (Again!) Sorry Subgurim, my bad.
|
|
|
|
|