Closed terraelfi closed 1 day ago
The configuration is a JavaScript object. You can manipulate it just like any other JavaScript object, so you can dynamically create it. If you're creating a repetitive configuration by hand, you're not thinking like a programmer.
If you're opening a new viewer in response to the click, you could dynamically create a single-scene Pannellum configuration in the click event handler you use with Leaflet and create the Pannellum viewer with that. If instead you're just changing the panorama in an existing Pannellum viewer instance, you could dynamically create a scene configuration, add it with the addScene
method, and then switch to it with loadScene
(or you could create a single configuration at initialization and just use loadScene
).
Hello there, I'm creating a website with LeafletJS and Pannellum, and I'm wondering how to sync "filename" in geoJSON as a Pannellum "panorama:" object image.
What I want to do is when the user clicks on the marker on the map, the user will be loaded into the "filename" scene as a panorama image. The images are located in the folder "N98E57/(panorama_images)".
This geoJSON file contains tens of thousands of data.
This is my code in the leafletJS file including geoJSON data in there.
This is my panorama.js file. So for example here, if i do it one by one it almost take weeks or more to done it by hand, copy and pasting all thousands of images.