fix: Panoramic camera details can be shown
Some checks failed
Build (and tag) Images / build (push) Failing after 55s

This commit is contained in:
Vincent Mahnke 2026-03-20 19:20:14 +01:00
commit 42f7456e18
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
2 changed files with 12 additions and 10 deletions

View file

@ -145,11 +145,11 @@ function onStateChanged() {
}
// Add camera icon.
else {
try {
plotLatLng = new L.LatLng(plotList[i].lat, plotList[i].lon);
var plotType = getPlotType(plotList[i]);
plotMarker = getPlotMarkerCamera(plotList[i], plotLatLng, plotType);
plotLatLng = new L.LatLng(plotList[i].lat, plotList[i].lon);
var plotType = getPlotType(plotList[i]);
plotMarker = getPlotMarkerCamera(plotList[i], plotLatLng, plotType);
try {
// Get camera height to draw camera's field of view.
var cameraHeight = getCameraHeight(plotList[i]);
// Get camera direction to draw camera's field of view.
@ -194,13 +194,15 @@ function onStateChanged() {
}
// Add camera's field of view.
map.addLayer(plotFocus);
plotLayers.push(plotFocus);
// Add camera details to camera marker.
addCameraDetailsData(plotMarker, plotList[i]);
if (plotFocus) {
map.addLayer(plotFocus);
plotLayers.push(plotFocus);
}
} catch(e) {
}
// Add camera details to camera marker.
addCameraDetailsData(plotMarker, plotList[i]);
}
if (plotMarker !== '') {

View file

@ -8,7 +8,7 @@
"description": "desc-panning" },
{ "icons": [ { "src": "domeAll.png", "alt": "icon-dome-alt" } ],
"description": "desc-dome" },
{ "icons": [ { "src": "panorama.png", "alt": "icon-panorama-alt" } ],
{ "icons": [ { "src": "panoramaAll.png", "alt": "icon-panorama-alt" } ],
"description": "desc-panorama" },
{ "icons": [ { "src": "guardAll.png", "alt": "icon-guard-alt" } ],
"description": "desc-guard" },