Hi All,

Is it possible to change the alpha and stroke of a _custom_ icon? Or
can I change the alpha or apply a filter to an icon from the library.
I've tried this:
for(var i:int = 0; i<date_array.length; i++)
                {
                        var m_name:String = "marker"+i;
                           var options:MarkerOptions = new MarkerOptions({
                        strokeStyle: {
                        color: 0x987654
                        },
                                icon: new my_icon(),
                        tooltip: "This is a marker"
                                });
                        this[m_name] = new Marker(new LatLng(lat_array[i], 
lon_array[i]),
options); //my_marker_opt
                        map.addOverlay(this[m_name]);
                }
        }
Now the custom icons are rendered without a stroke.
I've also tried adding ActionScript to the icon:
// create filter
var outline:GlowFilter = new GlowFilter();
var filter_array:Array = [outline];
outline.color = 0x33CC66;
outline.blurX = 4;
outline.blurY = 4;
outline.strength = 5;
                for(var i:int = 0; i<date_array.length; i++)
                {
                        var m_name:String = "marker"+i;
                        var my_marker_opt:MarkerOptions = new MarkerOptions(); 
//
{strokeStyle:{color:0x33CC66}}
                        my_marker_opt.tooltip = i+" pos: "+lat_array[i]+" 
"+lon_array[i];
                        my_marker_opt.icon = new my_icon();
                        my_icon.filters = [outline];
                        this[m_name] = new Marker(new LatLng(lat_array[i], 
lon_array[i]),
my_marker_opt); //
                        map.addOverlay(this[m_name]);
                }
But that generates the error: 1119: Access of possibly undefined
property filters through a reference with static type Class.
my_icon.filters = [outline];
Is there any way to solve this either using the maps api or AS?

Any help would be greatly apreciated. Best, Danielle.

-- 
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 google-maps-api-for-fl...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api-for-flash+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.

Reply via email to