[OpenLayers-Users] Changing singleTile property of a loaded
layer
strk
strk at keybit.net
Sun May 2 05:03:02 EDT 2010
On Thu, Apr 29, 2010 at 10:57:21AM -0400, Stephen Woodbridge wrote:
> strk wrote:
> > Is it possible to switch between singleTile on/off for
> > a layer which is already added to a map ?
> >
> > When I try using addOptions({singleTile:true}) over a layer
> > initialized w/out that option the result is some odd behaviour:
> > a single tile is loaded with the request of full extent BUT
> > it is placed as it was a single tile of a set.
> >
> > The test is here:
> >
> > http://strk.keybit.net/tmp/ol/st.html
> >
> > Thanks in advance for any help.
>
> I have not tried that, but what I normally do is have two layers, one
> tiled and one single tile and switch between them.
FYI: I've handled to produce a version which doesn't require
removal and re-addition of a layer:
http://strk.keybit.net/tmp/ol/st2.html
Not sure about unwanted side-effects, but seems to work.
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
More information about the Users
mailing list