[OpenLayers-Users] maxResolution for a WMS layer

Guillaume Sueur no-reply at neogeo-online.net
Mon Aug 31 13:49:57 EDT 2009


Setting maxResolution after adding layer to the map did the trick. 
Thanks very much for your help which made me focused on the proper 
place. Hope it's going well for you and your team.

Best regards,

Guillaume

Eric Lemoine a écrit :
> On Monday, August 31, 2009, Eric Lemoine <eric.lemoine at camptocamp.com> wrote:
>> On Monday, August 31, 2009, Guillaume Sueur <no-reply at neogeo-online.net> wrote:
>>> Hi list,
>>>
>>> I'm using a WMS layer on the top of Google Maps. This layer is set with
>>> a MAXSCALE of 10000 in MapServer map file.
>>> I'd like to avoid OpenLayers sending requests on resolutions over
>>> 2.38865713348 which all return blank images. I've tried to set my layer
>>> with maxResolution:2.38865713348 but it doesnt' help.
>>>
>>> any hint ?
>> Hi Guillaume. Have you checked that the value of
>> wmsLayer.maxResolution is what you expect after the WMS layer is added
>> to the map? You can also set a breakpoint in the calculateInRange
>> method to understand what's going on.
> 
> also, wmsLayer.alwaysInRange should be false.
> 
>>> Thanks
>>>
>>> Guillaume
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>> --
>> Eric Lemoine
>>
>> Camptocamp France SAS
>> Savoie Technolac, BP 352
>> 73377 Le Bourget du Lac, Cedex
>>
>> Tel : 00 33 4 79 44 44 96
>> Mail : eric.lemoine at camptocamp.com
>> http://www.camptocamp.com
>>
> 



More information about the Users mailing list