Skip to content

One OL Layer per style-file layer? #1207

Answered by ahocevar
smellyshovel asked this question in Q&A
Discussion options

You must be logged in to vote

For "building", you won't see much difference because "building_top" is on top of "building". And for "water", you won't see much difference either, because "water_shadow" is on top of it.

See https://codesandbox.io/p/sandbox/mapbox-style-forked-8psldc for an example that sets layers whose id starts with "building" or "water" to invisible.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@smellyshovel
Comment options

Answer selected by smellyshovel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants