eurostat-map
    Preparing search index...

    Interface LocationConfig

    Configuration for a single location marker

    interface LocationConfig {
        id?: string;
        lon: number;
        lat: number;
        label?: string;
        shape?:
            | "circle"
            | "square"
            | "diamond"
            | "cross"
            | "star"
            | "triangle"
            | "plus";
        size?: number;
        color?: string;
        stroke?: string;
        strokeWidth?: number;
        class?: string;
        data?: any;
    }
    Index

    Properties

    id?: string

    Unique identifier for the location

    lon: number

    Longitude coordinate

    lat: number

    Latitude coordinate

    label?: string

    Label text to display

    shape?: "circle" | "square" | "diamond" | "cross" | "star" | "triangle" | "plus"

    Marker shape.

    'circle'
    
    size?: number

    Marker size in pixels.

    8
    
    color?: string

    Fill color.

    '#e74c3c'
    
    stroke?: string

    Stroke color.

    '#fff'
    
    strokeWidth?: number

    Stroke width in pixels.

    1
    
    class?: string

    Custom CSS class

    data?: any

    Custom data attached to the location