Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document layer names on the Rendering Tutorial page #97

Open
pcmill opened this issue Sep 5, 2022 · 2 comments
Open

Document layer names on the Rendering Tutorial page #97

pcmill opened this issue Sep 5, 2022 · 2 comments

Comments

@pcmill
Copy link

pcmill commented Sep 5, 2022

I followed the tutorial to create the map style I wanted to achieve and found myself not knowing how the different layers are called. I eventually found this code: default_style which solved my personal problem.

Might be nice to create a list on the tutorial page (or elsewhere) so people can quickly start styling their own maps. Also documenting which Symbolizer you need for each layer could be useful. So boundaries is used with LineSymbolizer and earth is used with PolygonSymbolizer etc.

Last thing that would be really useful is a list of the different props that can be useful to filter. For example I used pmap:min_admin_level === 2 to only show country boundaries.

@pcmill
Copy link
Author

pcmill commented Sep 5, 2022

Just found https://protomaps.com/docs/map-layers-tags. Then linking this page on the tutorial page might be enough :)

@bdon
Copy link
Member

bdon commented Nov 13, 2022

I've re-organized the Docs site completely:

https://protomaps.com/docs/frontends/basemap-layers contains the basemap layers

https://protomaps.com/docs/frontends/leaflet#custom-vector-data contains the old "tutorial" for writing Symbolizers.

Will add some more links to/from GitHub and info on the possible props values. Thanks for the feedback!

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

No branches or pull requests

2 participants