Re: gmap3 Geocoder and list of locations

2013-10-21 Thread Martin Grigorov
On Mon, Oct 21, 2013 at 10:08 AM, Dirk Forchel wrote: > 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

Re: gmap3 Geocoder and list of locations

2013-10-21 Thread Dirk Forchel
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.addOve

Re: gmap3 Geocoder and list of locations

2013-10-20 Thread Martin Grigorov
Hi, You can use org.wicketstuff.gmap.api.GOverlay#addListener(GEvent event, GEventHandler handler) On Mon, Oct 21, 2013 at 9:20 AM, Dirk Forchel wrote: > Hi Martin, > there is still an open issue with showing the marker for all stores and an > appropriate info window. Actually I wanna do someth

Re: gmap3 Geocoder and list of locations

2013-10-20 Thread Dirk Forchel
Hi Martin, there is still an open issue with showing the marker for all stores and an appropriate info window. Actually I wanna do something like the following Javascript code but in Java: // Init a new map var map = new GMap2(document.getElementById('map')); map.addControl(new GSmallMapControl())

Re: gmap3 Geocoder and list of locations

2013-10-17 Thread Martin Grigorov
I think the best would be to render markers for all stores and center the map according to the zipcode and zoom it appropriately. This way the user will see only the stores in the visible area of the map. But if (s)he zoom out the map then (s)he will see more stores and choose any of them. Otherwis

Re: gmap3 Geocoder and list of locations

2013-10-17 Thread Dirk Forchel
OK, sounds reasonable. Is there a way to return only these stores with their coordinates (GLatLng) which fit into a special bound. I mean, the user types in a region or postcode and wants to so only thouse stores which fit into this bound. How could I perform this? Thanks in advance. -- View thi

Re: gmap3 Geocoder and list of locations

2013-10-17 Thread Martin Grigorov
On Thu, Oct 17, 2013 at 2:14 PM, Dirk Forchel wrote: > Hi Martin, > thanks for your answer. Actually, all of our "stores" are persistent in our > database. These are about 300 and I think it is a good idea to pre-compute > all the coordinates (GLatLng) with a cronjob. Afterwards I would like to >

Re: gmap3 Geocoder and list of locations

2013-10-17 Thread Dirk Forchel
Hi Martin, thanks for your answer. Actually, all of our "stores" are persistent in our database. These are about 300 and I think it is a good idea to pre-compute all the coordinates (GLatLng) with a cronjob. Afterwards I would like to show only a part of these stores which fit to a certain specific

Re: gmap3 Geocoder and list of locations

2013-10-17 Thread Martin Grigorov
Hi, String address = ... GLatLng latLng = serverGeocoder.findAddress(address); map.addOverlay(new GMarker(latLng)); On Wed, Oct 16, 2013 at 2:03 PM, Dirk Forchel wrote: > Hi, > I'm a newbie to all the Google Maps API stuff and I've noticed that a > wicket-stuff project (gmap3) could help me to