for (var i = 0, c = fs.length; i < c; i++) {
setupFeature(fs[i]);
}
but then you remove it only once.
What you can do instead is to add the map click listener as soon as
the map is created and leave it active, and then inside that function
check a global boolean variable, for example:
var drawing = false; // global
...
// Inside the click listener
if (drawing == true) {
// do one thing
}
else {
// do another
}
--
Marcelo - http://maps.forum.nu
--
--You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/WC175cV1GkYJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.