Hi norbi- You cannot use custom icons in combination with custom labels at this time. If you wanted, you could have your custom icon be a Sprite that contans text inside of it, however.
- pamela On Fri, Jan 9, 2009 at 12:46 AM, norbi <[email protected]> wrote: > > Hi, I'm really beginner on gmap api for flash (in action script too). > I have to change the markers icon and add a text(label) on it, this > together does not work, if i just add label (for example "7") with the > default marker it works fine, but if i change the markers icon the > label does not appear. Please help. Here is the code: > > > [Embed(source="marker.png")] private var blueIcon:Class; > > > public function createMarker(latlng:LatLng, name:String, > address:String): void { > var customIcon = new blueIcon(); > > var markerLocal:Marker = new Marker(latlng, new MarkerOptions > ({icon: customIcon, label: "Z"})); > var html:String = "<b>" + name + "</b> <br/>" + address; > markerLocal.addEventListener(MapMouseEvent.CLICK, function > (e:MapMouseEvent):void { > markerLocal.openInfoWindow(new InfoWindowOptions > ({contentHTML:html})); > }); > map.addOverlay(markerLocal); > } > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
