Apache wicketStuff-GMap Api

98 Views Asked by At

How do I feed bunch of addresses to Google map via Wicketstuff GMap api so that when map is launched, I see marker/balloon based on city. Basically I want to be able to feed all the addresses and have map show one balloon/city and when city balloon is clicked, launch a wicket panel.I am using wicket 1.4.13 and wicketstuff 1.5.16.

1

There are 1 best solutions below

1
martin-g On

You need to add Marker objects to the map for each city:

 final GMap map = new GMap("wicketId", "yourApiKey");

 GMarkerOptions markerOptions = new GMarkerOptions(map, latLng, "A marker for city Xyz", true);
 map.addOverlay(new GMarker(markerOptions));

I'd recommend you to take a look at the examples