[OpenLayers-Users] OSM base layer + WMS overlay

François Van Der Biest francois.vanderbiest at camptocamp.com
Tue Feb 28 03:26:28 EST 2012


Thank you guys for your quick answers.
I was indeed wrong saying that this example worked with previous
versions of OpenLayers. The fact is it did not.

Maybe we should ship an example with OSM baselayer + WMS overlay for 2.12.
I can provide one if you want.

F.

On Sun, Feb 26, 2012 at 8:30 PM, Eric Lemoine
<eric.lemoine at camptocamp.com> wrote:
>
> On Sunday, February 26, 2012, Andreas Hocevar wrote:
>>
>> This is not a regression caused by
>> https://github.com/openlayers/openlayers/pull/219. I don't even think
>> it is a regression at all - at least I do not remember that this ever
>> worked, because a layer's maxExtent was never set to the base layer's
>> maxExtent. @Eric, this is the issue that you and I discussed in
>> https://github.com/openlayers/openlayers/pull/177.
>>
>> Andreas.
>
>
> You're right Andreas. I now also don't see how this could have ever worked.
>
> François, the WMS layer has no maxExtent set in its options so it gets its
> maxExtent value from the map, which is [-180,-90,180,90] and not what you
> want. OpenLayers has always behaved this way in our opinions.
>
>
> --
> Eric Lemoine

-- 
Camptocamp France SAS, Chambéry
http://www.camptocamp.com/fr/geospatial-solutions


More information about the Users mailing list