Try changing function(latlng) to function(p)

On Nov 27, 12:48 pm, Eran <[EMAIL PROTECTED]> wrote:
> I wanted my map to draw a marker in response to a click on the map
> event.
> So,I wrotedown  these lines of code:
>
>  GEvent.addListener(map, "click", function(latlng) {
>         var marker = new GMarker(latlng);
>         map.addOverlay(marker);
>
> However, when I made  clicks on the map,no marker was drawn ,and i
> even got an "error on page" message  at the bottom of the map.
> why does it happen and what can I do to fix that problem?
> my map is located at:  http://superschool.co.il/~eran1/index.html.
--~--~---------~--~----~------------~-------~--~----~
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