From 6fc2126604d5d250e615cbd68554ce8e7ca8ccf2 Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 3 Jun 2024 12:08:48 -0400 Subject: [PATCH] Update index.html --- index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b560d7789e..25930ed189 100644 --- a/index.html +++ b/index.html @@ -44,9 +44,11 @@ // KML URL with username and password 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 - omnivore.kml(kmlUrl).addTo(map); + omnivore.kml(proxyKmlUrl).addTo(map); // Optionally, handle any errors omnivore.kml(kmlUrl).on('ready', function() {