| | |
| | | imageryLayers.removeAll(); |
| | | |
| | | this.map.baseLayerPicker.viewModel.selectedImagery = this.map.baseLayerPicker.viewModel.imageryProviderViewModels[1]; |
| | | this.map.baseLayerPicker.viewModel.selectedTerrain = this.map.baseLayerPicker.viewModel.terrainProviderViewModels[0]; |
| | | this.map.baseLayerPicker.viewModel.selectedTerrain = this.map.baseLayerPicker.viewModel.terrainProviderViewModels[1]; |
| | | $(".cesium-baseLayerPicker-sectionTitle").eq(0).html("底图"); |
| | | $(".cesium-baseLayerPicker-sectionTitle").eq(1).html("地形"); |
| | | |
| | |
| | | new Cesium.FullscreenButton(this.domNode, null); |
| | | |
| | | $('.cesium-fullscreenButton').attr('title', '全屏视角'); |
| | | $(".jimu-widget-fullScreen button.cesium-button").html("<img src='../../../images/全屏.png' alt=''>"); |
| | | $(".jimu-widget-fullScreen button.cesium-button").html("<img src='./images/全屏.png' alt=''>"); |
| | | |
| | | $('.jimu-widget-fullScreen button.cesium-button').click(function () { |
| | | var title = $(this).attr('title'); |
| | | |
| | | if (title == "Exit full screen") { |
| | | |
| | | $(".jimu-widget-fullScreen button.cesium-button").html("<img src='../../../images/全屏.png' alt=''>"); |
| | | $(".jimu-widget-fullScreen button.cesium-button").html("<img src='./images/全屏.png' alt=''>"); |
| | | |
| | | } else { |
| | | |
| | | $(".jimu-widget-fullScreen button.cesium-button").html("<img src='../../../images/收缩.png' alt=''>"); |
| | | $(".jimu-widget-fullScreen button.cesium-button").html("<img src='./images/收缩.png' alt=''>"); |
| | | |
| | | } |
| | | }) |
| | |
| | | touch_help_rotate.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML = "双指反向拖动"; |
| | | } |
| | | |
| | | $(".jimu-widget-helpbutton button.cesium-button").html("<img src='../../../images/问题指引.png' alt=''>"); |
| | | $(".jimu-widget-helpbutton button.cesium-button").html("<img src='./images/问题指引.png' alt=''>"); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | var homeButton = new Cesium.HomeButton(this.domNode, this.map.scene); |
| | | |
| | | $(".jimu-widget-homebutton button.cesium-button").html("<img src='../../../images/回到原来的视角.png' alt=''>"); |
| | | $(".jimu-widget-homebutton button.cesium-button").html("<img src='./images/回到原来的视角.png' alt=''>"); |
| | | |
| | | // Subscribe to the home button beforeExecute event so that we can clear the trackedEntity. |
| | | this.map._eventHelper.add(homeButton.viewModel.command.beforeExecute, Cesium.Viewer.prototype._clearTrackedObject, this.map); |
| | |
| | | id: d[k].id, |
| | | serviceName: d[k].serviceName, |
| | | alpha: 1, |
| | | checked: d[k].menuStatus |
| | | // checked: d[k].menuStatus |
| | | } |
| | | |
| | | if (d[k].serviceUrl.indexOf('.openrealspace') != -1) { |
| | |
| | | //添加S3M图层服务 |
| | | that[obj.data.id] = scene.open(host + partOfUrl); |
| | | //定位到场景 |
| | | |
| | | Cesium.loadJson(host + partOfUrl + '/scenes.json').then(function (scenes) { |
| | | // var sname = scenes[0].name; |
| | | // Cesium.loadJson(host + partOfUrl + '/scenes/' + sname + '.json').then(function (jsonData) { |
| | |
| | | layers: {}, |
| | | startup: function () { |
| | | var that = this; |
| | | $(".jimu-widget-SceneMode button").html("<img src='../../../images/2D.png' alt='' title='2D'>"); |
| | | $(".jimu-widget-SceneMode button").html("<img src='./images/2D.png' alt='' title='2D'>"); |
| | | |
| | | $(".jimu-widget-SceneMode button").click(function () { |
| | | if ($(".jimu-widget-SceneMode button img").attr('title') == "2D") { |
| | | $(".jimu-widget-SceneMode button").html("<img src='../../../images/3D.png' alt='' title='3D'>"); |
| | | $(".jimu-widget-SceneMode button").html("<img src='./images/3D.png' alt='' title='3D'>"); |
| | | that.map.scene.morphTo2D(0); |
| | | } else { |
| | | $(".jimu-widget-SceneMode button").html("<img src='../../../images/2D.png' alt='' title='2D'>"); |
| | | $(".jimu-widget-SceneMode button").html("<img src='./images/2D.png' alt='' title='2D'>"); |
| | | that.map.scene.morphTo3D(0); |
| | | |
| | | } |
| | |
| | | topic.publish('openRolling', 'Rolling'); |
| | | $('.jimu-widget-Location').hide(); |
| | | $('.jimu-widget-Rolling').show(); |
| | | $('#widgets_Rolling_Widget_17').show(); |
| | | $('.jimu-widget-Measurement').hide(); |
| | | $('.jimu-widget-FlyRoute').hide(); |
| | | $('.jimu-widget-SplitScreen').hide(); |
| | |
| | | |
| | | $('.cesium-vrButton').attr('title','VR模式'); |
| | | |
| | | $(".jimu-widget-vrbutton button.cesium-button").html("<img src='../../../images/VR.png' alt=''>"); |
| | | $(".jimu-widget-vrbutton button.cesium-button").html("<img src='./images/VR.png' alt=''>"); |
| | | |
| | | $('.jimu-widget-vrbutton button.cesium-button').click(function () { |
| | | var title = $(this).attr('title'); |
| | | |
| | | if (title == "Exit VR mode") { |
| | | |
| | | $(".jimu-widget-vrbutton button.cesium-button").html("<img src='../../../images/关闭VR.png' alt=''>"); |
| | | $(".jimu-widget-vrbutton button.cesium-button").html("<img src='./images/关闭VR.png' alt=''>"); |
| | | |
| | | } else { |
| | | |
| | | $(".jimu-widget-vrbutton button.cesium-button").html("<img src='../../../images/VR.png' alt=''>"); |
| | | $(".jimu-widget-vrbutton button.cesium-button").html("<img src='./images/VR.png' alt=''>"); |
| | | |
| | | } |
| | | }) |
| | |
| | | <div> |
| | | <div class="title">图层列表</div> |
| | | <div class="main"> |
| | | <div class="m-init"> <i><img src="../../images/addL/dwblue.png"/></i> 全景站点 <i>(20个)</i> </div> |
| | | <div class="m-init"> <i><img src="./images/addL/dwblue.png"/></i> 全景站点 <i>(20个)</i> </div> |
| | | <div class="m-init m-i-child"> <i></i> 大湖池<i>(1个)</i> </div> |
| | | <div class="m-init m-i-child"> <i></i> 战备胡 <i>(1个)</i> </div> |
| | | <div class="m-init"> <i><img src="../../images/addL/dworgin.png"/></i> 监控站点 <i>(50个)</i> </div> |
| | | <div class="m-init"> <i><img src="./images/addL/dworgin.png"/></i> 监控站点 <i>(50个)</i> </div> |
| | | <div class="m-init m-i-child"> <i></i> 大湖池 <i>(1个)</i> </div> |
| | | <div class="m-init"> <i><img src="../../images/addL/forgin.png"/></i> 鄱阳湖面积 <i>(3253.52公顷)</i> </div> |
| | | <div class="m-init"> <i><img src="../../images/addL/fred.png"/></i> 鄱阳湖范围 <i></i> </div> |
| | | <div class="m-init"> <i><img src="../../images/addL/fblue.png"/></i> 其他 <i></i> </div> |
| | | <div class="m-init"> <i><img src="./images/addL/forgin.png"/></i> 鄱阳湖面积 <i>(3253.52公顷)</i> </div> |
| | | <div class="m-init"> <i><img src="./images/addL/fred.png"/></i> 鄱阳湖范围 <i></i> </div> |
| | | <div class="m-init"> <i><img src="./images/addL/fblue.png"/></i> 其他 <i></i> </div> |
| | | </div> |
| | | </div> |
| | |
| | | //关键词&&坐标 |
| | | $("#i-f-gjz").click(function () { |
| | | that.states = 'one'; |
| | | $("#i-f-zb").css({ 'backgroundColor': '#fff', 'color': '#000' }); |
| | | $("#i-f-zb").css({ 'backgroundColor': '#fff', 'color': '#969696' }); |
| | | $("#i-f-gjz").css({ 'backgroundColor': '#3E9FFC', 'color': '#fff' }); |
| | | // $("#inputTwo").css({ 'display': 'none' }); |
| | | // $("#local_data").css({ 'display': 'inline-block' }); |
| | |
| | | }) |
| | | $("#i-f-zb").click(function () { |
| | | that.states = 'two'; |
| | | $("#i-f-gjz").css({ 'backgroundColor': '#fff', 'color': '#000' }); |
| | | $("#i-f-gjz").css({ 'backgroundColor': '#fff', 'color': '#969696' }); |
| | | $("#i-f-zb").css({ 'backgroundColor': '#3E9FFC', 'color': '#fff' }); |
| | | // $("#local_data").css({ 'display': 'none' }); |
| | | // $("#inputTwo").css({ 'display': 'inline-block' }); |
| | |
| | | /* left: calc(100%-300); */ |
| | | /* 240px */ |
| | | background: rgba(255, 255, 255, 1); |
| | | color: #000; |
| | | color: #969696 !important; |
| | | /* border-right: 1px solid #000; */ |
| | | border-radius: 6px 6px 6px 6px; |
| | | text-align: center; |
| | |
| | | // 模块描述:显示坐标 |
| | | /////////////////////////////////////////////////////////////////////////// |
| | | define([ |
| | | 'dojo/_base/declare', |
| | | 'dojo/_base/lang', |
| | | 'dojo/_base/array', |
| | | 'dojo/_base/html', |
| | | 'dojo/topic', |
| | | 'jimu/BaseWidget', |
| | | 'jimu/utils', |
| | | 'jimu/css!libs/zTree_v3/css/zTreeStyle/zTreeStyle.css', |
| | | 'libs/zTree_v3/js/jquery.ztree.all' |
| | | ], |
| | | 'dojo/_base/declare', |
| | | 'dojo/_base/lang', |
| | | 'dojo/_base/array', |
| | | 'dojo/_base/html', |
| | | 'dojo/topic', |
| | | 'jimu/BaseWidget', |
| | | 'jimu/utils', |
| | | 'jimu/css!libs/zTree_v3/css/zTreeStyle/zTreeStyle.css', |
| | | 'libs/zTree_v3/js/jquery.ztree.all' |
| | | ], |
| | | function (declare, |
| | | lang, |
| | | array, |
| | |
| | | |
| | | }) |
| | | $(".v-a-Two").click(function () { |
| | | |
| | | |
| | | $(this).addClass('on').siblings().removeClass('on'); |
| | | |
| | | // 飞行路线 |
| | | |
| | | $('.jimu-widget-Location').hide(); |
| | | $('.jimu-widget-MapPrinting').hide(); |
| | | $('.jimu-widget-CoorPosition').hide(); |
| | | $('.jimu-widget-Measurement').hide(); |
| | | $('.jimu-widget-Sign').hide(); |
| | | $('.jimu-widget-DynamicRiver').hide(); |
| | | $('.jimu-widget-SplitScreen').hide(); |
| | | $('.tool-y-box').stop().hide() |
| | | $('.jimu-widget-FlyRoute').show(); |
| | | |
| | | }) |
| | | $(".v-a-Three").click(function () { |
| | | $(this).addClass('on').siblings().removeClass('on'); |