[OpenLayers-Users] maxResolution google layer

AJ R ajayr.email at gmail.com
Thu Jan 8 14:48:40 EST 2009


This is a sample of the code , observe the minZoomLevel and
maxZoomLevel which are essentially Layer properties

baseLayer = new OpenLayers.Layer.Google( baseLayerName , {type:
baseLayerType, minZoomLevel: 9, maxZoomLevel:15, sphericalMercator:
sphericalMercator } );

Regards

Ajay Ravichandran

On Thu, Jan 8, 2009 at 1:39 PM, Heidt, Christopher M.
<CHRISTOPHER.M.HEIDT at saic.com> wrote:
> Is this a map or layer property?
> I see a numZoomLevels under each, but that's the only zoom property I
> can find in the docs.
> I tried adding maxZoom to the map and layer but that didn't appear to do
> anything.
>
> -----Original Message-----
> From: AJ R [mailto:ajayr.email at gmail.com]
> Sent: Thursday, January 08, 2009 1:02 PM
> To: Heidt, Christopher M.
> Cc: users at openlayers.org
> Subject: Re: [OpenLayers-Users] maxResolution google layer
>
> Hi Christopher
>
> I have had to do something similar, wherein i Had to restrict zoom
> levels for the users, and i did this by setting the min and maxZoom
> levels, for example for our app, the resolutions ranges from Zoom level
> 9 to level 15 were all that were needed. This worked perfectly.
> I dont know if  this would help solve your problem.
>
> Regards
>
> Ajay
>
> On Thu, Jan 8, 2009 at 9:31 AM, Heidt, Christopher M.
> <CHRISTOPHER.M.HEIDT at saic.com> wrote:
>> Im tring to restrict how far my users can zoom out but changing the
>> maxResolution but it isnt doing anything for my google layers.
>> Ive also played with maxExtent/restrictedExtent but these don't affect
>
>> the zoom.
>> I just don't want to be able to see multiple copies of the earth ;p
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>



More information about the Users mailing list