-
3 Nov 2011 4:46 PM #1
Unanswered: add gmap
Unanswered: add gmap
hi
i have code
but i haven't marker after click. something wrong?its just alertCode:GEvent.addListener( cont.items.map.Gmap_panel_test.gmap, 'click', function(e,xy){ var point = new GLatLng(xy.x, xy.y); var marker = new GMarker(point, {draggable: true}); this.addOverlay(marker); Ext.Msg.alert('You click at','lat: '+xy.x+',long:'+xy.y) } )
-
4 Nov 2011 5:31 AM #2
Looks like you're using an older Google Maps API? I advise you to use the latest version.
An example of adding a marker on mouse click using the latest API can be found here:
http://code.google.com/intl/nl-NL/ap...EventArguments


Reply With Quote