Feature: automatically move the camera towards the object in 360° view

This commit is contained in:
Pieter Vander Vennet 2025-03-30 03:16:36 +02:00
parent 01ba98a820
commit fc33d755b6
2 changed files with 5 additions and 1 deletions

View file

@ -149,7 +149,8 @@
type: "Feature",
geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) },
properties: {
name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt
name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt,
focus: true
}
}
]

View file

@ -60,6 +60,9 @@ export class PhotoSphereViewerWrapper {
yaw: (yaw - northOffs) % 360,
text: f.properties.name
})
if (f.properties.focus) {
this.viewer.setYaw(yaw - northOffs)
}
}
}