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 CustomGeoJSONLayerSpec

    CustomGeoJSONLayerSpec: {
        beforeLayerConfig?: CustomGeoJSONBeforeLayerConfig;
        id?: string;
    } & DistributiveOmit<GeoJSONLayerSpec, "source" | "id">

    The specification of a single custom layer attached to a CustomGeoJSONSourceSpec.

    It is a MapLibre layer specification of a type a GeoJSON source can feed (circle, line, fill, fill-extrusion, symbol or heatmap) without source and id, plus an optional beforeLayerConfig for ordering. type preserves the variant, so variant-specific properties (filter, layout, paint, …) keep their narrow types.

    If you omit id, it is auto-generated as ${sourceID}-layer-${layerIndex}. Provide an explicit ID to refer to the layer from outside the module, such as to remove it with CustomGeoJSONModule.applyConfig or to place another layer beneath it. Also provide one if the layer set may change at runtime and you want a stable identity independent of array order.

    beforeLayerConfig places this layer, and wins over the module-wide CustomGeoJSONModuleConfig.beforeLayerConfig.