Driving declutter by a ["pitch"] in the layers' filters (MapLibre 6.21): route numbers and minor roads' / paths' names go already while tilting past 30°, no pitchend listener, no re-apply on style.load
CI / check (push) Successful in 25s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-05 14:36:11 +01:00
1 parent f85785c61d
commit cba14300b5
2 files changed
+11 -18

No files matched your search

+1 -2
View File
@@ -24,7 +24,7 @@ import { addRoutePoint, setupSidePanelModes } from "/js/panels.js";
import { isLoggedIn } from "/js/auth.js";
import { DebugControl } from "/js/debug.js";
import { setupUpdate } from "/js/update.js";
import { patchOnlineStyle, patternImage, PATTERN_IDS, NightMap, declutterWhenDriving } from "/js/map_themes.js";
import { patchOnlineStyle, patternImage, PATTERN_IDS, NightMap } from "/js/map_themes.js";
import { offerSharedFiles } from "/js/share_import.js";
import HomeButton from "/vendor/npmap-home-button/home-button.esm.js";
import OverviewMap from "/vendor/npmap-overview/overview.esm.js";
@@ -438,7 +438,6 @@ const addPatterns = () => {
}
};
map.on("style.load", addPatterns);
declutterWhenDriving(map);
if (map.isStyleLoaded()) addPatterns();
// Still the fallback for one asked for before that.
map.on("styleimagemissing", ({ id }) => {