| | |
| | | |
| | | startup: function () { |
| | | topic.subscribe("openRolling", lang.hitch(this, this.openRolling)); |
| | | topic.subscribe("closeRolling", lang.hitch(this, this.closeRolling)); |
| | | var that = this; |
| | | // 点击卷帘关闭面板 |
| | | $('.rollinng-table-hezi-xx').click(function () { |
| | |
| | | |
| | | that.map.imageryLayers.remove(that.earthAtNightRight); |
| | | that.map.imageryLayers.remove(that.zjRight); |
| | | |
| | | |
| | | |
| | | |
| | | that.map.imageryLayers.remove(that.tiandituLeft); |
| | | that.map.imageryLayers.remove(that.tiandituZJLeft); |
| | | |
| | | that.map.imageryLayers.remove(that.tiandituRight); |
| | | that.map.imageryLayers.remove(that.tiandituZJRight); |
| | | |
| | | |
| | | $('.jimu-widget-Rolling').hide(); |
| | | |
| | | |
| | | }); |
| | | |
| | | // 加载左边图层 |
| | |
| | | loadMapRight(); |
| | | } else if ($(this).val() == 1) { |
| | | loadMapTianRight(); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | // 加载左边天地图影像图层方法 |
| | |
| | | } |
| | | }, |
| | | |
| | | closeRolling: function (item) { |
| | | if (item == this.name) { |
| | | var that = this; |
| | | if (this.flag == true) { |
| | | this.flag = false; |
| | | that.map.imageryLayers.remove(that.earthAtNightLeft); |
| | | that.map.imageryLayers.remove(that.zjLeft); |
| | | |
| | | that.map.imageryLayers.remove(that.earthAtNightRight); |
| | | that.map.imageryLayers.remove(that.zjRight); |
| | | |
| | | |
| | | that.map.imageryLayers.remove(that.tiandituLeft); |
| | | that.map.imageryLayers.remove(that.tiandituZJLeft); |
| | | |
| | | that.map.imageryLayers.remove(that.tiandituRight); |
| | | that.map.imageryLayers.remove(that.tiandituZJRight); |
| | | |
| | | $('.jimu-widget-Rolling').hide(); |
| | | } |
| | | } |
| | | }, |
| | | |
| | | onOpen: function () { |
| | | var that = this; |
| | | if (this.flag != true) return; |
| | |
| | | that.earthAtNightLeft.splitDirection = new Cesium.Cartesian2(Cesium.ImagerySplitDirection.LEFT, Cesium.ImagerySplitDirection.NONE); |
| | | that.zjLeft.splitDirection = new Cesium.Cartesian2(Cesium.ImagerySplitDirection.LEFT, Cesium.ImagerySplitDirection.NONE); |
| | | |
| | | |
| | | |
| | | that.tiandituRight = that.map.imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider( |
| | | that.imageryProviderDian[0] |
| | | )); |
| | |
| | | |
| | | that.tiandituRight.splitDirection = new Cesium.Cartesian2(Cesium.ImagerySplitDirection.RIGHT, Cesium.ImagerySplitDirection.NONE); |
| | | that.tiandituZJRight.splitDirection = new Cesium.Cartesian2(Cesium.ImagerySplitDirection.RIGHT, Cesium.ImagerySplitDirection.NONE); |
| | | |
| | | $('.jimu-widget-Rolling').show(); |
| | | }, |
| | | |
| | | |