Move
Moves the map. Uses animations if desired.
Constructor Summary
Public Constructor | ||
public |
constructor(options: MoveOptions) |
Member Summary
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
|
|
public |
setAnimations(animations: boolean) Turns animations on or off |
|
public |
toExtent(extent: ol.Extent, options: SingleMoveOptions) |
|
public |
toPoint(point: Coordinate, options: SingleMoveOptions) |
|
public |
zoomToPoint(point: ol.Point, options: SingleMoveOptions) |
Private Methods | ||
private |
animationZoomToExtent_(endExtent: ol.Extent, options: SingleMoveOptions) This function glides or bounces to an extent |
|
private |
bufferUpToMinSize_(extent: ol.Extent, minSize: number): ol.Extent |
|
private |
Easing function based on a parabolic function |
|
private |
Easing function based on a circle function |
|
private |
fit_(extent: ol.Extent, options: SingleMoveOptions) |
|
private |
Easing function based on a parabolic function |
|
private |
Easing function based on a circle function |
Public Constructors
public constructor(options: MoveOptions) source
Params:
Name | Type | Attribute | Description |
options | MoveOptions |
Private Members
Public Methods
public setAnimations(animations: boolean) source
Turns animations on or off
Params:
Name | Type | Attribute | Description |
animations | boolean |
public toExtent(extent: ol.Extent, options: SingleMoveOptions) source
Params:
Name | Type | Attribute | Description |
extent | ol.Extent | ||
options | SingleMoveOptions |
|
public toPoint(point: Coordinate, options: SingleMoveOptions) source
Params:
Name | Type | Attribute | Description |
point | Coordinate | ||
options | SingleMoveOptions |
|
public zoomToPoint(point: ol.Point, options: SingleMoveOptions) source
Params:
Name | Type | Attribute | Description |
point | ol.Point | ||
options | SingleMoveOptions |
|
Private Methods
private animationZoomToExtent_(endExtent: ol.Extent, options: SingleMoveOptions) source
This function glides or bounces to an extent
Params:
Name | Type | Attribute | Description |
endExtent | ol.Extent | ||
options | SingleMoveOptions |
private bufferUpToMinSize_(extent: ol.Extent, minSize: number): ol.Extent source
Params:
Name | Type | Attribute | Description |
extent | ol.Extent | ||
minSize | number |
Return:
ol.Extent |
private earlyFastRiseEasing2_(t: number): number source
Easing function based on a parabolic function
Params:
Name | Type | Attribute | Description |
t | number |
private earlyFastRiseEasing_(t: number): number source
Easing function based on a circle function
Params:
Name | Type | Attribute | Description |
t | number |
private fit_(extent: ol.Extent, options: SingleMoveOptions) source
Params:
Name | Type | Attribute | Description |
extent | ol.Extent | ||
options | SingleMoveOptions |