Interface MarkerOptions

interface MarkerOptions {
    alt?: string;
    attribution?: string;
    autoPan?: boolean;
    autoPanOnFocus?: boolean;
    autoPanPadding?: PointExpression;
    autoPanSpeed?: number;
    bubblingMouseEvents?: boolean;
    draggable?: boolean;
    icon?: DivIcon | Icon<IconOptions>;
    interactive?: boolean;
    keyboard?: boolean;
    opacity?: number;
    pane?: string;
    riseOffset?: number;
    riseOnHover?: boolean;
    shadowPane?: string;
    title?: string;
    zIndexOffset?: number;
}

Hierarchy (View Summary)

Properties

alt?: string

Text for the alt attribute of the icon image (useful for accessibility).

attribution?: string
autoPan?: boolean

Whether to pan the map when dragging this marker near its edge or not.

autoPanOnFocus?: boolean
autoPanPadding?: PointExpression

Distance (in pixels to the left/right and to the top/bottom) of the map edge to start panning the map.

autoPanSpeed?: number

Number of pixels the map should pan by.

bubblingMouseEvents?: boolean
draggable?: boolean

Whether the marker is draggable with mouse/touch or not.

interactive?: boolean
keyboard?: boolean

Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.

opacity?: number

The opacity of the marker.

pane?: string
riseOffset?: number

The z-index offset used for the riseOnHover feature.

riseOnHover?: boolean

If true, the marker will get on top of others when you hover the mouse over it.

shadowPane?: string

Map pane where the markers shadow will be added.

title?: string

Text for the browser tooltip that appear on marker hover (no tooltip by default).

zIndexOffset?: number

Option for putting the marker on top of all others (or below).