Update index.html

This commit is contained in:
2024-06-03 12:08:48 -04:00
committed by GitHub
parent a8ef091584
commit 6fc2126604

View File

@@ -44,9 +44,11 @@
// KML URL with username and password // KML URL with username and password
var kmlUrl = 'https://USERNAME:abodyinmotion@share.garmin.com/Feed/ShareLoader/NDB92'; var kmlUrl = 'https://USERNAME:abodyinmotion@share.garmin.com/Feed/ShareLoader/NDB92';
// Use CorsProxy.io
var corsProxy = 'https://corsproxy.io/?';
var proxyKmlUrl = corsProxy + encodeURIComponent(kmlUrl);
// Load the KML file // Load the KML file
omnivore.kml(kmlUrl).addTo(map); omnivore.kml(proxyKmlUrl).addTo(map);
// Optionally, handle any errors // Optionally, handle any errors
omnivore.kml(kmlUrl).on('ready', function() { omnivore.kml(kmlUrl).on('ready', function() {