eurostat-map
    Preparing search index...

    Interface LocationConfig

    Configuration for a single location marker

    interface LocationConfig {
        id?: string;
        x: number;
        y: number;
        label?: string;
        shape?: LocationShape;
        radius?: number;
        fill?: string;
        opacity?: number;
        stroke?: string;
        strokeWidth?: number;
        labelOffset?: [number, number];
        labelStyle?: LocationLabelStyle;
    }
    Index

    Properties

    id?: string

    Unique identifier for the location

    x: number

    Geographic X coordinate (longitude / easting)

    y: number

    Geographic Y coordinate (latitude / northing)

    label?: string

    Label text to display

    Marker shape.

    'circle'
    
    radius?: number

    Marker radius in pixels.

    6
    
    fill?: string

    Fill color.

    '#e84040'
    
    opacity?: number

    Fill opacity.

    1
    
    stroke?: string

    Stroke color.

    '#fff'
    
    strokeWidth?: number

    Stroke width in pixels.

    1.5
    
    labelOffset?: [number, number]

    Label offset from projected point in pixels.

    [7, -6]
    
    labelStyle?: LocationLabelStyle

    Label text style overrides