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.
|
||||
else {
|
||||
try {
|
||||
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.
|
||||
if (plotFocus) {
|
||||
map.addLayer(plotFocus);
|
||||
plotLayers.push(plotFocus);
|
||||
}
|
||||
} catch(e) {
|
||||
}
|
||||
|
||||
// Add camera details to camera marker.
|
||||
addCameraDetailsData(plotMarker, plotList[i]);
|
||||
} catch(e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (plotMarker !== '') {
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue