@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A marker placed on the map at a geographic position.

    interface MapMarker {
        anchor?: [number, number];
        color?: string;
        icon?: string;
        label?: string;
        position: MapLatLng;
        size?: [number, number];
    }
    Index

    Properties

    anchor?: [number, number]

    Anchor offset from the top-left of the icon in pixels [x, y]. Defaults to centre-bottom of the default pin.

    color?: string

    Fill colour for the default pin. Ignored when a custom icon is provided. Defaults to var(--mv-accent).

    icon?: string

    Custom SVG string for the marker icon. When omitted a default pin shape is rendered.

    label?: string

    Tooltip text and accessible label.

    position: MapLatLng

    Geographic position.

    size?: [number, number]

    Icon dimensions in pixels [width, height]. Defaults to [24, 36].