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

paint property blending: multiply #6818

Open
simonhuwiler opened this issue Jun 14, 2018 · 6 comments
Open

paint property blending: multiply #6818

simonhuwiler opened this issue Jun 14, 2018 · 6 comments

Comments

@simonhuwiler
Copy link

Motivation

Adobe Photoshop and Illustrator allow to set the blending to multiply. Actually a really nice feature for showing data heatmap like visualizations. But in contrast to heatmaps, you dont lose the shape of your original data.
Imagine: You paint hundrets of lines on to the map. Now you set in the paint property line-blending to multiplyand you get a wonderful visualization, more accurate than heatmaps, but still the density.

I would love this feature in Mapbox GL and in the Mapbox studio editor!

Sincerely
Simon

@georgbachmann
Copy link

I'd also love to see that feature :) Is there any update on it? Will it come in the not-so-distant future? Or are devices still not performant enough?
Cheers,
Georg

@gmchocolate
Copy link

gmchocolate commented Jul 9, 2019

Blending mode is one of the wonderful visualization styles, I use it a lot in QGIS
blending

@AbelVM
Copy link

AbelVM commented Jul 7, 2020

Any news on this?

Composite layers were removed 6 years ago because of low performance, and this PR was closed without merging.

That happened while working on v0.1.0... It's 6 years later and the version is now v1.11... Will we have comp-op blending modes any time soon?

@cedricdelpoux
Copy link

I could be very powerful to achieve Strava like heatmap. See #10097

@floriankorn
Copy link

Any updates on this issue?
Someone has an idea of a workaround to define CSS for a geojson layer, as everything gets rendered within the mapbox canvas...?

Would really need this feature!

@bothness
Copy link

bothness commented Jul 15, 2021

Hi all. I wanted to share a hack that I managed to come up with to achieve a multiply blend between layers.

In short, you can run two synchronised Mapbox map instances on top of one another, and use the CSS property mix-blend-mode: multiply on the <canvas> element of the top map.

The library mapbox-gl-sync-move allows you to sync the movement of the two maps.

I have put together a code pen example here (screenshot below).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants