| | |
| | | ]) |
| | | ) |
| | | |
| | | that.vecLayer = that.viewer.imageryLayers.addImageryProvider(new that.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/vec_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'vec', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | })) |
| | | |
| | | that.cvaLayer = that.viewer.imageryLayers.addImageryProvider(new that.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/cva_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'cva', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | })) |
| | | |
| | | var highlighted = { |
| | | feature: undefined, |
| | | originalColor: new that.DC.Namespace.Cesium.Color() |
| | |
| | | }) |
| | | |
| | | that.viewer.on(that.DC.MouseEventType.CLICK, e => { |
| | | if (e.overlay != undefined) { |
| | | if (e.overlay != undefined && e.layer.id == 'areaLayer') { |
| | | that.viewer.scene.globe.depthTestAgainstTerrain = false |
| | | |
| | | that.$store.commit('CLEAR_ALL', null) |
| | |
| | | that.newLayer = null |
| | | // that.viewer.imageryLayers.remove(that.baseLayer) |
| | | that.baseLayer = null |
| | | that.vecLayer = that.viewer.imageryLayers.addImageryProvider(new that.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/vec_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'vec', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | })) |
| | | // that.vecLayer = that.viewer.imageryLayers.addImageryProvider(new that.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | // url: ' http://t1.tianditu.gov.cn/vec_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | // type: 'wmts', |
| | | // layer: 'vec', |
| | | // style: 'default', |
| | | // format: 'tiles', |
| | | // tileMatrixSetID: 'w', |
| | | // show: true, |
| | | // maximumLevel: 18 |
| | | // })) |
| | | |
| | | that.cvaLayer = that.viewer.imageryLayers.addImageryProvider(new that.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/cva_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'cva', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | })) |
| | | // that.cvaLayer = that.viewer.imageryLayers.addImageryProvider(new that.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | // url: ' http://t1.tianditu.gov.cn/cva_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | // type: 'wmts', |
| | | // layer: 'cva', |
| | | // style: 'default', |
| | | // format: 'tiles', |
| | | // tileMatrixSetID: 'w', |
| | | // show: true, |
| | | // maximumLevel: 18 |
| | | // })) |
| | | that.silhouetteBlue.selected = [] |
| | | that.tilesetLayer.show = true |
| | | that.viewer.off(that.DC.SceneEventType.CAMERA_CHANGED, that.camerAzoom()) |
| | |
| | | }) |
| | | } else { |
| | | that.tilesetLayer.show = false |
| | | that.viewer.imageryLayers.remove(that.vecLayer) |
| | | that.vecLayer = null |
| | | that.viewer.imageryLayers.remove(that.cvaLayer) |
| | | that.cvaLayer = null |
| | | // that.viewer.imageryLayers.remove(that.vecLayer) |
| | | // that.vecLayer = null |
| | | // that.viewer.imageryLayers.remove(that.cvaLayer) |
| | | // that.cvaLayer = null |
| | | that.areaLayer.show = true |
| | | |
| | | // var provider = new that.DC.Namespace.Cesium.ArcGisMapServerImageryProvider({ |