TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CustomGeoJSONSourceSpec

    Configuration for one logical source managed by a CustomGeoJSONModule.

    Each entry corresponds to a single MapLibre GeoJSON source plus its associated layers.

    type CustomGeoJSONSourceSpec = {
        cluster?: GeoJSONSourceClusterOptions;
        layers: CustomGeoJSONLayerSpec[];
        sourceID?: string;
    }
    Index

    Properties

    cluster?: GeoJSONSourceClusterOptions

    MapLibre cluster options, forwarded verbatim to the underlying GeoJSON source.

    Cluster options are applied at source creation time and cannot be changed via applyConfig. To change clustering, recreate the module.

    The layers that render this source. At least one layer is required for the source to be visible on the map.

    sourceID?: string

    Optional MapLibre source ID. Auto-generated as custom-geojson-${instanceIndex}-${sourceName} when absent.