I'm facing a really annoying problem,markers are getting added
automatically whenever a user clicks on the map , instead of
following  my event listener . Actually my event listener is executed
plus a marker is created wherever I click on the map .

here is some code:

var myOptions = {
      zoom: 8,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);

google.maps.event.addListener(map,'click',function (event) {
                                                                     // SOME 
EVENT LISTENING CODE
                                                                              }

I don't think there's any problem with my code in the event listener
because even when I comment out all the code , it still creates a
marker and there's no way to remove these markers either . But when I
remove the event listener completely , markers are not created
automatically . Pl help me out.

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

Reply via email to