| | |
| | | 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 tdglLine, qiyexinxi, qysl, ydbm, ydlx, cyfx, jszt, ydmj, crnx, crnf, rjl, jzxg, jzmd; |
| | | let objdata; |
| | | |
| | | window.tdglLine = tdglLine |
| | |
| | | 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( |
| | |
| | | } |
| | | // 土地管理 |
| | | if (store.tdglInfo.flag) { |
| | | |
| | | console.log('坐标', [window.clickPOI.lon, window.clickPOI.lat]) |
| | | |
| | | axios |
| | | .get( |
| | | // "http://10.10.4.115:8022/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" + |
| | | window.gisBaseUrl + "yzxncsApi/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" + |
| | | window.gisBaseUrl + "BEApi/cs/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" + |
| | | // window.gisBaseUrl + "cs/geowinmap_xncs/ds?&lng=" + |
| | | window.clickPOI.lon + |
| | | "&lat=" + |
| | | window.clickPOI.lat + |
| | |
| | | axios |
| | | .get( |
| | | // "http://10.10.4.115:8022//poisearch/guihuacon/getInfo?ydbm=" + |
| | | window.gisBaseUrl + "yzxncsApi/poisearch/guihuacon/getInfo?ydbm=" + |
| | | window.gisBaseUrl + "BEApi/cs/poisearch/guihuacon/getInfo?ydbm=" + |
| | | // window.gisBaseUrl + "cs/poisearch/guihuacon/getInfo?ydbm=" + |
| | | response.data.NO |
| | | ) |
| | | .then( |
| | |
| | | qiyexinxi = info.data.data.qiyexinxi; |
| | | qysl = data.qiyexinxi.length; |
| | | if (qysl > 0) { |
| | | ydbm = data.qiyexinxi[0]["地块编号"]; |
| | | // ydbm = data.qiyexinxi[0]["地块编号"]; |
| | | ydbm = data.qiyexinxi[0]["ydbh"]; |
| | | } else { |
| | | ydbm = data.churangxinxi["ydbh"]; |
| | | } |
| | |
| | | cyfx = data.yongdishuju["cyfx"]; |
| | | } catch (e) { } |
| | | try { |
| | | // this.crzt = response.data["ZT"]; |
| | | switch (response.data["ZT"]) { |
| | | case 3: |
| | | crzt = "已出让"; |
| | | break; |
| | | case 4: |
| | | crzt = "未出让"; |
| | | break; |
| | | } |
| | | jszt = response.data["ZT"]; |
| | | // switch (response.data["ZT"]) { |
| | | // case "已建": |
| | | // jszt = "已出让"; |
| | | // break; |
| | | // case "在建": |
| | | // jszt = "未出让"; |
| | | // break; |
| | | // } |
| | | } catch (e) { } |
| | | try { |
| | | ydmj = parseFloat( |
| | |
| | | ydbm, |
| | | ydlx, |
| | | cyfx, |
| | | crzt, |
| | | jszt, |
| | | ydmj, |
| | | ydbm, |
| | | crnx, |
| | |
| | | } |
| | | let nPickFeature = sgworld.Viewer.scene.pick(event.position); |
| | | // 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.scale = 1; |
| | | 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) { |
| | | // objdata = { |
| | | // POITYPE: "SPJK", |
| | |
| | | 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, |
| | | } |
| | |
| | | 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(); |
| | | store.setPoplayerShowAction(false); |
| | | store.setPoplayerListAction({}); |
| | |
| | | }); |
| | | return; |
| | | } |
| | | // |
| | | } |
| | | // if (nPickFeature.id && nPickFeature.id.name.indexOf('YINJ') != -1) { |
| | | // 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); |
| | | }) |
| | | } |
| | | } |
| | | } |