digidem / mapeo-desktop

Local-first mapping and monitoring in remote environments
https://mapeo.app
GNU General Public License v3.0
261 stars 33 forks source link

Adding color hex codes for config presets to GeoJSON properties when exported #751

Open rudokemper opened 1 year ago

rudokemper commented 1 year ago

Describe the idea A proposed feature: adding the hex codes of the config preset colors to the GeoJSON output properties, if found in a config.

That way, we can continue to use the same colors for categories that people might be used to from data collection in later outputs such as cartographic or web maps.

What's your role? Where and how do you currently use the application? Currently, I am working on a web application that render and visualize Mapeo (and other) data on a map among other views. To help distinguish different types of points on a map, I am randomizing the colors but it would be great to use the preset color hex code if it were stored in GeoJSON properties, to have continuity in the color symbology from the data collection to visualization phase.

Additional context We do something similar with the Native Land API e.g. https://native-land.ca/wp-content/themes/NLD-2021/files/indigenousTerritories.json