Hello,

I saw in the changelog for v 1.18 that support for custom marker
shadows has been added, but haven't have any luck getting it to work.
I have created a minimal example of my code, which plots a marker, but
not a shadow.


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">
<maps:Map xmlns:maps="com.google.maps.*" id="map"
mapevent_mapready="onMapReady(event)"
  width="100%" height="100%" key="<your_key>" />
<mx:Script>
    <![CDATA[

    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.overlays.Marker;
    import com.google.maps.overlays.MarkerOptions;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    import mx.controls.Image;

    [Embed(source="/marker.png")] public static var markerImage:Class
    private function onMapReady(event:Event):void {
        var loc:LatLng = new LatLng(40.736072,-73.992062)
        this.map.setCenter(loc, 14, MapType.NORMAL_MAP_TYPE);
        var m:Marker = new Marker(loc)
        var image:Image = new Image()
        image.source = markerImage
        var opts:MarkerOptions = new MarkerOptions({
            hasShadow: true,
            icon: image
        })
        m.setOptions(opts)
        this.map.addOverlay(m)
    }
    ]]>
</mx:Script>
</mx:Application>


This example uses an embedded image, but I have tried it with an
embedded image, a linked image, or a Sprite-based DisplayObject, and
none them were accompanied with a drop-shadow when plotted on the map.
Any help would be appreciated, thanks!

Toby

-- 
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