[OpenLayers-Users] openlayers.layer.wms, singletile,
geoext mappanel 'SIZE' and 'WIDTH' problem!
Andreas Hocevar
ahocevar at opengeo.org
Wed Aug 17 03:13:08 EDT 2011
Hi,
this is expected. The WMS layer in singleTile mode uses a default ratio of 1.5, so you can drag the map without dropping into the void. If you want the size of the requested tile to be exactly the size of your map, you should configure
{
singleTile: true,
ratio: 1
}
in your layer options.
Andreas.
On Aug 17, 2011, at 06:31 , Cody Redmond wrote:
> 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!
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list