mirror of
https://github.com/placeAtlas/atlas.git
synced 2025-01-13 15:53:48 +01:00
commit
6f9fd822c9
4 changed files with 1270 additions and 1264 deletions
1263
web/_js/atlas.js
1263
web/_js/atlas.js
File diff suppressed because it is too large
Load diff
|
@ -73,9 +73,25 @@ function applyView(){
|
|||
|
||||
}
|
||||
|
||||
var atlas = null;
|
||||
|
||||
init();
|
||||
|
||||
function init(){
|
||||
async function init(){
|
||||
|
||||
let resp = await fetch("/atlas.json");
|
||||
atlas = await resp.json();
|
||||
atlas.sort(function (a, b) {
|
||||
if (a.center[1] < b.center[1]) {
|
||||
return -1;
|
||||
}
|
||||
if (a.center[1] > b.center[1]) {
|
||||
return 1;
|
||||
}
|
||||
// a must be equal to b
|
||||
return 0;
|
||||
});
|
||||
|
||||
|
||||
//console.log(document.documentElement.clientWidth, document.documentElement.clientHeight);
|
||||
|
||||
|
|
1252
web/atlas-before-ids-migration.json
Normal file
1252
web/atlas-before-ids-migration.json
Normal file
File diff suppressed because it is too large
Load diff
1
web/atlas.json
Normal file
1
web/atlas.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue