Do you want the marker to disappear for good once clicked:

if(icontype == 'pushpin' || icontype == 'arrow') {
 GEvent.addListener(marker, "click", function() {
 // map.setCenter(marker.getPoint(),maxZoom,G_SATELLITE_MAP);
 map.setCenter(marker.getPoint(),maxZoom);//no infowindow only center
on point,maxZoom and maptype
 // remove this marker from map once clicked
 map.removeOverlay(marker);
});
}else{
 GEvent.addListener(marker, "click", function() {
 marker.openInfoWindowHtml("!",{buttons:{restore:{show:4}},
maxContent: html, maxTitle: infotitle, noCloseOnClick: true});
 window.setTimeout(function(){map.getInfoWindow().maximize()},200);
});
}

Or do you want it to re-appear once the map is zoomed back out?
If so you're best bet is to look at the MarkerManager:
http://code.google.com/p/gmaps-utility-library-dev/wiki/Libraries

Martin.


On 15 Nov, 11:57, Daniish <[EMAIL PROTECTED]> wrote:
> Hello,
>
> How can i hide a specific marker, once it has been clicked by the
> user?
>
> I'm using a regional arrow markers to help zoom the user in to more
> local markers, however, the regional arrow marker is confusing if it
> is still displayed when the map is zoomed in - is there any way it can
> be hidden once it has been used?
>
> Many thankswww.globexposure.net
> click pushpin marker > arrow marker
--~--~---------~--~----~------------~-------~--~----~
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