You can do something like that (pseudo code) : //create marker GMarker marker = new GMarker(new GLatLng(xx.xxx, xxx.xxx), new GMarkerOptions("Label to display on mouse hover", yourCustomIcon));
//add marker on the map addOverlay(marker); //add onClick event add(new ClickListener() { @Override protected void onClick(final AjaxRequestTarget varTarget, final GLatLng varLatLng, final GOverlay varOverlay) { if (varOverlay instanceof Gmarker) { Gmarker marker = (Gmarker) varOverlay; //use any logic to get the data you want to display (using lat and long for example) MyData data = yourService.findData(marker.getLatLng()); //open the infowindow getInfoWindow().open(marker, new yourPanelToDisplay(panelId, data)); } }); Hope this help. Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-open-multiple-infowindows-or-multiple-markers-using-GMAP2-tp4168848p4169864.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