You need your movie clip to have the appropriate width and height, I find it
a bit weird in that tutorial that they have this.addChild(markerPin) I
thought you could just pass the instance and the map would add it to the
overlay object but perhaps it's not the case in Flash. Anyhow basically you
want to give that markerPin a size so if you haven't already be sure you're
setting a width and a height on it, the other thing I would try is getting
rid of "this.addChild" for the icon: lines and just passing it the marker
like
1. // create Custom marker object
2. var markerPin:marker_mc = new marker_mc();
3. // If your marker is to big you can scale it down here
4. markerPin.width = 20;
5. markerPin.height = 20;
...
1. var i:Marker = new Marker(
2. latlng,
3. new MarkerOptions({
4. hasShadow: true,
5. icon: markerPin,
6. tooltip: ""+tip
7. })
8. );
--
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.