[OpenLayers-Users] lingering vectors during zoom

Brad Spencer brad at numaps.com.au
Thu Dec 8 15:04:03 EST 2011


List,

 

I have an annoying small problem that maybe others have solved. 

 

When I overlay a WMS polygon layer rendered with a single SLD filter
(Polygon Boundaries + Polygon Labels) and with singleTile: true set it works
just fine. However, when I zoom in or out the basemap (googleMaps but same
with others) clears away first and then it zooms in and the basemap tiles
start to draw but the vectors sometimes remain for in pre-zoom scale which
looks bad as the vectors are not aligned with the new scale of basemap.
Eventually the vector layer is refreshed at the new scale and all is well
again. Its not broken it just looks like a rather clunky transition. 

 

Using transitionEffect: 'resize' does not improve this. I have also tried
toggleing the layer's visibility in a zoom event to clear out the vectors
then apply the visibility again with no luck. The only way around this is to
tile the polygon boundary request but I have labels included and I prefer
not to make two separate requests - one tiled and one untiled.

 

I am using OL 2.10 and the same problem occurs on Chrome, IE and FF.

 

Cheers, Brad...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111209/0fe77f61/attachment.html


More information about the Users mailing list