[OpenLayers-Users] openlayers.layer.wms, singletile, geoext
mappanel 'SIZE' and 'WIDTH' problem!
Cody Redmond
codydjango at gmail.com
Wed Aug 17 03:30:08 EDT 2011
Thank you so much! I wasted a lot of time on this tiny thing! Oh the perks
of a new framework!
And sorry for spamming the board here, I was having some email trouble,
apparently.
Thanks again!
Cody.
On Wed, Aug 17, 2011 at 12:13 AM, Andreas Hocevar <ahocevar at opengeo.org>wrote:
> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110817/c94c32d1/attachment.html
More information about the Users
mailing list