Saturday, March 5, 2011

[Google Maps API v2] How to replace marker's icon on marker's removal?

Hello.

Could anyone please help with the following question?

I need to be able to remove a marker from the information window and
replace its icon with another icon.

I use

lastMarker = marker;
and
<a
href='javascript:map.removeOverlay(lastMarker);map.closeInfoWindow();map.removeOverlay(lastMarker_);'>remove</
a>

to remove markers.

Is there any simple solution to replace an icon when a marker is
removed?

Thank you in advance,

Olha

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate