[OpenLayers-Users] "Kinetic" effect while moving a map programmatically
Eric Lemoine
eric.lemoine at camptocamp.com
Sun Nov 4 13:04:27 PST 2012
On Tue, Oct 30, 2012 at 12:05 PM, Jan Hartmann <j.l.h.hartmann at uva.nl> wrote:
> I have seen the example of "kinetic dragging".
>
> http://openlayers.org/dev/examples/kinetic.html
>
> Can this effect also be achieved when the map is recentered
> programmatically? So that map.setCenter(...) will slow down at the beginning
> and at the end of the scrolling?
Have you tried panTo?
http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.panTo
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 94
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list