<br><br>On Thursday, February 23, 2012, François Van Der Biest wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
This very simple code used to work :<br>
<br>
map = new OpenLayers.Map({<br>
layers: [new OpenLayers.Layer.OSM()]<br>
});<br>
map.addLayers([<br>
new OpenLayers.Layer.WMS("test", "/geoserver/wms", {<br>
layers: "dept"<br>
}, {<br>
isBaseLayer: false<br>
})<br>
]);<br>
<br>
It does not anymore : the result is a WMS layer whose div is empty.<br>
<br>
To fix it, I've had to set the map maxExtent to new OpenLayers.Bounds(<br>
-128 * 156543.03390625,<br>
-128 * 156543.03390625,<br>
128 * 156543.03390625,<br>
128 * 156543.03390625<br>
)<br>
<br>
I find it redundant, since this maxExtent is already defined in<br>
OpenLayers.Layer.XYZ (which is extended by OpenLayers.Layer.OSM).<br>
Am I doing something wrong or is it a bug ?</blockquote><div><br></div><div>This sounds like a serious regression, probably caused by </div><span class="Apple-style-span" style><<a href="https://github.com/openlayers/openlayers/pull/219">https://github.com/openlayers/openlayers/pull/219</a>>. Do you use a built version of OL or do you observe the problem also when using OL's autoloader?</span><div>
<span class="Apple-style-span" style><br></span></div><br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>