ok. thnx
but how can i write this code into window-code?
like
listeners: {
click: function(e){
Ext.Msg.alert('point_lat',
'and its art.');
GEvent.addListener(map, "click",
function() {
alert("You clicked the map.");
}
its doesnt work
On 2 ноя, 13:10, Andrew Leach <[email protected]> wrote:
> 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...
>
> 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/referenc...
--
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.