mirror of
https://github.com/sstent/StuTracker.git
synced 2026-02-01 21:42:25 +00:00
Update index.html
This commit is contained in:
@@ -52,7 +52,8 @@
|
|||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
// KML URL with username and password
|
// KML URL with username and password
|
||||||
var kmlUrl = 'https://USERNAME:abodyinmotion@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
|
// Use CorsProxy.io to handle CORS for the KML file
|
||||||
var corsProxy = 'https://corsproxy.io/?';
|
var corsProxy = 'https://corsproxy.io/?';
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// Load the KML file and customize the marker icon
|
// Load the KML file and customize the marker icon
|
||||||
var kmlLayer = omnivore.kml(proxyKmlUrl, null, L.geoJSON(null, {
|
var kmlLayer = omnivore.kml(kmlUrl, null, L.geoJSON(null, {
|
||||||
pointToLayer: function (feature, latlng) {
|
pointToLayer: function (feature, latlng) {
|
||||||
return L.marker(latlng, {
|
return L.marker(latlng, {
|
||||||
icon: L.icon({
|
icon: L.icon({
|
||||||
|
|||||||
Reference in New Issue
Block a user