[OpenLayers-Users] Change WMS Layer to Single Tile Dynamically

Bart van den Eijnden bartvde at opengeo.org
Fri Jan 4 08:18:34 PST 2013


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
Expert service straight from the developers.



On Apr 17, 2012, at 7:24 PM, Donald Kerr <donald.kerr at dkerr.co.uk> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130104/339d5167/attachment.html>


More information about the Users mailing list