Interface NavigationControlProps

Components that implement this interface will display navigation controls on the map.

See

https://docs.mapbox.com/mapbox-gl-js/api/markers/#navigationcontrol-parameters

Hierarchy

  • NavigationControlProps

Properties

position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"

Optionally specify where the control will be displayed on the map; defaults to top-right.

See

Mapbox addControl Parameters

showCompass?: boolean

Display a compass control; defaults to true.

See

Mapbox NavigationControl Parameters

showZoom?: boolean

Display a zoom in / out control; defaults to true.

See

Mapbox NavigationControl Parameters

visualizePitch?: boolean

Control pitch using the compass control; defaults to false.

See

Mapbox NavigationControl Parameters

Generated using TypeDoc