Add SSGP + dynamic state
This commit is contained in:
23
config.js
23
config.js
@@ -5,6 +5,13 @@ const theater1Popup = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
const theater2Popup = `
|
||||
<div class="text-center">
|
||||
<h1 class="fs-4">Teatro Santi Giovanni e Paolo, Venezia</h1>
|
||||
<button type="button" class="btn btn-dark" id="ssgp">Apri scena 3D</button>
|
||||
</div>
|
||||
`;
|
||||
|
||||
const audioBtn1 = `
|
||||
<button type="button" class="text-left btn aton-btn fs-6 mx-2" data-bs-toggle="modal" data-bs-target="#audio1">
|
||||
<i class="bi bi-play-btn me-2"></i> Esempio audio (<em>Che fiero costume</em>)
|
||||
@@ -13,7 +20,7 @@ const audioBtn1 = `
|
||||
|
||||
export const config = {
|
||||
scene : {
|
||||
initialExposure: 0.6,
|
||||
initialExposure: 0.7,
|
||||
autoLP: true,
|
||||
clipping: {
|
||||
defaultPoint: [
|
||||
@@ -34,12 +41,20 @@ export const config = {
|
||||
coords: [45.4363, 12.3352],
|
||||
model: "teatro_san_salvador_20250926.gltf",
|
||||
pano: "pano/defsky-grass.jpg",
|
||||
},
|
||||
{
|
||||
id : "ssgp",
|
||||
label : "Teatro Santi Giovanni e Paolo, Venezia",
|
||||
popup: theater2Popup,
|
||||
coords: [45.4401, 12.3408],
|
||||
model: "SSGP.glb",
|
||||
pano: "pano/defsky-grass.jpg",
|
||||
}
|
||||
],
|
||||
map : {
|
||||
center: [43.570833, 12.140278],
|
||||
initialZoom : 7,
|
||||
initialZoom : 8,
|
||||
minZoom : 6,
|
||||
maxZoom : 15
|
||||
maxZoom : 16
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user