mirror of
https://github.com/CIMEngine/map.git
synced 2024-12-18 06:43:47 +03:00
fix: urls
This commit is contained in:
parent
6c6d755231
commit
be7ba521bf
1 changed files with 2 additions and 7 deletions
9
index.js
9
index.js
|
@ -85,14 +85,9 @@ window.onload = async () => {
|
||||||
let lasticocords;
|
let lasticocords;
|
||||||
|
|
||||||
loginfo("Getting geo data");
|
loginfo("Getting geo data");
|
||||||
let geo = await fetch(
|
let geo = await fetch(geoURL);
|
||||||
geoURL || "https://erth2.github.io/movc/geo/geo.geojson"
|
|
||||||
);
|
|
||||||
loginfo("Getting country data");
|
loginfo("Getting country data");
|
||||||
let coarray = await fetch(
|
let coarray = await fetch(countryInfoUrl);
|
||||||
countryInfoUrl ||
|
|
||||||
"https://erth2.github.io/movc/geo/countries/countries.json"
|
|
||||||
);
|
|
||||||
coarray = await coarray.json();
|
coarray = await coarray.json();
|
||||||
let countries = {};
|
let countries = {};
|
||||||
for (let i = 0; i < coarray.length; i++)
|
for (let i = 0; i < coarray.length; i++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue