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