mirror of
https://github.com/sstent/StuTracker.git
synced 2026-01-26 02:22:01 +00:00
Update index.html
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user