-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
Add a per-layer opacity property #3062
Comments
Might be related to the following: #1191 |
Hello @HarelM, I have been chatting with a colleague of mine @philae-ael in the recent days as I know his general interest with the matter being discussed here. And... he has done few POCs already. I'll let the mic to him but I'll keep an interested eye on what's happening here 🤓 I guess the next step would be to discuss the actual objective(s) and the different approaches possible and the one that are the most likely to get merged ; what we should be careful, etc. On my side I can help track / followup things if welcomed. All the best ! |
If there's a need to update the current style spec with new properties, the best place to discuss this is the style-spec repo and bring it up in the monthly meeting to see what people in the community think and what things we might have forgot to take into consideration. |
Great, we will try to kick-off a new discussion there in the coming days. |
Digging a bit more we found mapbox/mapbox-gl-js#11082, @HarelM any ideas on if we could bring something that resembles to Maplibre (this has no impact on the spec) or should we try to give another shot to #1191 - or some version dedicated to lines only for now ? |
If we could fix it without a style spec change it would be great. |
This is an example of the problem with real-world data and inset lines. This makes it flat-out impossible to implement a copy of OpenStreetMap Carto in Maplibre, as it relies on transparent inset lines for national parks, tourism, and some other features. |
Hello,
User Story
As a user I would like to have an opacity setting at the layer level to avoid "additive opacity" inside the same layer.
Rationale
Here is an example with the current situation:
![image](https://private-user-images.githubusercontent.com/20242665/265453622-7480b9fa-6a90-4476-93c1-7de149830b4e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDEyMTUsIm5iZiI6MTcyMTM0MDkxNSwicGF0aCI6Ii8yMDI0MjY2NS8yNjU0NTM2MjItNzQ4MGI5ZmEtNmE5MC00NDc2LTkzYzEtN2RlMTQ5ODMwYjRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDIyMTUxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxMTYzMjBkYmJjZTk0OTBjMTMxYjczMGJhMjc5MTIxNGM1YTRhMDZlMDM3NTA5NDllYTQwODcyNWIwNDE0M2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Fv_-QQVTEnR1eVsvk8UcrRu06wpWWVtV8VkQhadhaes)
(Screenshot from https://jsfiddle.net/wq8gk2z5/22/)
We can see that the resulting line has actually ~4 colors due to the way it's rendered. I would like the rendered line to be a single color / opacity no matter how many times it crosses itself.
Impact
Would be a nice addition.
Related
The text was updated successfully, but these errors were encountered: