mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-07-13 16:16:44 +02:00
debugging map failure
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user