| | |
| | | var source = [] |
| | | const mapGeo = { |
| | | |
| | | source1: null, |
| | | init(res) { |
| | | switch (res.type) { |
| | | case "WangGe": |
| | |
| | | Viewer.dataSources.remove(Viewer.dataSources.getByName("zhaiHai1")[0]) |
| | | Viewer.dataSources.remove(Viewer.dataSources.getByName("zhaiHai3")[0]) |
| | | } else { |
| | | if (!res.type) return; |
| | | Viewer.dataSources.remove(Viewer.dataSources.getByName(res.type)[0]) |
| | | } |
| | | |
| | |
| | | |
| | | var url = layerData.config.Model_URL + res.urls; |
| | | var img = layerData.config.Model_URL + '/Data/img/img1.png'; |
| | | var source1 = Cesium.GeoJsonDataSource.load(url) |
| | | source1.then((dataSource) => { |
| | | Cesium.GeoJsonDataSource.load(url).then((dataSource) => { |
| | | |
| | | dataSource.name = res.type |
| | | Viewer.dataSources.add( |
| | | dataSource |
| | |
| | | /> |
| | | <span>模型</span> |
| | | </div> |
| | | <div class="menubtn" @click="setGridQuery()"> |
| | | <img class="bhImg" title="格网" src="@/assets/img/right/cx-s.png" /> |
| | | <span>格网</span> |
| | | </div> |
| | | |
| | | <div class="menubtn" @click="setMenuQuery()"> |
| | | <img class="bhImg" title="查询" src="@/assets/img/right/cx-s.png" /> |
| | | <span>查询</span> |
| | |
| | | lon = Cesium.Math.toDegrees(cartographic.longitude); |
| | | lat = Cesium.Math.toDegrees(cartographic.latitude); |
| | | } else { |
| | | debugger |
| | | obj = nPickFeature.id.attributes; |
| | | lon = nPickFeature.id.positions[0]; |
| | | lat = nPickFeature.id.positions[1]; |
| | |
| | | lon = Cesium.Math.toDegrees(cartographic.longitude); |
| | | lat = Cesium.Math.toDegrees(cartographic.latitude); |
| | | } else { |
| | | |
| | | console.log(nPickFeature.id) |
| | | obj = nPickFeature.id.attributes; |
| | | lon = nPickFeature.id.positions[0]; |
| | | lat = nPickFeature.id.positions[1]; |
| | |
| | | const layerData = { |
| | | config: { |
| | | |
| | | BASE_URL: "http://" + host + "/JiangSu", |
| | | BASE_URL: "http://192.168.20.83/JiangSu", |
| | | img_url: "http://" + host + "/static/image/", |
| | | Model_URL: web_URL + "/JiangSu", |
| | | Model_URL: "http://192.168.20.83/JiangSu", |
| | | tdtSl:"http://t0.tianditu.com/vec_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=", |
| | | tdtZj:"http://t0.tianditu.com/cva_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cva&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default.jpg&tk=", |
| | | tdtToken:"94a34772eb88317fcbf8428e10448561", |
| | |
| | | "id": "482040AD1", |
| | | "sourceType": "b3dm", |
| | | "name": "服务区模型", |
| | | "urls": "http://localhost/JiangSu/Data/3dtiles/fwq/tileset.json", |
| | | "urls": "http://192.168.20.83/JiangSu/Data/3dtiles/fwq/tileset.json", |
| | | "checked": true, |
| | | "rename": false, |
| | | "effectsMaxHeight": 0, |
| | |
| | | "id": "482040AD2", |
| | | "sourceType": "b3dm", |
| | | "name": "收费站模型", |
| | | "urls": "http://localhost/JiangSu/Data/3dtiles/sfz/tileset.json", |
| | | "urls": "http://192.168.20.83/JiangSu/Data/3dtiles/sfz/tileset.json", |
| | | "checked": true, |
| | | "rename": false, |
| | | "zIndex": 2, |
| | | "effectsMaxHeight": 0 |
| | | }, |
| | | { |
| | | "id": "482040AD3", |
| | | "sourceType": "b3dm", |
| | | "name": "探地雷达点云", |
| | | "urls": "http://192.168.20.83/JiangSu/Data/3dtiles/lasDianYun/tileset.json", |
| | | "checked": true, |
| | | "rename": false, |
| | | "zIndex": 2, |