forked from kamba4/sunders
fix: Panoramic camera details can be shown
Some checks failed
Build (and tag) Images / build (push) Failing after 55s
Some checks failed
Build (and tag) Images / build (push) Failing after 55s
This commit is contained in:
parent
df45b9bbc4
commit
42f7456e18
2 changed files with 12 additions and 10 deletions
|
|
@ -145,11 +145,11 @@ function onStateChanged() {
|
||||||
}
|
}
|
||||||
// Add camera icon.
|
// Add camera icon.
|
||||||
else {
|
else {
|
||||||
try {
|
plotLatLng = new L.LatLng(plotList[i].lat, plotList[i].lon);
|
||||||
plotLatLng = new L.LatLng(plotList[i].lat, plotList[i].lon);
|
var plotType = getPlotType(plotList[i]);
|
||||||
var plotType = getPlotType(plotList[i]);
|
plotMarker = getPlotMarkerCamera(plotList[i], plotLatLng, plotType);
|
||||||
plotMarker = getPlotMarkerCamera(plotList[i], plotLatLng, plotType);
|
|
||||||
|
|
||||||
|
try {
|
||||||
// Get camera height to draw camera's field of view.
|
// Get camera height to draw camera's field of view.
|
||||||
var cameraHeight = getCameraHeight(plotList[i]);
|
var cameraHeight = getCameraHeight(plotList[i]);
|
||||||
// Get camera direction to draw camera's field of view.
|
// Get camera direction to draw camera's field of view.
|
||||||
|
|
@ -194,13 +194,15 @@ function onStateChanged() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add camera's field of view.
|
// Add camera's field of view.
|
||||||
map.addLayer(plotFocus);
|
if (plotFocus) {
|
||||||
plotLayers.push(plotFocus);
|
map.addLayer(plotFocus);
|
||||||
|
plotLayers.push(plotFocus);
|
||||||
// Add camera details to camera marker.
|
}
|
||||||
addCameraDetailsData(plotMarker, plotList[i]);
|
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add camera details to camera marker.
|
||||||
|
addCameraDetailsData(plotMarker, plotList[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plotMarker !== '') {
|
if (plotMarker !== '') {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
"description": "desc-panning" },
|
"description": "desc-panning" },
|
||||||
{ "icons": [ { "src": "domeAll.png", "alt": "icon-dome-alt" } ],
|
{ "icons": [ { "src": "domeAll.png", "alt": "icon-dome-alt" } ],
|
||||||
"description": "desc-dome" },
|
"description": "desc-dome" },
|
||||||
{ "icons": [ { "src": "panorama.png", "alt": "icon-panorama-alt" } ],
|
{ "icons": [ { "src": "panoramaAll.png", "alt": "icon-panorama-alt" } ],
|
||||||
"description": "desc-panorama" },
|
"description": "desc-panorama" },
|
||||||
{ "icons": [ { "src": "guardAll.png", "alt": "icon-guard-alt" } ],
|
{ "icons": [ { "src": "guardAll.png", "alt": "icon-guard-alt" } ],
|
||||||
"description": "desc-guard" },
|
"description": "desc-guard" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue