not sure what you are trying to accomplish

1) are you trying to show/hide all markers from one button?
if yes I recommend using a Pane and making the pane visible or not
based on the button click

2) or are you trying to hide individual markers?
if yes then you should add a click or context menu event to each
marker and then listen for that event

ou quelque chose completement different? - sorry I wanted to
practice :)

On Jun 15, 7:13 am, jmarierey <[email protected]> wrote:
> Hi,
>
> I have a problem with the marker visible option:
>
> My code
>
> In a loop
> var y:int; // une boucle sur les points
> var nbre:Number = donneesXML.point.nom.length();
>         for ( y = 1; y < nbre; y++) // loop on points
>                 {
>                         var latlng:LatLng = new 
> LatLng(donneesXML.point[y].lat,
> donneesXML.point[y].long);
>                         var tip = donneesXML.point[y].nom;
>                         var myTitle:String = donneesXML.point[y].nom;
>                         var myContent:String = 
> donneesXML.point[y].description;
>                         markerOptions.tooltip = myTitle;
>                         var txt:String = String(y);
>                         markerOptions.label = txt;
>                         var marker:Marker = new Marker( new
> LatLng( donneesXML.point[y].lat, donneesXML.point[y].long ),
> markerOptions );
>                         map.addOverlay( marker ) ;
>                 } // end loop
> No problem I have all points
> I want to mask marker with this:  marker.visible = false with a
> button
> boutonCachePoints.addEventListener(MouseEvent.CLICK, cachePoints);
> public function cachePoints(evt:MouseEvent) {
>                                 var marker:Marker;
>                                 marker.visible = false;
>                         }
> How do proced ?
>
> Thanks for your help

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en.

Reply via email to