wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Forchel <dirk.forc...@exedio.com>
Subject Re: gmap3 Geocoder and list of locations
Date Mon, 21 Oct 2013 07:08:04 GMT
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message