I'm working on a solution for markers at the same location - still! My solution is going to be implemented as an update to my ClusterMarker marker manager.
ClusterMarker detects any group of 2 or more markers whose icons intersect and makes each/any group into a new 'cluster marker'. That's the existing version of ClusterMarker - the new (not yet finished) ClusterMarker will have three options when a cluster marker is clicked: 1) Center and zoom the map to fit all the markers in the cluster. 2) Center the map on the cluster marker and zoom in a level. 3) Open the infowindow displaying links to all the markers in the cluster. Option three contains my solution. If the map is not fully zoomed in then the map is zoomed in until the marker (whose link was clicked in the infowindow) is unclustered. A 'click' event is then triggered on the marker and it's infowindow displayed. But if a link in the cluster marker infowindow is clicked and the map is already fully zoomed in, the cluster marker is removed from the map and the marker whose link was clicked is added to the map and a 'click' event triggered on it. The cluster that the marker belongs to will not be displayed until the marker's infowindow is closed. Take a look at the unfinished code in action:: http://geotagged.comli.com/temp/20090821b/ Green markers are cluster markers and red markers are normal (unclustered) markers. Click a green marker and then 'Show Links' - select a link to a marker and the map will zoom in until that marker is unclustered and display it's infowindow. If you select Terrain map type and zoom the map fully in there will still be a few cluster markers displayed - these are clusters that cannot uncluster as the map cannot zoom in enough to uncluster them. If you center the (fully zoomed in) map on King's Lynn there will a number of cluster markers to choose from. Click one of these cluster markers and then 'Show Links' and choose a marker link. The cluster marker is removed and the marker and it's infowindow are displayed. With the infowindow still open zoom the map out a level at a time and you'll see the marker remains unclustered. Finally close the infowindow and the unclustered marker will disappear and a cluster marker displayed. I have lots more work to do before i release the code as the new version of ClusterMarker but hope to have it available online within a couple of weeks (hopefully sooner). Meanwhile the current older version of ClusterMarker can be found here: http://googlemapsapi.martinpearman.co.uk/articles.php?cat_id=1 (That link is currently not working as my webhost is yet again down but hopefully it'll be back online within a day). Martin. On 26 Aug, 03:48, EH <[email protected]> wrote: > Hi All, > > I am new to google map api. first, I have read the instruction for > posting new discussion, but I haven't even started writing a script > yet so there is no url I can post. I did search the group for > discussions related to my questions, but didn't get any useful > results. > > I read the official basics api guide and several pages after, and it > seems to me that instead of defining boundary coordinates in a map, I > would define the central coordinate and the zoom level. Is there a way > to back out the boundary coordinates (or any information that allows > me to backtrack the coordinates of the four corners?) > > And here's a random/newbie questions about markers. I am trying to > create a map which shows markers to my geotagged pictures. Is there a > good way to still show all the pictures if they are geotagged at > exactly the same coordinates? I am thinking about something like > google earth where multiple thumbnails would appear when a single > marker is clicked, but I haven't seen such an application for maps on > the web. I am not expecting any detailed codes, but just some > guidelines/tips so that I can start trying myself. > > Thanks much in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
