TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CustomGeoJSONImageSpec

    Specification for a single custom image registered on the map by a CustomGeoJSONModule. The module re-registers every image automatically after every style change, so symbol layers in CustomGeoJSONSourceSpec.layers can reference an image by ID and survive setStyle calls without extra wiring.

    type CustomGeoJSONImageSpec = {
        image: CustomGeoJSONImageData;
        options?: Partial<StyleImageMetadata>;
    }
    Index

    Properties

    Properties

    The image data, in any format accepted by MapLibre's addImage. Asynchronous sources (URLs, SVG strings) are not supported here — pre-load them and pass an HTMLImageElement (or ImageBitmap/ImageData) instead.

    options?: Partial<StyleImageMetadata>

    MapLibre image metadata: pixelRatio, sdf, stretchX, stretchY, content. Forwarded verbatim to addImage.