[OpenLayers-Users] RE: Automatic smooth zoom

Andreas Hocevar ahocevar at opengeo.org
Mon Jul 11 05:34:55 EDT 2011


Hi,

animated zooming is not that easy. There is currently no way to do it.
But there are two ways you could implement it:

1) with CSS3 transforms. See OpenLayers.Control.PinchZoom for a
similar use case where this is used. This will only work in modern
CSS3 capable browsers.

2) after applying the patch for
http://trac.osgeo.org/openlayers/ticket/3061 by changing the size of
map.layerContainerDiv and applying an offset similar to the one
calculated in the PinchZoom control. This will work in all browsers.

Having said that, patches are always welcome.

Andreas.

On Sat, Jul 9, 2011 at 8:36 PM, jhpoosthoek <jhpoosthoek at gmail.com> wrote:
> Oeps, forgot to mention that. Tried a delay, but it still doesn't work. I
> notice the browser waiting and then after the delay going to the final
> page...
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Automatic-smooth-zoom-tp6563855p6566255.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



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


More information about the Users mailing list