please post the code - so we can see how you are assigning the custom
icons

heres what i did

                [Embed(source="../../assets/red_icon.png")] private var
redIcon:Class;
                [Embed(source="../../assets/grey_icon.png")] private var
greyIcon:Class;

                private var customIcons:Object = { "cool" : redIcon, "notcool" :
greyIcon };

..........
..........
..........

                private function createMarker(latlng:LatLng, type:String,
name:String, url:String, hotelCC:String, hotelNum:String,
roomsSleep:String, spaceConv:String): Marker {
                        var marker:Marker = new Marker(latlng, new MarkerOptions
( { hasShadow:false,
                                icon: new customIcons[type],
                                iconOffset: new Point( -9, -28)
                                }));


                        marker.addEventListener(MapMouseEvent.CLICK, function
(e:MapMouseEvent):void {
                                marker.openInfoWindow(new InfoWindowOptions( {
                                drawDefaultFrame:true,
                                cacheAsBitmap:true,
                                strokeStyle: {thickness:1, color: 0xc0c0c0, 
alpha: 0.8 },
                                fillStyle: { color: 0xe9e9e9, alpha: 0.85 },
                                //fillStyle: { color: 0xffffff, alpha: 0.2 },
                                hasCloseButton: true,
                                hasTail: true,
                                hasShadow: true } ));
                        });
                        return marker;

..........
..........
..........

And in the XML for each marker add :

                <type>cool</type>
or
                <type>notcool</type>

On Mar 30, 6:53 am, cyrt <[email protected]> wrote:
> Hi!
>
> Any idea why the default marker remains visible after assigning a
> custom icon to the marker. Interestingly, the marker's position
> changes after the icon is assigned, which is probably due to the
> different default alignment of icons. Anyway, the marker's left half
> is still visible and but changing its alpha value / fillstyle doesn't
> show any effect.
>
> Changing the iconAlignment to horizontal_center, so I could place the
> icon above the marker, doesn't work either.
>
> thanks in advance,
> -cyrt
--~--~---------~--~----~------------~-------~--~----~
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