diff --git a/public/dashboard/assets/js/cesium_00_Main.js b/public/dashboard/assets/js/cesium_00_Main.js index 0931d5a956722040cef54243928abe69bc7a97f2..2799bfd1f4d915c37a77b33b4015e16c88a1bcaa 100644 --- a/public/dashboard/assets/js/cesium_00_Main.js +++ b/public/dashboard/assets/js/cesium_00_Main.js @@ -1,10 +1,6 @@ // update cesium Container Width to fit the Web Frame after document ready $(document).ready(function () { - // $("#cesiumContainer").css("width", "auto"); $('#loading').hide(); - // $( window ).resize(function() { - // $("#cesiumContainer").css("width", "auto"); - // }); }); var PVPotential_legend_context = ` <small class="font-weight-bold">PV Potential MWh/year </small> <br> @@ -17,19 +13,6 @@ var PVPotential_legend_context = ` <span class="dot" style="background-color: #FFFFD4"></span> 0 - 5<br> <br> ` -// var PVPotential_legend_context = ` -// <small class="font-weight-bold">PV Potential MWâ‹…h<sub>el</sub> </small> <br> -// <span class="dot" style="background-color: #F22E22"></span> >= 8 <br> -// <span class="dot" style="background-color: #F56D1F"></span> 7 - 8 <br> -// <span class="dot" style="background-color: #F9A717"></span> 6 - 7 <br> -// <span class="dot" style="background-color: #FECE02"></span> 5 - 6 <br> -// <span class="dot" style="background-color: #F6EC00"></span> 4 - 5 <br> -// <span class="dot" style="background-color: #D1E023"></span> 3 - 4 <br> -// <span class="dot" style="background-color: #B2D531"></span> 2 - 3 <br> -// <span class="dot" style="background-color: #A4C711"></span> 1 - 2<br> -// <span class="dot" style="background-color: #61B949"></span> 0 - 1<br> -// <br> -// ` if ($("#PVPotential-legend").length > 0) { $("#PVPotential-legend").html(PVPotential_legend_context) // Add Bioenergy menu if the "#id" exist } @@ -63,42 +46,9 @@ var viewer = new Cesium.Viewer('cesiumContainer', { homeButton: false, fullscreenButton: true, infoBox: true, - // imageryProvider: new Cesium.MapboxStyleImageryProvider({ - // // check style ID at https://docs.mapbox.com/api/maps/styles/ - // // styleId: 'dark-v10', - // styleId: 'light-v10', - // // styleId: 'navigation-day-v1', - // accessToken: 'pk.eyJ1IjoidGh1bnlhdGhlcCIsImEiOiJjamFpOWV4a2gxd21vMndxdXd2M3VoY3hmIn0.jLlCscei0yH-ZHwcfxF_ug' - // }) // terrainExaggeration: 1.5, }); -// var tileset = viewer.scene.primitives.add( -// new Cesium.Cesium3DTileset({ -// url: Cesium.IonResource.fromAssetId(75343), -// }) -// ); - -viewer.camera.setView({ - "destination": { - "x": 4123560.966179314, - "y": 707228.713304919, - "z": 4798899.985567952 - }, - "orientation": { - "direction": { - "x": -0.9622773420432754, - "y": 0.19744630073107838, - "z": 0.18718246530522495 - }, - "up": { - "x": 0.23048908682520655, - "y": 0.22606307618215207, - "z": 0.946451407332434 - } - } -}) - // binding full screen button $("#full-screen-button").click(function () { Cesium.Fullscreen.requestFullscreen(document.body)