umap-project / umap

uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site.
https://umap-project.org
Other
1.19k stars 226 forks source link

dynamic style elements from external data (geojson a.o.) #606

Open berteh opened 6 years ago

berteh commented 6 years ago

Hello Thanks for the great tool !

Please allow to use of dynamic attributes to style the displayed elements.

For instance in map https://umap.openstreetmap.fr/fr/map/nogemerhaff_237856

The source geojson contains fill color, stroke color and width information. I would love to simply being allowed to put {fill} in the box defining the fill color to have it dynamically used.

yohanboniface commented 6 years ago

Not every style property have a text input, so it's not an easy change. Maybe an alternative option is to support https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0.

berteh commented 6 years ago

Would be perfect too as far as I'm concerned, at the cost of less flexibility for non mapbox style data sources. Thanks for the link.

dsmrs commented 4 years ago

I reopen the topic, these standard seems to be one popular solution. https://github.com/mapbox/simplestyle-spec/wiki/Implementations

At least, I find it more "elegeant" than _storage_options, no?