> As I pick your point ... i think it is triggered on first click
> because now if you check I've set an alert msg for testing inside that
> code on map first time.

There's some obsolete code in your onFirstClick method
    var point = new GPoint(14.306946, 57.774060);
needs to be a GLatLng if you want to use it for a marker position.

Doesn't matter yet, as it goes on to call
     CreateMarker(point);
but CreateMarker expects parameters overlay , point

That doesn't matter much either because CreateMarker doesn't use
either of those parameters at all, it just adds a click listener to
the map.
That listener includes code to place a marker, but of course it isn't
going to do that until the NEXT click on the map when counter=1

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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