Hi huy, I would take a look at the Reverse Geocoding example in the Ajax API playground linked below:
http://code.google.com/apis/ajax/playground/?exp=maps#reverse_geocoder You could basically adapt the code there to your use of the GALGWT Maps library in your GWT application. The only catch is that rather than have a standard ClickListener attached to your MapsWidget, you would have an EventListener listening for an ONCONTEXTMENU event (i.e. a right click). On receiving a right-click event, you could potentially reverse geocode the location and place a marker where the user first clicked. I'm not completely sure if this would work since I'm only passingly familiar with the Maps API myself, but it's worth a shot. Hope that helps, -Sumit Chandel On Tue, Jan 27, 2009 at 9:31 AM, huy <[email protected]> wrote: > > I cant figured out how to do this in GWT. I want to right click on > the map which will cause a context menu to open. The context menu > will only have one option to add a marker. So if the user click on > the add marker then a marker should be added at the right clicked > location. Any help is appreciated, thanks. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
