On Nov 2, 5:51 am, sed <[email protected]> wrote:
> hi
> i have window
> there is map. how can i set marker after left-click? in any place. set
> marker and show message with his coordinates.

Ext is not part of the API, so the code is irrelevant. To click the
map and set a marker, you need an event handler on the map. Here's a
simple example:
http://code.google.com/apis/maps/documentation/javascript/v2/examples/event-simple.html

In the click handler, get the location of the click and add a marker
(and open an infoWindow showing the location). The click handler
function receives three arguments, the second of which is the
location.
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.click

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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-maps-api?hl=en.

Reply via email to