Skip to content

ui: Split map layers for smoother theme switching - #1561

Open
krkk wants to merge 5 commits into
motis-project:masterfrom
krkk:smooth-theme-change
Open

krkk wants to merge 5 commits into
motis-project:masterfrom
krkk:smooth-theme-change

Conversation

@krkk

@krkk krkk commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

An attempt to fix a regression from #1395. That PR reverted the temporary VersaTiles map styles, which by doing so introduced some artefacts when changing themes.

Maplibregl seems to struggle with smooth transitions when fill-color is an expression (related?: mapbox/mapbox-gl-js#3170. different project, but it's a pre-fork issue and I couldn't find similar issue in the maplibre repo)

before this pr
image image

@krkk
krkk force-pushed the smooth-theme-change branch 2 times, most recently from 94bca41 to cc5393d Compare August 14, 2026 18:53
krkk added 5 commits August 14, 2026 21:05
Somehow, changing the image contents instead of the name of the image makes changing themes almost instant now.
So much so the shield gets changed instantly, while the rest of the map goes a smooth transition. D:
@krkk
krkk force-pushed the smooth-theme-change branch from cc5393d to 1fb5d84 Compare August 14, 2026 19:27
@krkk
krkk marked this pull request as ready for review August 14, 2026 19:29
@krkk krkk changed the title ui: Split layers to switch map theme smoothly ui: Split map layers for smoother theme switching Aug 14, 2026
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.

1 participant