Hi!
I adapted the code from the LimitedZoomDemo in order to enable zooming
between level 3 and 23. That's the code:
function mapPreInitializeHandler(event:MapEvent):void
{
var opts:MapOptions = new MapOptions();
var extNormal:IMapType = new MapType
(MapType.NORMAL_MAP_TYPE.getTileLayers(),
MapType.NORMAL_MAP_TYPE.getProjection(), "Normal", new MapTypeOptions
({maxResolution: 23, minResolution: 3}));
opts.mapTypes = [extNormal];
map.setInitOptions(opts);
}
Limiting to level 3 works fine, but the maximum is still at the
default value (17 I think). I need to zoom to level 23 for viewing the
details fo a HiRes groundoverlay.
Anyway, I noticed that there is a way to extend the zoom slider to
level 23 by setting the zoom level in the onMapReady event:
map.setCenter(new LatLng(0,0), 23, MapType.NORMAL_MAP_TYPE)
Since I'd like to use more than 1 map type and the zoom slider is set
to the current maptype's default values when changed the line above is
not a really a solution.
Is it possible to manage this somehow without creating a custom
slider?
thanks,
-cyrt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---