-
Notifications
You must be signed in to change notification settings - Fork 9
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
Background map and blend modes #83
Comments
Gridviz does not use this css property. This is indeed an interesting perspective ! There are however currently possiblities for transparent styles. See for example for: I just added these two examples: |
It is now handled in version 2.0.49 ! It is now possible to specify something like:
at style or layer definition level. |
I just published a little change in version 2.0.50: The alpha and blendOperation parameters are now functions of the zoom factor parameter zf:
In such a way, it may be possible to alter the alpha depending on the zoom level, to make a fading effect for example... |
This looks great in Chrome and Safari but gives me a black page in Firefox (102.14esr on Windows10; 117.0 on macOS 13.5.2) once I mouseover the map |
Do I understand correctly that part of the perfomance trick gridviz does is, that everything in the viewport is rendered into one canvas element at once and that there are no distinct layers that could be styled individually by css?
I am asking this because background maps can greatly benefit from blend modes, as you can see in this example (1km grid, Census 2011 population counts,
mix-blend-mode: multiply
)and I was wondering if this could be achieved with gridviz
The text was updated successfully, but these errors were encountered: