With these IDs, you can customize the source and layers directly through the MapLibre API. For
example, you can access layers for custom styling, modify layer properties at runtime, remove or
update data sources, or debug layer hierarchies.
Example
// Get source and layer IDs from a module const { sourceID, layerIDs } = routeModule.getSourceWithLayerIDs();
The IDs of a MapLibre source and all its layers.
Remarks
With these IDs, you can customize the source and layers directly through the MapLibre API. For example, you can access layers for custom styling, modify layer properties at runtime, remove or update data sources, or debug layer hierarchies.
Example