Google maps api v2 - tens of thousands of markers

My problem is with markers XXk (aka XX000), atm I have 7k markers and there will be more and bigger problem in the marker database because atm is 4MB (link to my DB http://tinyurl.com/ybau9ce ) and the problem is how fast is the load? for example DOWNLOAD only this, which is now displayed, DOWNLOAD, because I load with ClusterMarker and the problem is not with java, but with loading this database, I think ...

+2


source to share


2 answers


http://code.google.com/apis/maps/documentation/overlays.html

find information about the marker manager

quote from this: "The manager controls the current map viewport and zoom level, dynamically adding or removing markers from the map as they are activated."

Doing this dynamically would require a database with all tokens.



This is a good explanation of how to do it in the link here.

code.google.com/apis/maps/articles/phpsqlajax.html

you can dynamically generate those markers that are within the bounds of the current zoom. After zooming or moving the map, some events will occur, after which you can and know the boundaries of the current view.

Would it help solve this?

+1


source


Why do you want to download all this data at once? You cannot immediately render 7K markers on imo map. I don't know what is the purpose of your question, but I would only have the loaded data that is in focus, for example. displayed and displayed.



0


source







All Articles