MapComplete/src/test.ts

17 lines
553 B
TypeScript

import { Mapillary } from "./Logic/ImageProviders/Mapillary"
import Test from "./UI/Test.svelte"
const target = document.getElementById("maindiv")
target.innerHTML = ""
/*
let imgId = "8af265ba-3521-4c46-b2a9-c072215c1de3"
let panoramax = new PanoramaxXYZ()
panoramax.imageInfo(imgId).then((imageInfo: ImageData) => {
console.log("IMG INFO: ", imageInfo)
new Test({ target, props: { imageInfo } })
})*/
let pkey = 1199645818028177
new Mapillary().DownloadImageInfo(pkey).then((imageInfo) => {
new Test({ target, props: { imageInfo } })
})