Skip to content

Added support for colors in Geojson layers + Option to use free map tiles#5

Merged
amcarrero merged 2 commits intoCityScope:mainfrom
Asempere123123:main
Mar 6, 2025
Merged

Added support for colors in Geojson layers + Option to use free map tiles#5
amcarrero merged 2 commits intoCityScope:mainfrom
Asempere123123:main

Conversation

@Asempere123123
Copy link
Contributor

Added support for colors inside geojson layers. If a geojson layer now has properties.color defined for a feature, that color will be used. The format is either a 6 or 8 digit hex.

Also made it so that if the usefreemap=true query parameter is present, the tilelayer will use a free map instead of the default one. This is usefull if anybody wants to run it localy or if the mapbox token changes

Copy link
Collaborator

@amcarrero amcarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I’ve added some comments addressing certain parts of the code

@Asempere123123
Copy link
Contributor Author

Did the requested changes, I'll later open an issue to discuss a more general solution to selecting the map tiles source

@amcarrero amcarrero merged commit 9b9ec80 into CityScope:main Mar 6, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants