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.
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,symbolorheatmap) withoutsourceandid, plus an optionalbeforeLayerConfigfor ordering.typepreserves 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.beforeLayerConfigplaces this layer, and wins over the module-wide CustomGeoJSONModuleConfig.beforeLayerConfig.