Hi cyrt, Oscar- It seems like a bug to me that you're unable to have a higher max zoom by specifying maxResolution. I've filed a bug internally with the team, I'll let you know if they confirm it.
- pamela On Sat, Mar 21, 2009 at 5:15 AM, Oscar Gonzalez <[email protected]> wrote: > I'm also interesed in this, perhaps it can be achieved with LatLngBounds? > > Maybe checking containsLatLng() or getEast(), etcetera methods could help. > > On Fri, Mar 20, 2009 at 9:25 AM, cyrt <[email protected]> wrote: >> >> 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 -~----------~----~----~----~------~----~------~--~---
