<div dir="ltr">What is your map and projection configuration? Setting the srs as layer param won't give you a correct projection configuration for a WMS layer.<div><br></div><div style>Andreas.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 9:10 AM, Cédric MOULLET <span dir="ltr"><<a href="mailto:cedric.moullet@gmail.com" target="_blank">cedric.moullet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Hi,<br></div>With the trunk release, I observe an issue which has been introduced recently in OpenLayers.<br></div>When we use a singleTile WMS layer, the getImageSize function (<a href="https://github.com/openlayers/openlayers/blob/23a557052ce787a94ea13208bf80256e297fdcc6/lib/OpenLayers/Layer/Grid.js#L910" target="_blank">https://github.com/openlayers/openlayers/blob/23a557052ce787a94ea13208bf80256e297fdcc6/lib/OpenLayers/Layer/Grid.js#L910</a> ) provides an infinite WIDTH because <span>this</span><span>.</span><span>gridResolution</span><span> is null<br>



<br></span></div><span>WMS Layer is configured like that:</span><div><span><br></span></div><div><span><div>var wms = new OpenLayers.Layer.WMS("vd",</div><div>               "<a href="http://wms.geo.admin.ch/" target="_blank">http://wms.geo.admin.ch/</a>",</div>


<div>        {</div><div>            srs: 'EPSG:21781',</div><div>            layers:  'ch.bafu.bundesinventare-jagdbanngebiete',</div><div>            format: 'image/png'</div><div>        }, {</div>


<div>            singleTile: true,</div><div>            ratio: 1,</div><div>            opacity: 0.7,</div><div>            isBaseLayer: false</div><div>        });</div><br>Is this a regression or do we have a wrong setup ?</span></div>


<div><span>Thanks in advance for any help,</span></div><div><span>Cédric<span class="HOEnZb"><font color="#888888"><br></font></span></span><span class="HOEnZb"><font color="#888888"><div><div><div><div><div><div><br>-- <br>

<div dir="ltr"><div>Twitter: <a href="http://twitter.com/cedricmoullet" target="_blank">http://twitter.com/cedricmoullet</a><br>Linked In: <a href="http://www.linkedin.com/in/cedricmoullet" target="_blank">http://www.linkedin.com/in/cedricmoullet</a><br>




<br><a href="http://twitter.com/cedricmoullet" target="_blank"></a></div>
</div>
</div></div></div></div></div></div></font></span></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org/</a><br>Expert service straight from the developers.<br>
</div>