| | |
| | | new Cesium.Cesium3DTileset({ |
| | | name: res.cnName, |
| | | url: modelUrl + "/tileset/m/SN/tileset.json", |
| | | maximumScreenSpaceError: 64, // 最大屏幕空间错误:16 |
| | | maximumScreenSpaceError: modelUrl.indexOf("/pnts/") > -1 ? 16 : 64, // 最大屏幕空间错误:16 |
| | | maximumMemoryUsage: 768, // 最大内存:512 |
| | | dynamicScreenSpaceError: true, // 减少离相机较远的屏幕空间错误:false |
| | | skipLevelOfDetail: true, // 在遍历时候跳过详情:false |
| | |
| | | new Cesium.UrlTemplateImageryProvider({ |
| | | url: localUrl, |
| | | maximumLevel: 22, |
| | | enablePickFeatures: false |
| | | }) |
| | | ); |
| | | Viewer.imageryLayers.lowerToBottom(window.contRastLayer);//将图层移到最底层 |
| | |
| | | var layer = []; |
| | | var sql = []; |
| | | var dirid = this.$store.state.pigCode |
| | | |
| | | var that = this; |
| | | for (var i in res) { |
| | | layer.push(res[i].url) |
| | | |
| | |
| | | layer = layer.reverse(); |
| | | sql = sql.reverse().join(";") |
| | | var getFeatureInfoFormat = new Cesium.GetFeatureInfoFormat("html", null, function (html) { |
| | | |
| | | that.getFeatureInfo(html) |
| | | }); |
| | | window.layerWMS = new Cesium.WebMapServiceImageryProvider({ |
| | |
| | | }); |
| | | layerWMS.name = "Wms_Layer"; |
| | | |
| | | window.Viewer.scene.imageryLayers.addImageryProvider(window.layerWMS); |
| | | window.Viewer.imageryLayers.addImageryProvider(window.layerWMS); |
| | | var layer2 = new Image({ |
| | | name: "Wms_Layer", |
| | | source: new ImageWMS({ |
| | |
| | | tileHeight: 512, |
| | | }); |
| | | layerWMS.name = "Wms_Layer"; |
| | | window.Viewer.scene.imageryLayers.addImageryProvider(window.layerWMS); |
| | | window.Viewer.imageryLayers.addImageryProvider(window.layerWMS); |
| | | var layer2 = new Image({ |
| | | name: "Wms_Layer", |
| | | source: new ImageWMS({ |
| | |
| | | start = html.lastIndexOf(tab) + tab.length + 1; |
| | | end = html.indexOf("</td>", start); |
| | | var gid = html.substr(start, end - start); |
| | | |
| | | if (gid && tab) { |
| | | this.$store.state.pickoption = { |
| | | gid: gid, |
| | | name: tab.replaceAll("_", "") |
| | | } |
| | | |
| | | if (tab == 'm_surface_deformation_data') { |
| | | this.$store.state.surfaceDeForm.flag = true; |
| | | this.$store.state.surfaceDeForm.gid = gid; |
| | | } else { |
| | | this.$store.state.surfaceDeForm.flag = false; |
| | | this.$store.state.surfaceDeForm.gid = null; |
| | | } |
| | | const res = await dataQuery_selectTabByEntity({ |
| | | name: this.$store.state.pickoption.name |
| | | }) |
| | |
| | | }); |
| | | |
| | | |
| | | this.$store.state.isProjectLayer = [], |
| | | this.$store.state.pigCode = null, |
| | | this.$store.state.showAllLayers = true; |
| | | this.$store.state.isProjectLayer = []; |
| | | this.$store.state.pigCode = null; |
| | | this.$store.state.showAllLayers = true; |
| | | this.$store.state.layerMnage = false; |
| | | this.$store.state.treeData = null; |
| | | this.$store.state.checkedKeys = []; |
| | | // this.setCoverage("a1"); |
| | | this.layersStart(); |
| | | // this.layersStart(); |
| | | |
| | | this.$bus.$on('addImageLayer', (res)=>{ |
| | | if(res){ |
| | | this.layersStart(); |
| | | } |
| | | }); |
| | | |
| | | this.$bus.$on("setDialogInsertVisible", (res) => { |
| | | if (res == true) { |