Google maps: mark markers around the entire visible section on the google map screen
I want to show a limited number of markers (let it take 50 or so ...) at any zoom level and in such a way that the markers cover the entire google map screen.
So, if I view the whole world on a map, it will show markers all over the world so as not to exceed a certain number, and if I increase to US, it will only show the previous number of markers in US only. Again, if I move to Canada, then only Canada markers should appear on the map.
I can't - put the manufacturers on a visible region above the map at limited distances, that is, all visible markers maintaining some distance from each other.
a source to share
You might want to learn about "clustering" or "grouping" points into one. It doesn't do exactly what you describe, but it will effectively limit the number of markers you have when you zoom out, and "disable" them after you zoom in.
There are quite a few ways (every third party - the Google API doesn't support it yet), you can look here for one called ClusterMarker: http://googlemapsapi.martinpearman.co.uk/articles.php?cat_id=1 .
a source to share
You must use a marker manager!
See http://code.google.com/p/gmaps-utility-library-dev/ and http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/
a source to share