Skip to content

Feat: Support 'layerType' key config.json#76

Merged
arnaudfnr merged 1 commit into
mainfrom
arnaudfnr/add_layer_type
Apr 18, 2026
Merged

Feat: Support 'layerType' key config.json#76
arnaudfnr merged 1 commit into
mainfrom
arnaudfnr/add_layer_type

Conversation

@arnaudfnr
Copy link
Copy Markdown
Collaborator

Context

This PR is related to #64 and #74.
We want to create layers of type "symbol" in order to show icons instead of circles as data points in the map.
However, currently the layer type is inferred from the geometry type. But in the case of 'symbols' the layer type can be anything and therfore it should be set directly in the config.json.

Another strategy would be to infer the layer type into 'symbol' in case other data keys are present in the config.json, like "layout": { "icon-image": "someUrl" } for instance, but it would make the code a bit more complex.

@Cabanon
Copy link
Copy Markdown
Collaborator

Cabanon commented Apr 16, 2026

why not keeping the key as "type" so we stay aligned with maplibre layer properties ?
https://maplibre.org/maplibre-style-spec/layers/#layer-properties

@arnaudfnr
Copy link
Copy Markdown
Collaborator Author

why not keeping the key as "type" so we stay aligned with maplibre layer properties ? https://maplibre.org/maplibre-style-spec/layers/#layer-properties

I can do that but 'type' was already used, so I did the smallest change.

@Cabanon
Copy link
Copy Markdown
Collaborator

Cabanon commented Apr 17, 2026

Ah yeah right, so that's fine, i think we will need to make something cleaner for layer configs because it's weird that we mix maplibre config and coordo config IMO but we can do this after the season

@arnaudfnr arnaudfnr force-pushed the arnaudfnr/add_layer_type branch from 40481e5 to fe3ce33 Compare April 17, 2026 17:12
@arnaudfnr arnaudfnr merged commit c63816a into main Apr 18, 2026
3 checks passed
@arnaudfnr arnaudfnr deleted the arnaudfnr/add_layer_type branch April 18, 2026 12:06
@github-project-automation github-project-automation Bot moved this from Todo to Done in 14_Data4Trees Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Feat: Support "symbol" Layer type to display Icon as Data Point instead of circles.

2 participants