Yes, I've already tried this, but unfortunately it was not working. But I
found the problem by myself.

My first try (not working):

GMarker marker = new GMarker(new GMarkerOptions(map, location, "click
here"));                        
marker.addListener(GEvent.click, getClickHandler());
map.addOverlay(marker);

My second try (working):

GMarker marker = new GMarker(new GMarkerOptions(map, location, "click
here"));                        
map.addOverlay(marker);
// IMPORTANT: first add the marker to the map
marker.addListener(GEvent.click, getClickHandler());

Thank you anyway.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/gmap3-Geocoder-and-list-of-locations-tp4661836p4661893.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to