Hi Marcos- I'm not sure that loading an *.ico file will work in Flash, I'd suggest trying with a GIF, PNG, or JPEG first.
In the second code snippet, you're not actually calling the load function. Add: testLoader.load(urlRequest); Modeled after this demo: http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/MapMarkersIcons/srcview/index.html - pamela On Wed, Feb 4, 2009 at 5:46 AM, Marcos <[email protected]> wrote: > > I tried this code too with no results: > > import com.google.maps.Map; > import com.google.maps.LatLng; > import com.google.maps.MapEvent; > import com.google.maps.MapType; > import com.google.maps.overlays.Marker; > import com.google.maps.overlays.MarkerOptions; > import com.google.maps.MapType; > import com.google.maps.LatLng; > import com.google.maps.styles.FillStyle; > import com.google.maps.styles.StrokeStyle; > > > var map:Map = new Map(); > map.key = ""; > map.setSize(new Point(stage.stageWidth, stage.stageHeight)); > map.addEventListener(MapEvent.MAP_READY, onMapReady); > this.addChild(map); > > function onMapReady(event:MapEvent):void { > // Creamos nuestro icono de marcador "pequeño". > map.setCenter(new LatLng(37.4419, -122.1419), 13, > MapType.NORMAL_MAP_TYPE); > > var testLoader:Loader = new Loader(); > var urlRequest:URLRequest = new URLRequest("http://www.google.com/ > favicon.ico"); > // Configuramos nuestro objeto GMarkerOptions. > var markerOptions:MarkerOptions = new MarkerOptions({}); > markerOptions.icon = testLoader; > > var markerA:Marker = new Marker( > new LatLng(37.4419, -122.1419), > markerOptions > ); > map.addOverlay(markerA); > > > } > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
