debugging map failure

This commit is contained in:
Marc Froehlich
2026-06-22 23:54:06 +02:00
committed by Philipp Wagner
parent 04b9e0e75c
commit 2d32eaf462
2 changed files with 17 additions and 4 deletions
@@ -370,10 +370,21 @@ public final class MapHtmlResources {
jsLog('Leaflet map initialized');
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: '© OpenStreetMap'
}).addTo(map);
const osmTileLayer = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© OpenStreetMap contributors'
});
osmTileLayer.on('tileload', function (event) {
jsLog('OSM tile loaded');
});
osmTileLayer.on('tileerror', function (event) {
const src = event && event.tile ? event.tile.src : 'unknown';
jsError('OSM tile load failed: ' + src);
});
osmTileLayer.addTo(map);
map.createPane('beamPane');
map.getPane('beamPane').style.zIndex = 410;
@@ -627,6 +627,8 @@ public final class StationMapView {
}
});
webEngine.setUserAgent("KST4Contest (+https://hamradioonline.de)");
webEngine.loadContent(MapHtmlResources.createStationMapHtml());
}