I just want it to load the map and put an icon indicating the coords.
is this right ?
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
var map:Map = new Map();
map.key =
"ABQIAAAA4VURmJWVCIxcSShGXyhXHBTKF6W5Q7EGt8fhGS4MAtlq9morNhSkTxbd6yARnCtDDV
FvabKU4D1rdA";
map.setSize(new Point(stage.stageWidth, stage.stageHeight));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);
function onMapReady(event:Event):void {
map.setCenter(new LatLng(47.349497, 5.0419416), 16,
MapType.NORMAL_MAP_TYPE);
var markerA:Marker = new Marker(
new LatLng(47.349497, 5.0419416), 16,
new MarkerOptions({
strokeStyle: new StrokeStyle({color: 0x987654}),
fillStyle: new FillStyle({color: 0x223344, alpha:
0.8}),
radius: 12,
hasShadow: true
})
);
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
-~----------~----~----~----~------~----~------~--~---