relevant code
/**
* Initialize the map
*/
protected function initMap($key:String):void
{
_map = new Map();
_map.addEventListener(MapEvent.MAP_PREINITIALIZE,
onMapPreinitialize);
_map.addEventListener(MapEvent.MAP_READY, onMapReady, false, 0,
true);
_map.key = $key;
_map.setSize(new Point(_width, _height));
addChild(_map);
}
protected function onMapPreinitialize($event:Event):void
{
Debug.send("[AbstractMap][onMapPreinitialize] map.x:" + _map.x + "
map.y: " + _map.y);
//var options:MapOptions;
//_map.setInitOptions(options);
_map.x = 0;
_map.y = 0;
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---