diff --git a/web/www/sunders/js/leafletembed_functions.js b/web/www/sunders/js/leafletembed_functions.js index 6b38ce4..1cbdd46 100644 --- a/web/www/sunders/js/leafletembed_functions.js +++ b/web/www/sunders/js/leafletembed_functions.js @@ -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 !== '') { diff --git a/web/www/sunders/json/symbology.json b/web/www/sunders/json/symbology.json index 2332b3f..636140a 100644 --- a/web/www/sunders/json/symbology.json +++ b/web/www/sunders/json/symbology.json @@ -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" },