| | |
| | | fullExtent: [ |
| | | 112.51302281804038, -0.17416638494176828, 112.76131189483516, |
| | | 0.000004509395743004334, |
| | | ] |
| | | ], |
| | | polygonUrl: 'https://fkxt.jxstnu.edu.cn/changjing/lkarcgisapp' |
| | | }, |
| | | { |
| | | key: 2, |
| | |
| | | ], |
| | | fullExtent: [ |
| | | 115.76861782444642, 28.63584422760626, 115.82432471553928, 28.663308794331794, |
| | | ] |
| | | ], |
| | | polygonUrl: '' |
| | | } |
| | | ] |
| | | |
| | |
| | | this.campusCut(newData) |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.leftNav.initialize(newData) |
| | | this.$store.commit('SET_DETAILSPOPUP', false) |
| | | this.$store.commit('SET_MONITORPOPUP', false) |
| | | this.$store.commit('SET_PANORAMAPOPUP', false) |
| | | |
| | | this.$store.commit('SET_ARCNAVBARFLAG', false) |
| | | this.$store.commit('SET_SEARCHPOPUPFLAG', false) |
| | | this.$store.commit('SET_SEARCHPOPUPFLAG', false) |
| | | |
| | | this.$refs.leftNav.initialize(newData) |
| | | |
| | | this.createdLayers(newData) |
| | | }) |
| | | } |
| | | } |
| | |
| | | const that = this |
| | | this.map2D.setTarget('viewer-container') |
| | | this.$nextTick(() => { |
| | | this.$refs.leftNav.initialize() |
| | | |
| | | this.createdLayers() |
| | | |
| | | that.map2D.on('pointermove', that.mouseMoveEvent) |
| | | |
| | | this.map2D.on("singleclick", function (event) { |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | createdLayers () { |
| | | createdLayers (campusKey) { |
| | | const that = this |
| | | let curCampus = campusLayers.find(item => item.key == campusKey) |
| | | |
| | | if (architecturePolygon) { |
| | | this.map2D.removeLayer(architecturePolygon) |
| | | } |
| | | |
| | | architecturePolygon = new VectorLayer({ |
| | | // 图标图层 |
| | |
| | | |
| | | axios |
| | | .get( |
| | | 'https://fkxt.jxstnu.edu.cn/changjing/lkarcgisapp?where=1%3D1&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&returnTrueCurves=false&resultOffset=&resultRecordCount=&f=pjson' |
| | | curCampus.polygonUrl + '?where=1%3D1&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&returnTrueCurves=false&resultOffset=&resultRecordCount=&f=pjson' |
| | | ) |
| | | .then((resultData) => { |
| | | resultData.data.features.forEach((item) => { |