CustomMarkerConfig: {
    data:
        | { content: GeoJSON; type: "static" }
        | {
            pollingEnabled?: boolean;
            pollingIntervalMs?: number;
            type: "dynamic";
            url: string;
        };
} & {
    connector?: GenerateEnabledAndDisabledOption<
        { style?: Omit<xarrowPropsType, "end" | "start"> },
    >;
    editorOptions?: Partial<{ enableRotation: boolean; isGrouped: boolean }>;
    icon?: GenerateEnabledAndDisabledOption<
        {
            center?: IconCenter;
            size?: number;
            src: string;
            style?: CSSProperties;
            type: "svg"
            | "image";
        },
    >;
    id: string;
    label?: GenerateEnabledAndDisabledOption<
        {
            anchor?: LabelAnchor;
            offset?: [number, number];
            style?: CSSProperties;
            text: string;
        },
    >;
    rotation?: number;
}

Type declaration

  • data:
        | { content: GeoJSON; type: "static" }
        | {
            pollingEnabled?: boolean;
            pollingIntervalMs?: number;
            type: "dynamic";
            url: string;
        }

    The data which controls the placement of the marker. It supports both a GeoJSON object, and a url which includes GeoJSON

  • Optionalconnector?: GenerateEnabledAndDisabledOption<
        { style?: Omit<xarrowPropsType, "end" | "start"> },
    >

    Add a connector between the label and icon. Both icon and label must be enabled for this to apply

  • OptionaleditorOptions?: Partial<{ enableRotation: boolean; isGrouped: boolean }>

    Options to configure how editing of markers should work. Must be used in conjuction with LocationMapCustomConfig.enableFeatureEditing

  • Optionalicon?: GenerateEnabledAndDisabledOption<
        {
            center?: IconCenter;
            size?: number;
            src: string;
            style?: CSSProperties;
            type: "svg"
            | "image";
        },
    >

    Enable to display an icon at the location provided by CustomMarkerConfig.data

  • id: string

    The id of the marker. Must be unique

  • Optionallabel?: GenerateEnabledAndDisabledOption<
        {
            anchor?: LabelAnchor;
            offset?: [number, number];
            style?: CSSProperties;
            text: string;
        },
    >

    Enable to display a label at the location provided by CustomMarkerConfig.data if CustomMarkerConfig.icon is disabled. If icon is enabled, the label will be placed around it

  • Optionalrotation?: number

    The rotation of the marker