On this page

Interface MinimapOptionsInput

interface MinimapOptionsInput {
    containerStyle?: Record<string, string>;
    lockZoom?: number;
    parentRect?: ParentRect;
    pitchAdjust?: boolean;
    position?: ControlPosition;
    style?: string | StyleSpecification | ReferenceMapStyle | MapStyleVariant;
    zoomAdjust?: number;
}
Index

Properties

containerStyle?: Record<string, string>

Set CSS properties of the container using object key-values

lockZoom?: number

Set a zoom of the minimap and don't allow any future changes

parentRect?: ParentRect

Set the parentRect fill and/or line options

pitchAdjust?: boolean

Adjust the pitch only if the user requests

position?: ControlPosition

Set the position of the minimap at either "top-left", "top-right", "bottom-left", or "bottom-right"

Style of the map. Can be:

  • a full style URL (possibly with API key)
  • a shorthand with only the MapTIler style name (eg. "streets-v2")
  • a longer form with the prefix "maptiler://" (eg. "maptiler://streets-v2")
zoomAdjust?: number

Set the zoom difference between the parent and the minimap If the parent is zoomed to 10 and the minimap is zoomed to 8, the zoomAdjust should be 2 Default: -4

Was this helpful?
SDK JS
Reference
MinimapOptionsInput