mapbox-gl-contextmenu - v1.6.0
    Preparing search index...

    Interface MapboxContextMenuOptions

    Configuration options for creating a Mapbox context menu. Extends ContextMenuOptions.

    interface MapboxContextMenuOptions {
        className?: string;
        theme?: ContextMenuTheme;
        width?: string | number;
    }

    Hierarchy

    • ContextMenuOptions
      • MapboxContextMenuOptions
    Index

    Properties

    className?: string

    Custom CSS class name for the menu element.

    theme?: ContextMenuTheme

    The color theme: "light", "dark", or "auto" (follows system preference). Defaults to "auto".

    width?: string | number

    The menu width as a CSS value (e.g., "200px") or number in pixels.