[OpenLayers-Users] Setting zoom levels
Javier Mr
javiersdevmail at ymail.com
Thu Feb 2 07:13:44 EST 2012
Hi,
where can i find the maxResolution 'magic' numbers?, In the example you privide i see 'maxResolution: 76.4370827453613', i'va tried to change it but then the layers didn't load.
>________________________________
> De: Andreas Hocevar <ahocevar at opengeo.org>
>Para: Javier Mr <javiersdevmail at ymail.com>
>CC: "openlayers-users at lists.osgeo.org" <openlayers-users at lists.osgeo.org>
>Enviado: Miércoles 1 de febrero de 2012 19:50
>Asunto: Re: [OpenLayers-Users] Setting zoom levels
>
>Hi,
>
>for all non-proprietary-API layers, the options to use are
>maxResolution and numZoomLevels. See
>http://openlayers.org/dev/examples/bing-tiles-restrictedzoom.html
>
>For making other tiled layer types work on top of a Google base layer
>that is configured with a minZoom, you should be able to get things
>working using the zoomOffset option and setting it to the minZoom
>value you provided for Google.
>
>Andreas.
>
>On Wed, Feb 1, 2012 at 4:29 PM, Javier Mr <javiersdevmail at ymail.com> wrote:
>> Hi,
>>
>> i'm having problems setting the zoom levels using OpenLayers.
>>
>> By default the map (and it's base layers) are created with 18 zoom levels
>> (from 0 to 17). Now we need to change that from 2 to 17.
>>
>> I have tried, in a Google layer, settign minZoomLevel = 2 and numZoomLevels
>> = 16, and what i get is that the zoom levels go from 0 to 15. The map looks
>> good and this prevent the users from see the map too small, but the zoom
>> indexes go from 0 to 15. This is a handicap since we use the zoom level to
>> access the features that are going to be painted on the map from a diferent
>> service. Is there a way to set up the minZoom and the numZoomLevels so that
>> i get a range of zoom from [minZoom, minZoom + numZoomLevels]?
>>
>> The previous point is almost solved wrapping the calls to map.getZoom(), in
>> that wrapper i add the minZoom value.
>>
>> But now i found (apparently) that WMS layers (like OSM) doesn't support
>> minZoom, is the a way that i can achieve this in all types of layers
>> (currently using Google, OSM and WMS)?
>>
>> Thanks.
>>
>> Javier.
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>
>
>
>--
>Andreas Hocevar
>OpenGeo - http://opengeo.org/
>Expert service straight from the developers.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120202/b4e70709/attachment.html
More information about the Users
mailing list