ArrowButtons
Extends:
ArrowButtons shows Buttons on the map which let you move in all 4 directions and a button to return to the initial
position of the map. It provides an Interface class with an produceOlControl returning an
{ol.control.Control} - Object. This can be added as normal controls to the map
(e.g. map.addControl(arrowButtons.produceOlControl) ).
The Options are passed as an Object (e.g. { initCenter : map.getView().getCenter(),
initZoom : map.getView().getZoom() }.
Constructor Summary
| Public Constructor | ||
| public |
constructor(options: ArrowButtonOptions) |
|
Member Summary
| Public Members | ||
| public |
labels_: * |
|
| public |
pixelDelta_: * |
|
| Private Members | ||
| private |
|
|
| private |
|
|
| private |
|
|
| private |
initExtent_: ol.Extent | undefined |
|
| private |
|
|
Method Summary
| Public Methods | ||
| public |
|
|
| Private Methods | ||
| private |
This method is called when a button is clicked and makes a move on the map corresponding to the direction. |
|
Public Constructors
public constructor(options: ArrowButtonOptions) source
Params:
| Name | Type | Attribute | Description |
| options | ArrowButtonOptions |
|
