[OpenLayers-Dev] Re: OSM layer panning at trunk

Andreas Hocevar ahocevar at opengeo.org
Thu Mar 3 04:52:33 EST 2011


Hi,

it's two changes that explain this behavior:

1) http://trac.osgeo.org/openlayers/ticket/3111 - As Bart already said, buffer is 0 now by default

2) http://trac.osgeo.org/openlayers/ticket/2998 - Tiles load after a 100ms delay when dragging stops now, not on moveend as you said.

So if you really want the old behavior back, you set the following two options on your OSM layer:

   buffer: 2,
   tileLoadingDelay: 0

Regards,
Andreas.

On Mar 3, 2011, at 08:11 , Bart van den Eijnden (OSGIS) wrote:

> The default value of buffer was changed from 2 to 0, which probably
> explains this?
> 
> Best regards,
> Bart
> 
>> http://gis-lab.info/share/DR/sandbox/osm-release.html
>> http://gis-lab.info/share/DR/sandbox/osm-trunk.html
>> 
>> On Thu, Mar 3, 2011 at 1:01 PM, Denis Rykov <rykovd at gmail.com> wrote:
>>> Hi devs!
>>> I've made two examples with different version of OpenLayers - 2.10 and
>>> trunk version.
>>> Both examples contains map with one OSM layer and shows different
>>> behavior while map panning.
>>> I guess that at the second (trunk) example while panning tiles loads
>>> only after moveend event, but in the first example it does not.
>>> Could anyone explain this behavior?
>>> 
>> _______________________________________________
>> Dev mailing list
>> Dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>> 
> 
> 
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Dev mailing list