Update index.html

This commit is contained in:
2024-06-03 11:30:29 -04:00
committed by GitHub
parent 7f8dc6c27e
commit d44bef0729

View File

@@ -41,10 +41,10 @@
}).addTo(map);
// Load the KML file
omnivore.kml('https://share.garmin.com/Feed/Share/NDB92').addTo(map);
omnivore.kml('https://share.garmin.com/Feed/ShareLoader/NDB92').addTo(map);
// Optionally, handle any errors (omnivore doesn't have built-in error handling)
omnivore.kml('https://share.garmin.com/Feed/Share/NDB92').on('ready', function() {
omnivore.kml('https://share.garmin.com/Feed/ShareLoader/NDB92').on('ready', function() {
console.log('KML loaded successfully');
}).on('error', function() {
alert('Failed to load KML');