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

Disable filter inheritance on tiles, apply filter to tile container #5387

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

AntonKhorev
Copy link
Collaborator

If a filter is applied to every tile separately, it's possible that the gaps between tiles become visible when zooming. I've only seen this happening in Chrome, both on desktop and mobile.

It could have been the reason why I applied the filter to .leaflet-tile-container in the first place, which I had to undo in #5330. Now I'm applying the filter to the container again, but I disable the unexpected filer inheritance (which is disabled in the current unreleased Leaflet code).

Before:

simplescreenrecorder-2024-12-09_16.13.37.mp4

After:

simplescreenrecorder-2024-12-09_16.11.21.mp4

@hlfan
Copy link
Contributor

hlfan commented Dec 9, 2024

Are you deliberately trying to break every third-party patch/extension for the website that fixes the dimmed tiles?
If not, please let the color mode preference PR get merged first.
If so, merge ASAP.

@hlfan hlfan mentioned this pull request Dec 9, 2024
@AntonKhorev
Copy link
Collaborator Author

Looks like the amount of this grid lines effect depends on the filter used. With invert+rotate filters it almost disappears on desktop, but is still significantly noticeable on mobile. But that could be just because the overall brightness of tiles.

@tomhughes
Copy link
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit 325deab into openstreetmap:master Dec 11, 2024
22 checks passed
@AntonKhorev AntonKhorev deleted the map-filter-container branch December 11, 2024 18:46
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

Successfully merging this pull request may close these issues.

3 participants