map debug + bg
This commit is contained in:
parent
4f19b70905
commit
8ed243b293
@ -25,7 +25,7 @@ body{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;
|
||||
.loc-panel select{padding:1px 4px;border:1px solid #555;border-radius:3px;background:#333;color:#fff;font-size:10px;max-width:120px}
|
||||
.loc-panel input{padding:1px 4px;border:1px solid #555;border-radius:3px;background:#333;color:#fff;font-size:10px;width:100px}
|
||||
.loc-panel button{padding:1px 6px;border:none;border-radius:3px;background:var(--cyan);color:var(--ink);font-weight:600;cursor:pointer;font-size:10px}
|
||||
#map{height:100vh;width:100%;min-height:350px}
|
||||
#map{height:100vh;width:100%;min-height:350px;background:#1a1a1a;position:relative;z-index:1}
|
||||
.settings{background:#1a1a1a;padding:2px 8px;display:flex;gap:4px;align-items:center;font-size:10px;color:#9aa3b2;flex-wrap:wrap;border-bottom:none}
|
||||
.settings label{display:flex;align-items:center;gap:2px}
|
||||
.settings input{width:32px;padding:1px 3px;border:1px solid #555;border-radius:2px;background:#222;color:#fff;font-size:10px;text-align:center}
|
||||
@ -151,8 +151,10 @@ function init(){
|
||||
roadsLayer=L.layerGroup().addTo(map);
|
||||
buildingsLayer=L.layerGroup().addTo(map);
|
||||
updateModeBadge();
|
||||
setTimeout(()=>map.invalidateSize(),100);
|
||||
console.log('Map init done, center:',map.getCenter(),'zoom:',map.getZoom(),'size:',map.getSize());
|
||||
setTimeout(()=>{map.invalidateSize();console.log('invalidateSize, size:',map.getSize());},100);
|
||||
}
|
||||
window.addEventListener('load',()=>{setTimeout(()=>{if(map)map.invalidateSize();},200);});
|
||||
|
||||
// ====================== ВЫБОР ЛОКАЦИИ ======================
|
||||
let regionRelId=null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user