Hi,
I'm using custom markers (custom icons) to denote locations on my map. The
problem is that sometimes I don't need a custom marker. How do I set myIcon
to the default marker?
In the iconSetter function, I set what type of marker to use. What should I
put in place of STANDARD MARKER to create the default marker?
public function iconSetter():void {
if (condition A blah blah){myIcon=star; myPointsBuilder(); return;}
if (condition B blah blah){myIcon=circle; myPointsBuilder(); return;}
if (condition C blah blah){myIcon=STANDARD MARKER; myPointsBuilder();
return;}
}
In the myPointsBuilder function, I create the points like so:
for (i=0; i < arrayLength; i++) {
myMarker = new Marker(new LatLng(myData[i].latitude,
myData[i].longitude), new MarkerOptions({
icon: new myIcon, iconOffset: new Point(2,2), iconAlignment:1,
hasShadow:true
}));
markerBoss.addMarker(myMarker, 15, 15);
}
markerBoss.refresh();
Any suggestions?
Thank you.
-Laxmidi
--
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.