[OpenLayers-Users] Automatic smooth zoom

PORTER.DANIEL PORTER.DANIEL at flsenate.gov
Fri Jul 8 16:06:58 EDT 2011


I believe the function you want is Map.panTo().

http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.panTo

-----Original Message-----
From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of jhpoosthoek
Sent: Friday, July 08, 2011 3:33 PM
To: users at openlayers.org
Subject: [OpenLayers-Users] Automatic smooth zoom

Hi,

I would like to zoom into a certain extent on an openlayers map after a
click event. When I use map.SetCenter() the map is immediately changed into
the new extent. What I want is to show an automatic animated zoom from the
old extent to the new extent.

Thanks in advance,

Jelmer Oosthoek

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Automatic-smooth-zoom-tp6563855p6563855.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


More information about the Users mailing list