forked from MapComplete/MapComplete
Feature: 360-view, experimenting with photo-sphere-viewer
This commit is contained in:
parent
fb4fbe2be3
commit
4a45c650be
7 changed files with 265 additions and 29 deletions
13
src/test.ts
13
src/test.ts
|
@ -1,4 +1,13 @@
|
|||
import Test from "./UI/Test.svelte"
|
||||
import { OsmConnection } from "./Logic/Osm/OsmConnection"
|
||||
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 panoramax = new PanoramaxXYZ()
|
||||
panoramax.imageInfo(imgId).then((imageInfo: ImageData) => {
|
||||
console.log("IMG INFO: ", imageInfo)
|
||||
new Test({ target, props: { imageInfo } })
|
||||
})
|
||||
|
||||
new OsmConnection().interact("user/details.json").then((r) => console.log(">>>", r))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue