auto-sync: 2026-05-02 10:00:01

This commit is contained in:
Stream
2026-05-02 10:00:01 +03:00
parent 8c6a854eea
commit 87e3195c13
2 changed files with 10 additions and 2 deletions

View File

@@ -348,6 +348,7 @@ const map = new maplibregl.Map({
maxZoom: 18,
hash: true,
});
window._map = map;
map.addControl(new maplibregl.NavigationControl(), 'top-left');
map.addControl(new maplibregl.ScaleControl({ unit: 'metric' }), 'bottom-right');
@@ -360,9 +361,16 @@ map.on('load', () => {
});
map.on('error', (e) => {
console.warn('Map error:', e);
console.error('Map error:', e.error?.message || e);
// Снимаем loading даже при ошибке чтобы не висело
document.getElementById('loading').classList.remove('visible');
});
// Таймаут — если load не сработал за 15 сек, снимаем loading
setTimeout(() => {
document.getElementById('loading').classList.remove('visible');
}, 15000);
// ─── Check if data is available ───────────────────────────────────────────────
async function checkDataAvailability() {
try {

View File

@@ -77,7 +77,7 @@
"type": "line",
"source": "trails-tiles",
"source-layer": "trails",
"filter": ["in", ["get", "highway"], "literal", ["path", "bridleway", "footway"]],
"filter": ["in", "highway", "path", "bridleway", "footway"],
"paint": {
"line-color": "#cc9900",
"line-width": ["interpolate", ["linear"], ["zoom"], 7, 0.5, 10, 1, 12, 1.5, 16, 3],