VmControlNavigation
A NavigationControl control contains zoom buttons and a compass. see
Basic usage
API
Props
| Name | Description | Type | Default |
|---|---|---|---|
| showCompass | If true the compass button is included. | boolean | true |
| showZoom | If true the zoom-in and zoom-out buttons are included. | boolean | true |
| visualizePitch | If true the pitch is visualized by rotating X-axis of compass. | boolean | false |
| position | position on the map to which the control will be added. | enum | 'top-right' |
Events
| Name | Description | Type |
|---|---|---|
| beforeLoad | Triggers before the maplibreObject is loaded. | Function |
| ready | Triggers when the maplibreObject is successfully loaded. | Function |
| unready | Triggers when the maplibreObject loading failed. | Function |
| destroyed | Triggers when the maplibreObject is destroyed. | Function |
Exposes
| Name | Description | Type |
|---|---|---|
| load | Load the component manually. | Function |
| unload | Destroy the loaded component manually. | Function |
| reload | Load the component manually. | Function |
| creatingPromise | Determine whether the component is created by this. | object |
| maplibreObject | The maplibreObject created by component. | object |
| getMaplibreObject | Get the maplibreObject created by component. | Function |