[OpenLayers-Users] GetImageSize for WMS Single Tile

Cédric MOULLET cedric.moullet at gmail.com
Wed Jul 24 00:10:01 PDT 2013


Hi,
With the trunk release, I observe an issue which has been introduced
recently in OpenLayers.
When we use a singleTile WMS layer, the getImageSize function (
https://github.com/openlayers/openlayers/blob/23a557052ce787a94ea13208bf80256e297fdcc6/lib/OpenLayers/Layer/Grid.js#L910)
provides an infinite WIDTH because
this.gridResolution is null

WMS Layer is configured like that:

var wms = new OpenLayers.Layer.WMS("vd",
               "http://wms.geo.admin.ch/",
        {
            srs: 'EPSG:21781',
            layers:  'ch.bafu.bundesinventare-jagdbanngebiete',
            format: 'image/png'
        }, {
            singleTile: true,
            ratio: 1,
            opacity: 0.7,
            isBaseLayer: false
        });

Is this a regression or do we have a wrong setup ?
Thanks in advance for any help,
Cédric

-- 
Twitter: http://twitter.com/cedricmoullet
Linked In: http://www.linkedin.com/in/cedricmoullet

<http://twitter.com/cedricmoullet>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130724/e32de999/attachment.html>


More information about the Users mailing list