Skip to content

MglNavigationControl ​

Render Navigation Control

See NavigationControl

typescript
import { MglNavigationControl } from '@indoorequal/vue-maplibre-gl';

Props ​

position ​

  • Type: ControlPosition
  • Required: false
  • Default: undefined

Position on the map to which the control will be added. Valid values are 'top-left', 'top-right', 'bottom-left', and 'bottom-right'. Defaults to 'top-right'.

showCompass ​

  • Type: boolean
  • Required: false
  • Default: true

If true the compass button is included.

showZoom ​

  • Type: boolean
  • Required: false
  • Default: true

If true the zoom-in and zoom-out buttons are included.

visualizePitch ​

  • Type: boolean
  • Required: false
  • Default: undefined

If true the pitch is visualized by rotating X-axis of compass.

Source ​

See source.

Released under the MIT License.