You could add an event listener to the map for the zoomend event.
Assuming when you create your markers you store them in an array -
i'll use 'markers' here:

GEvent.addListener(map, 'zoomend', function(oldLevel, newLevel){
 for (var i=0; i<markers.length; i++){
  if (markers[i].maxzl>newLevel){
   if (!markers[i].isHidden()){
    markers[i].hide();
   } else if (markers[i].isHidden() && markers[i].maxzl<=newLevel){
    markers[i].show();
   }
  }
 }
});

That's untested code of course but you can see my solution!

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