mirror of
https://github.com/sstent/StuTracker.git
synced 2026-01-28 11:32:13 +00:00
Update index.html
This commit is contained in:
@@ -43,9 +43,9 @@
|
||||
// KML URL
|
||||
var kmlUrl = 'https://share.garmin.com/Feed/ShareLoader/NDB92';
|
||||
|
||||
// Use a CORS proxy
|
||||
var corsProxy = 'https://cors-anywhere.herokuapp.com/';
|
||||
var proxyKmlUrl = corsProxy + kmlUrl;
|
||||
// Use CorsProxy.io
|
||||
var corsProxy = 'https://corsproxy.io/?';
|
||||
var proxyKmlUrl = corsProxy + encodeURIComponent(kmlUrl);
|
||||
|
||||
// Load the KML file
|
||||
omnivore.kml(proxyKmlUrl).addTo(map);
|
||||
|
||||
Reference in New Issue
Block a user