debugging map failure

This commit is contained in:
Marc Froehlich
2026-06-22 23:54:06 +02:00
parent af4edca4a7
commit 7cf0ff2294
3 changed files with 18 additions and 4 deletions
@@ -370,10 +370,21 @@ public final class MapHtmlResources {
jsLog('Leaflet map initialized'); jsLog('Leaflet map initialized');
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { const osmTileLayer = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18, maxZoom: 19,
attribution: '© OpenStreetMap' attribution: '© OpenStreetMap contributors'
}).addTo(map); });
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.createPane('beamPane');
map.getPane('beamPane').style.zIndex = 410; map.getPane('beamPane').style.zIndex = 410;
@@ -627,6 +627,8 @@ public final class StationMapView {
} }
}); });
webEngine.setUserAgent("KST4Contest (+https://hamradioonline.de)");
webEngine.loadContent(MapHtmlResources.createStationMapHtml()); webEngine.loadContent(MapHtmlResources.createStationMapHtml());
} }
+1
View File
@@ -8,6 +8,7 @@ module praktiKST {
requires jdk.jsobject; requires jdk.jsobject;
requires java.net.http; requires java.net.http;
requires java.desktop; requires java.desktop;
requires jdk.crypto.ec;
exports kst4contest.controller.interfaces; exports kst4contest.controller.interfaces;
exports kst4contest.controller; exports kst4contest.controller;
exports kst4contest.locatorUtils; exports kst4contest.locatorUtils;