[OpenLayers-Users] Zooming fast gives errors

Paul Meems bontepaarden at gmail.com
Mon Mar 18 09:19:17 PDT 2013


I've done some more digging and it seems my reset of the zoom level is not
related to my corrupt or truncated images/tiles in Firefox.

The reset of the zoomlevel is my main problem and I noticed the resetting
only occurs when I have more than 5 or 6 features. With only a few features
I can zoom out without any problem. When I have more (and still less than
100) the zoom level is reset ie. zooms back while zooming out.

Anymore suggestions? I can provide a test url if necessary.

Thanks,


Paul

2013/3/14 Paul Meems <bontepaarden at gmail.com>

>
> I have a strange behavior in my application using OLv2.12.
> I use GeoServer for my mapping and I have an aerial photo layer and two
> PostGIS layers.
> The photo layer is a grouped layer of a tiff layer (the aerial photo) and
> a vector layer (OSM data).
> The first PostGIS layer and the photo layer are both called using
> geowebcache and the second PostGIS layer is called as a WFS layer because I
> only show a few features based on an address.
>
> This works all fine. I start with a predefined address and when I zoom out
> too quickly I get error in Firebug and the map 'jumps' back to the original
> zoom level.
> Too quickly means not all tiles are shown yet. I zoom using the pan-zoom
> bar.
>
> The error is:
> Image corrupt or truncated:
> http://5.79.21.216:8080/geoserver/gwc/service/wms?LAYERS=Dakscan-Veldhoven%3ALuchtfoto-hybrid&FORMAT=image%2Fpng8&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A28992&BBOX=156323.53327898,380566.6511594,157183.69327898,381426.8111594&WIDTH=512&HEIGHT=512
>
> http://5.79.21.216:8080/geoserver/gwc/service/wms?LAYERS=Dakscan-Veldhoven%3ALuchtfoto-hybrid&FORMAT=image%2Fpng8&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A28992&BBOX=156323.53327898,380566.6511594,157183.69327898,381426.8111594&WIDTH=512&HEIGHT=512
> Line 0
> When I look closer at the error in Firebug I see the URL is appended twice.
>
> It looks like my quick zooming resulted in not requesting a new tile but
> combining the previous URL with the new one.
>
> This behavior happens in FF, Chrome and IE9.
> When I zoom to another address I don't have the behavior of returning to
> the initial zoom level, but I do have a lot of those errors about corrupt
> or truncated images.
>
> Most likely I'm doing something wrong, but I have no idea where to look.
>
> Thanks,
>
> Paul
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130318/adbef902/attachment.html>


More information about the Users mailing list