Fix: zentrale Karte nutzte window.UI (undefined) statt bare UI → immer Raster-Branch
ui.js exponiert 'const UI' = globales lexikalisches Binding (bare UI), NICHT window.UI. map.js _addBasemap prüfte window.UI → immer falsy → Vektor-Pfad nie genommen. Jetzt: typeof UI-Check. (window.UI?.toast in boot/api/app sind separat tote No-Ops.)
This commit is contained in:
parent
5cb7c3091d
commit
1d64dc5d70
7 changed files with 19 additions and 18 deletions
|
|
@ -748,7 +748,8 @@ window.Page_map = (() => {
|
|||
_tileLayer.on('load', _applyTileTheme);
|
||||
_applyTileTheme();
|
||||
};
|
||||
if (window.UI && UI.map.vectorEnabled && UI.map.vectorEnabled()) {
|
||||
// ui.js exponiert UI als globales const (bare 'UI'), NICHT als window.UI!
|
||||
if (typeof UI !== 'undefined' && UI.map && UI.map.vectorEnabled && UI.map.vectorEnabled()) {
|
||||
UI.map.vectorLayer({ dark: _isDarkMode() }).then(layer => {
|
||||
if (!_map) return;
|
||||
_usingVector = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue