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