-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Problem
Currently, the GeoJsonFolder data source derives the mapId automatically from the folder path using mapNameFromUri(). This transformation:
- Converts to lowercase
- Replaces
:,\,/,.with dashes - Collapses consecutive dashes
- Removes
-openapi-jsonsuffix
For example, /home/user/geodata becomes -home-user-geodata.
Users cannot override this behavior to set a meaningful, custom mapId.
Proposed Solution
Add an optional mapId property to the GeoJsonFolder configuration schema. If provided, use it directly; otherwise, fall back to the current mapNameFromUri() derivation.
Example config:
dataSources:
- type: GeoJsonFolder
folder: /path/to/my/geodata
mapId: my-custom-map # optional
withAttrLayers: trueImplementation
The GeoJsonSource constructor already supports an optional mapId parameter - it just needs to be wired through the config layer.
Metadata
Metadata
Assignees
Labels
No labels