This is the documentation of version 1.0.0-rc.4. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CustomGeoJSONImageSpec

    The specification of a single custom image that a CustomGeoJSONModule registers on the map. 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

    The image data, in any format MapLibre's addImage accepts. Asynchronous sources, such as URLs and SVG strings, aren't supported here. Pre-load them and pass an HTMLImageElement, ImageBitmap or ImageData instead.

    options?: Partial<StyleImageMetadata>

    The MapLibre image metadata pixelRatio, sdf, stretchX, stretchY and content, forwarded verbatim to addImage.