Update index.html

This commit is contained in:
2024-06-03 14:09:49 -04:00
committed by GitHub
parent fba83e2119
commit 1b52b3806a

View File

@@ -52,19 +52,19 @@
}).addTo(map);
// KML URL with username and password
//var kmlUrl = 'https://USERNAME:abodyinmotion@share.garmin.com/Feed/Share/NDB92';
var kmlUrl = 'https://share.garmin.com/Feed/Share/NDB92';
var kmlUrl = 'https://USERNAME:abodyinmotion@share.garmin.com/Feed/Share/NDB92';
//var kmlUrl = 'https://share.garmin.com/Feed/Share/NDB92';
// Use CorsProxy.io to handle CORS for the KML file
var corsProxy = 'https://corsproxy.io/?';
var proxyKmlUrl = corsProxy + encodeURIComponent(kmlUrl);
// Load the KML file
//omnivore.kml(proxyKmlUrl).addTo(map);
//omnivore.kml(kmlUrl).addTo(map);
// Load the KML file and customize the marker icon
var kmlLayer = omnivore.kml(kmlUrl, null, L.geoJSON(null, {
var kmlLayer = omnivore.kml(proxyKmlUrl, null, L.geoJSON(null, {
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.icon({