| | |
| | | import poiLayer from '@/components/poplayer/main'; |
| | | import store from "@/utils/store"; |
| | | import { Message } from 'element-ui'; |
| | | |
| | | let tdglLine, qiyexinxi, qysl, ydbm, ydlx, cyfx, crzt, ydmj, crnx, crnf, rjl, jzxg, jzmd; |
| | | let objdata; |
| | | |
| | |
| | | axios |
| | | .get(window.gisBaseUrl + '/gisserver/wfsserver/yinjing?version=1.3.0&request=GetFeature&format=json&typename=yz井数据') |
| | | .then(res => { |
| | | debugger |
| | | // let manholeList = JSON.parse(res.data); |
| | | store.setLayerPanelShow(false); |
| | | res.data.features.forEach((item, index) => { |
| | |
| | | // axios |
| | | // .get(window.gisBaseUrl + '/gisserver/wfsserver/qiyelianqiye?version=1.3.0&request=GetFeature&format=json&typename=企业链企业') |
| | | // .then(res => { |
| | | // debugger |
| | | // // let manholeList = JSON.parse(res.data); |
| | | // store.setLayerPanelShow(false); |
| | | // res.data.features.forEach((item, index) => { |
| | |
| | | axios |
| | | .get(window.gisBaseUrl + '/gisserver/wfsserver/YZ_SPJK_NEW_wfs?version=1.3.0&request=GetFeature&format=json&typename=摄像头0423') |
| | | .then(res => { |
| | | debugger |
| | | store.setLayerPanelShow(false); |
| | | res.data.features.forEach((item, index) => { |
| | | window.clusterLayer.add( |
| | |
| | | }) |
| | | } |
| | | let nPickFeature = sgworld.Viewer.scene.pick(event.position); |
| | | console.log(nPickFeature); |
| | | // console.log(nPickFeature); |
| | | // if (nPickFeature == undefined) { |
| | | // window.flyPoint && Viewer.entities.remove(window.flyPoint); |
| | | // window.flyPoint = undefined; |
| | | // } |
| | | // console.log(event.position);//屏幕位置 |
| | | if (!nPickFeature || !nPickFeature.id) { |
| | | return |
| | |
| | | nPickFeature.primitive.image = |
| | | window.SmartEarthRootUrl + "Workers/image/point.png"; |
| | | //点击弹框(部件、企业、监控) |
| | | if (nPickFeature.id.tag) { |
| | | if (nPickFeature.id.tag || nPickFeature.id.show) { |
| | | let properties = nPickFeature.id.properties; |
| | | let propertyNames = nPickFeature.id.properties.propertyNames; |
| | | if (propertyNames.indexOf("监控名") !== -1) { |
| | |
| | | return |
| | | } else if (propertyNames.indexOf("部件名称") !== -1) { |
| | | objdata = { |
| | | // 点位类型(中英文配置表poiKeys.js) |
| | | POITYPE: "CSBJ", |
| | | // 展示字段 |
| | | name: properties["部件名称"]._value, |
| | | address: properties["安装地址"]._value, |
| | | code: properties["部件编码"]._value, |
| | | type: properties["部件类型"]._value, |
| | | // 弹框经纬度 |
| | | lon: lon, |
| | | lat: lat, |
| | | } |
| | |
| | | DZ: properties["DZ"]._value, |
| | | lon: lon, |
| | | lat: lat, |
| | | } |
| | | } else if (propertyNames.includes("id")) { |
| | | objdata = { |
| | | POITYPE: "POINT", |
| | | name: properties["_name"]._value, |
| | | address: properties["_address"]._value, |
| | | lat: properties["_lat"]._value, |
| | | lon: properties["_lng"]._value, |
| | | } |
| | | } |
| | | divPoint3 && divPoint3.deleteObject(); |
| | |
| | | level: treeNode.Level, |
| | | minimumLevel: treeNode.minimumLevel, |
| | | maximumLevel: treeNode.maximumLevel, |
| | | minificationFilter: Cesium.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR, |
| | | magnificationFilter: Cesium.TextureMinificationFilter.NEAREST_MIPMAP_LINEAR, |
| | | tilingScheme: |
| | | treeNode.tileType === "Geo" |
| | | ? new Cesium.GeographicTilingScheme() |
| | |
| | | clearLayerByTypeId(item); |
| | | }) |
| | | } |
| | | } |
| | | } |