Merge pull request #347 from asivery/master

JSON, IDs migration
This commit is contained in:
ash 2022-04-05 10:55:13 +01:00 committed by GitHub
commit 6f9fd822c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1270 additions and 1264 deletions

File diff suppressed because it is too large Load diff

View file

@ -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);

File diff suppressed because it is too large Load diff

1
web/atlas.json Normal file

File diff suppressed because one or more lines are too long