Interface NavigationControlProps

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

interface NavigationControlProps {
    position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
    showCompass?: boolean;
    showZoom?: boolean;
    visualizePitch?: boolean;
}

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.

showCompass?: boolean

Display a compass control; defaults to true.

showZoom?: boolean

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

visualizePitch?: boolean

Control pitch using the compass control; defaults to false.