1) Create a Marker
2) Create a InfoWindow
3) addListener to Marker.click to open the InfoWindow
4) Click on the Marker. As expected, the InfoWindow opened.
5) Remove the marker from the map through Marker.setMap(null)
6) Well, InfoWindow is still opening there ...
I'm not sure if there's another way to bind InfoWindow with the map
property of Marker. I've tried some solutions with no luck ~
1) InfoWindow.bindTo('map', Marker) ~~ not work when
Marker.setMap(null)
2) Marker.map_changed = function() { InfoWindow.close(); }
~~ It's fun that the InfoWindow be closed. But the Marker keep stay
there when Marker.setMap(null)
I could remove them without binding. Just want to know if there's any
way to bind them together.
---
kiang
--
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.