Thursday, March 11, 2010

Google maps tips

Getting the current langitude and latitude of the map center while in Google Maps is always useful, just put in your browser's location url: javascript:void(prompt('',gApplication.getMap().getCenter()));

I have also been using clustering to show a set of gmarkers on the map, so that zooming in/out still gives us interesting information, instead of just a bunch of markers all over the place. The library we used was this one: http://googlegeodevelopers.blogspot.com/2009/04/markerclusterer-solution-to-too-many.html. Really good!

Enjoy.

No comments:

Post a Comment