Feature: first working version of inspecting 360° images

This commit is contained in:
Pieter Vander Vennet 2025-03-30 03:10:29 +02:00
parent 7d104b4266
commit 01ba98a820
24 changed files with 330 additions and 436 deletions

View file

@ -1,13 +1,17 @@
import { Mapillary } from "./Logic/ImageProviders/Mapillary"
import Test from "./UI/Test.svelte"
import { ImageData, PanoramaxXYZ } from "panoramax-js"
const target = document.getElementById("maindiv")
target.innerHTML = ""
let img = "https://panoramax-storage-public-fast.s3.gra.perf.cloud.ovh.net/main-pictures/d2/8c/ba/cf/c807-4dbf-b8c8-b1c3aa89182d.jpg"
let imgId = "d28cbacf-c807-4dbf-b8c8-b1c3aa89182d"
/*
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 } })
})