Module: webgis4u/ol/util/pan

Methods

(static) pan(options)

Pans the displayed map extent with the deltaX and deltyY factor of the currently displayed map
Parameters:
Name Type Description
options PanOptions The options for the interaction
Source:
Example
//move the map 30% left and 40% upward.
pan({delta: [-0.3, 0.4], map: myMap});

Type Definitions

PanOptions

Properties:
Name Type Attributes Description
delta ol.coordinate.Coordinate The delta pan factor
map ol.Map The map
animationOptions olx.animation.AnimateOptions <optional>
Additional options for an animation
Source: