[OpenLayers-Users] openlayers.layer.wms, singletile, geoext mappanel 'SIZE' and 'WIDTH' problem!

Cody Redmond codydjango at gmail.com
Wed Aug 17 00:31:23 EDT 2011


Hello -- this is my first post.  I've been working with openlayers for a
little while now, and I'm kinda stumped on this:  The WMS ajax calls contain
height and width parameters that are quite a bit larger than the size of the
map, and I have no clue how or where these dimensions are being calculated.

Shouldn't the automatically generated wms parameters 'width' and 'height' be
the same as the height and width of the map object?

For instance, my map object is 600 x 300, but the width and height params
are closer to 900 x 450.
Settings the width and height params on the layer can be set manually, or on
resize, but it's rewritten with the wrong height and width when the ajax
call is made.

I'm using an openlayers.layer.wms object, set to singletile=True.  The map
is rendered in a geoExt MapPanel.

Thanks so much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110816/1bd86aff/attachment.html


More information about the Users mailing list