Dear Pamela,
When i add my script with MAPEVENT_MAPPREINITIALIZE i got this error
1119: Access of possibly undefined property MAPEVENT_MAPPREINITIALIZE
through a reference with static type Class.
This is part of my script:
public function onContinerInitialize( event:MapEvent ):void
{
map = new Map();
map.key = "ABQIAAA....";
map.addEventListener
(MapEvent.MAPEVENT_MAPPREINITIALIZE,onMapPreinitialize);
map.addEventListener( MapEvent.MAP_READY,onMapReady);
mapContainer.addChild(map);
}
// [BEGIN] LIMITED ZOOM LEVEL
private function onMapPreinitialize(event:MapEvent):void {
var opts:MapOptions = new MapOptions();
var limitedZoomMapType:IMapType = new MapType
(MapType.NORMAL_MAP_TYPE.getTileLayers(),
MapType.NORMAL_MAP_TYPE.getProjection(), "LimitedZoom
Demo",
new MapTypeOptions({maxResolution: 4, minResolution:
1}));
opts.mapTypes = [limitedZoomMapType];
map.setInitOptions(opts);
}
// [END] LIMITED ZOOM LEVEL
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---