添加地形切换效果,底图切换功能,在线制图,服务发布页面优化,转孔柱状图更新
| | |
| | | } |
| | | //æ°æ®åå¸ => æ°æ®æå
¥ |
| | | export function publish_insert(params) { |
| | | return request.post('/publish/insert', params); |
| | | return request.post('/publish/insertForPub', params); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | // var outlineList = [ |
| | | // 'rgba(141,135,114,1)', |
| | | // 'rgba(248,235,179,1)', |
| | | // 'rgba(185,183,151,1)', |
| | | // 'rgba(224,222,94,1)', |
| | | // 'rgba(250,190,153,1)', |
| | | // 'rgba(197,222,130,1)', |
| | | // 'rgba(208,228,177,1)', |
| | | // ] |
| | | var outlineList = [ |
| | | 'rgba(141,135,114,1)', |
| | | 'rgba(248,235,179,1)', |
| | | 'rgba(185,183,151,1)', |
| | | 'rgba(224,222,94,1)', |
| | | 'rgba(250,190,153,1)', |
| | | 'rgba(197,222,130,1)', |
| | | 'rgba(208,228,177,1)', |
| | | { 'name': 'ç²è´¨é»å', 'color': 'rgba(139,106,77,1)' }, |
| | | { 'name': '淤泥质ç²å', 'color': 'rgba(141,85,69,1)' }, |
| | | { 'name': 'åç ¾', 'color': 'rgba(102,166,184,1)' }, |
| | | { 'name': 'åµç³', 'color': 'rgba(54,83,173,1)' }, |
| | | { 'name': '泥岩', 'color': 'rgba(47,30,13,1)' }, |
| | | { 'name': 'ç»ç ', 'color': 'rgba(93,88,15,1)' }, |
| | | { 'name': 'ä¸ç ', 'color': 'rgba(164,140,21,1)' } |
| | | ] |
| | | var num = res.elev; |
| | | var height = 0; |
| | | for (var i = 0; i < val.length; i++) { |
| | | var fill, line; |
| | | if (i >= outlineList.length) { |
| | | var len = outlineList.length - 1; |
| | | fill = outlineList[len]; |
| | | line = outlineList[len]; |
| | | } else { |
| | | fill = outlineList[i]; |
| | | line = outlineList[i]; |
| | | } |
| | | var line; |
| | | |
| | | var geoname = val[i].geoname; |
| | | var col = outlineList.filter((res) => { |
| | | if (res.name == geoname) { |
| | | return res |
| | | } |
| | | }) |
| | | |
| | | line = col[0].color |
| | | |
| | | var height = num - val[i].botdepth |
| | | var layer = Viewer.entities.add({ |
| | | position: Cesium.Cartesian3.fromDegrees(coord[0], coord[1]), |
| | |
| | | <div |
| | | @click="changeMenulayer" |
| | | class="center CenDiv" |
| | | :class="{ center1: centerFlag }" |
| | | > |
| | | <div |
| | | title="åºå¾åæ¢" |
| | | id="cenBg" |
| | | v-bind:class="{ active: isActive, menuLayer: isMenuLayer }" |
| | | class="mapBaseMap" |
| | | ></div> |
| | | |
| | | </div> |
| | |
| | | class="changeMapType" |
| | | > |
| | | <div |
| | | title="2/3ç»´åæ¢" |
| | | id="cenBg" |
| | | :class="show2DMap ? 'mapTypeTwo' : 'mapTypeThree'" |
| | | ></div> |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | box-shadow: 3px 3px 6px #666; |
| | | border: 1px solid rgba(204, 204, 204, 0.76); |
| | | // box-shadow: 3px 3px 6px #666; |
| | | // border: 1px solid rgba(204, 204, 204, 0.76); |
| | | border-radius: 5px; |
| | | cursor: pointer; |
| | | } |
| | |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | } |
| | | .CenDiv:hover { |
| | | border: 1px solid #409eff; |
| | | } |
| | | // .CenDiv:hover { |
| | | // border: 1px solid #409eff; |
| | | // } |
| | | .active { |
| | | width: 100%; |
| | | height: 100%; |
| | |
| | | .sindagis-map-compass .right:hover { |
| | | background: url("../assets/img/compass.png") -89px -5px / 266px no-repeat; |
| | | } |
| | | |
| | | .mapBaseMap { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin-left: 10px; |
| | | background-image: url("../assets/img/synthesis/åºå¾.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: contain; |
| | | } |
| | | .changeMapType { |
| | | position: absolute; |
| | | bottom: 1%; |
| | |
| | | </div> |
| | | <div style="display: flex"> |
| | | <div |
| | | @click="changeMenulayer" |
| | | class="center CenDiv" |
| | | :class="{ center1: centerFlag }" |
| | | class="changeTerrain" |
| | | @click="changeTerrainLayer" |
| | | > |
| | | <div |
| | | title="å°å½¢åæ¢" |
| | | id="cenBg" |
| | | v-bind:class="{ active: isActive, menuLayer: isMenuLayer }" |
| | | class="mapTerrain" |
| | | ></div> |
| | | </div> |
| | | <div |
| | | @click="changeMenulayer" |
| | | class="center CenDiv" |
| | | > |
| | | <div |
| | | title="åºå¾åæ¢" |
| | | id="cenBg" |
| | | class="mapBaseMap" |
| | | ></div> |
| | | </div> |
| | | |
| | | <div |
| | | @click="changeMapType" |
| | | class="changeMapType" |
| | | > |
| | | <div |
| | | title="2/3ç»´åæ¢" |
| | | id="cenBg" |
| | | :class="show2DMap ? 'mapTypeTwo' : 'mapTypeThree'" |
| | | ></div> |
| | |
| | | attributeList: [], |
| | | valueZ: 0, |
| | | valueX: 0, |
| | | valueY: 0 |
| | | valueY: 0, |
| | | terrainflag: false, |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | layerName: window.sceneConfig.mptName, |
| | | requestVertexNormals: true, |
| | | }; |
| | | sgworld.Creator.sfsterrainprovider("", option, "", true, ""); |
| | | window.terrainLayer = sgworld.Creator.sfsterrainprovider("", option, "", true, ""); |
| | | |
| | | window.elevationTool = new SmartEarth.ElevationTool(window.sgworld); |
| | | elevationTool.setContourColor("#F1D487"); |
| | | |
| | | |
| | | }, |
| | | //dem忢 |
| | | changeTerrainLayer() { |
| | | if (this.terrainflag) { |
| | | Viewer.terrainProvider = new Cesium.EllipsoidTerrainProvider(); |
| | | var option = { |
| | | url: window.sceneConfig.SGUrl, |
| | | layerName: window.sceneConfig.mptName, |
| | | requestVertexNormals: true, |
| | | }; |
| | | window.terrainLayer = sgworld.Creator.sfsterrainprovider("", option, "", true, ""); |
| | | Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees(110, 33, 8000000), |
| | | }); |
| | | |
| | | } else { |
| | | window.terrainLayer.deleteObject(); |
| | | window.terrainLayer = null; |
| | | |
| | | window.terrainLayer = new Cesium.CesiumTerrainProvider({ |
| | | url: LFData + '/3d/terrain/dem20230321' |
| | | }); |
| | | Viewer.terrainProvider = window.terrainLayer |
| | | Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees(113.229279, 31.215949, 1000), |
| | | orientation: { |
| | | heading: 6.08434611923462, |
| | | pitch: Cesium.Math.toRadians(-45.0), |
| | | roll: 0.0 |
| | | } |
| | | }); |
| | | |
| | | } |
| | | this.terrainflag = !this.terrainflag |
| | | }, |
| | | changeMenulayer() { |
| | | this.$bus.$emit("setChangeBaseMapLayer", true) |
| | | // this.$refs && this.$refs.addOnlineMap && this.$refs.addOnlineMap.open("å°ä¸æ¨¡å¼", null,); |
| | |
| | | .CenDiv { |
| | | position: absolute; |
| | | bottom: 1%; |
| | | left: 1%; |
| | | left: calc(1% + 75px); |
| | | height: 40px; |
| | | width: 60px; |
| | | z-index: 101; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | box-shadow: 3px 3px 6px #666; |
| | | border: 1px solid rgba(204, 204, 204, 0.76); |
| | | // box-shadow: 3px 3px 6px #666; |
| | | // border: 1px solid rgba(204, 204, 204, 0.76); |
| | | border-radius: 5px; |
| | | cursor: pointer; |
| | | } |
| | |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | } |
| | | .CenDiv:hover { |
| | | border: 1px solid #409eff; |
| | | } |
| | | // .CenDiv:hover { |
| | | // border: 1px solid #409eff; |
| | | // } |
| | | .active { |
| | | width: 100%; |
| | | height: 100%; |
| | |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | .mapBaseMap { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin-left: 10px; |
| | | background-image: url("../assets/img/synthesis/åºå¾.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: contain; |
| | | } |
| | | .changeMapType { |
| | | position: absolute; |
| | | bottom: 1%; |
| | | left: calc(1% + 75px); |
| | | left: calc(1% + 150px); |
| | | height: 40px; |
| | | width: 60px; |
| | | z-index: 101; |
| | |
| | | |
| | | cursor: pointer; |
| | | } |
| | | .changeTerrain { |
| | | position: absolute; |
| | | bottom: 1%; |
| | | left: 1%; |
| | | height: 40px; |
| | | width: 60px; |
| | | z-index: 101; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | border-radius: 5px; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .mapTypeTwo { |
| | | width: 100%; |
| | | height: 100%; |
| | |
| | | background-repeat: no-repeat; |
| | | background-size: contain; |
| | | } |
| | | .mapTerrain { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin-left: 10px; |
| | | background-image: url("../assets/img/synthesis/å°å½¢.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: contain; |
| | | } |
| | | .mapTypeThree { |
| | | width: 100%; |
| | | height: 100%; |
| | |
| | | }); |
| | | var value = std.filter((str) => { |
| | | if (str.url != null && str.type == 2 && str.isShow == 1) { |
| | | |
| | | return str; |
| | | } |
| | | }) |
| | | |
| | | this.setAddLayers(value); |
| | | |
| | | var res = this.setTreeData(val); |
| | | |
| | | //åå¨éä¸å¾å± |
| | | // sessionStorage.setItem("checkedLayers", JSON.stringify(checkedLayers)); |
| | | |
| | | for (var i in res) { |
| | | res[i].children = res[i].children.filter((val) => { |
| | | if (val.children != null) { |
| | | return val; |
| | | } |
| | | }); |
| | | } |
| | | // for (var i in res) { |
| | | // res[i].children = res[i].children.filter((val) => { |
| | | // if (val.children != null) { |
| | | // return val; |
| | | // } |
| | | // }); |
| | | // } |
| | | |
| | | this.$store.state.treeData = res; |
| | | |
| | |
| | | }, { |
| | | name: 'æ¬å°æå¡', |
| | | sourceType: 'localmap', |
| | | maximumLevel: 18, |
| | | maximumLevel: 22, |
| | | id: 3, |
| | | isShow: true, |
| | | list: [ |
| | |
| | | sessionStorage.setItem("checkedLayers", JSON.stringify(checkedLayers)); |
| | | var res = this.setTreeData(val); |
| | | |
| | | for (var i in res) { |
| | | res[i].children = res[i].children.filter((val) => { |
| | | if (val.children != null) { |
| | | return val; |
| | | } |
| | | }); |
| | | } |
| | | // for (var i in res) { |
| | | // res[i].children = res[i].children.filter((val) => { |
| | | // if (val.children != null) { |
| | | // return val; |
| | | // } |
| | | // }); |
| | | // } |
| | | this.treeData = res; |
| | | this.$refs.tree.setCheckedKeys(checkKey); |
| | | }, |
| | |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="setsubmitLayerSubmit()" |
| | | @click="setinsertLayerCancel()" |
| | | >{{$t('common.cancel')}}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | setloadDialogVisible() { |
| | | this.loadDialogVisible = false |
| | | }, |
| | | setinsertLayerCancel() { |
| | | this.insertDialogVisible = false; |
| | | this.insertLayer = { name: '', number: null, min: 4, max: 8 }; |
| | | }, |
| | | //åå¸æäº¤ |
| | | async setinsertLayerSubmit() { |
| | | var min = this.insertLayer.min; |
| | |
| | | { label: "A2", value: "A2" }, |
| | | { label: "A3", value: "A3" }, |
| | | { label: "A4", value: "A4" }, |
| | | { label: "A5", value: "A5" }, |
| | | { label: "A6", value: "A6" }, |
| | | // { label: "A5", value: "A5" }, |
| | | // { label: "A6", value: "A6" }, |
| | | ], |
| | | value: "A4", |
| | | treeData: [], |