Thank you Bart.
This is indeed an old one. I got around this by having two layers one with
"singleTile: false" and one with "singleTile: true". When a single tiled
layer is required then I switch baselayers thus:
"Map.setBaseLayer(layerTiled)". Not so efficient but it does work.
I will download the latest master and try out your suggestion
"layer.addOptions({singleTile: true})".
Many thanks.
Regards,
Donald
From: Bart van den Eijnden [mailto:[email protected]]
Sent: 04 January 2013 16:19
To: Donald Kerr
Cc: [email protected]
Subject: Re: [OpenLayers-Users] Change WMS Layer to Single Tile Dynamically
A very late reply that this is now possible in OL master:
https://github.com/openlayers/openlayers/pull/821
so basically just call layer.addOptions({singleTile: true}) for instance.
Best regards,
Bart
--
Bart van den Eijnden
OpenGeo - http://opengeo.org <http://opengeo.org/>
Expert service straight from the developers.
On Apr 17, 2012, at 7:24 PM, Donald Kerr <[email protected]> wrote:
I have a WMS layer where I would like to be able to switch between
"singleTile: false" and "singleTile: true" dynamically as the user zooms to
a certain level. Is this possible to do?
I know that I can create two layers and switch baselayers by checking the
map.zoom on the layer.loadstart event but it would be nice to be able to
change the WMS layer options dynamically.
Thanks.
Donald
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2805 / Virus Database: 2637/6007 - Release Date: 01/03/13
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users