Thank for the comment, my target is to make a new MapType that has a
Limited Zoom so that user didn't have to see the "We are sorry, we
didn't..." error message
and i end up creating this:

                                 var TerrainMapType:IMapType = new MapType
(MapType.PHYSICAL_MAP_TYPE.getTileLayers(),
 
MapType.PHYSICAL_MAP_TYPE.getProjection(),
                                                           "Terrain",
                                                           new MapTypeOptions
({maxResolution: 15, minResolution: 10}));
                                 var SatMapType:IMapType = new MapType
(MapType.SATELLITE_MAP_TYPE.getTileLayers(),
 
MapType.SATELLITE_MAP_TYPE.getProjection(),
                                                           "Satellite",
                                                           new MapTypeOptions
({maxResolution: 18, minResolution: 10}));
                                //ADD NEW MAP TYPES
                                map.addMapType(TerrainMapType);
                                map.addMapType(SatMapType);
                                // REMOVE MAPTYPES
                                map.removeMapType(MapType.NORMAL_MAP_TYPE);
                                map.removeMapType(MapType.PHYSICAL_MAP_TYPE);
                                map.removeMapType(MapType.SATELLITE_MAP_TYPE);
                                mapType.dataProvider = [ TerrainMapType, 
SatMapType ];
Regards
- Farly

On Jun 22, 5:22 am, "pamela (Google Employee)" <[email protected]>
wrote:
> Hi Farly -
>
> That's not the name of the event. Check the 
> reference:http://code.google.com/apis/maps/documentation/flash/reference.html#M...
>
> - pamela
>
> On Mon, Jun 22, 2009 at 3:22 AM, alisamech<[email protected]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to