mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-17 23:44:06 +01:00
Update main.js
This commit is contained in:
parent
b0936139a1
commit
3ec0a9bd2d
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ init();
|
||||||
|
|
||||||
async function init(){
|
async function init(){
|
||||||
|
|
||||||
let resp = await fetch("./atlas.json");
|
let resp = await fetch("/atlas.json");
|
||||||
atlas = await resp.json();
|
atlas = await resp.json();
|
||||||
atlas.sort(function (a, b) {
|
atlas.sort(function (a, b) {
|
||||||
if (a.center[1] < b.center[1]) {
|
if (a.center[1] < b.center[1]) {
|
||||||
|
@ -105,7 +105,7 @@ async function init(){
|
||||||
var desiredZoom;
|
var desiredZoom;
|
||||||
var zoomAnimationFrame;
|
var zoomAnimationFrame;
|
||||||
|
|
||||||
var mode = "overlap";
|
var mode = "view";
|
||||||
|
|
||||||
var args = window.location.search;
|
var args = window.location.search;
|
||||||
if(args){
|
if(args){
|
||||||
|
|
Loading…
Reference in a new issue