surprise
2024-01-08 01ea7ee08e9cc2a3da2b96cffab30c981e33e920
代码提交
已修改6个文件
51 ■■■■■ 文件已修改
src/assets/js/Layer/mapGeo.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menu/menulist.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menu/tools/special copy.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menu/tools/special.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/data/layerData.js 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/layers.json 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/Layer/mapGeo.js
@@ -1,6 +1,6 @@
var source = []
const mapGeo = {
    source1: null,
    init(res) {
        switch (res.type) {
            case "WangGe":
@@ -27,6 +27,7 @@
            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])
        }
@@ -128,11 +129,11 @@
        })
    },
    addZhuangHaoGeoJson(res) {
        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
src/components/menu/menulist.vue
@@ -40,10 +40,7 @@
          />
          <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>
src/components/menu/tools/special copy.vue
@@ -632,6 +632,7 @@
              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];
src/components/menu/tools/special.vue
@@ -591,6 +591,8 @@
              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];
static/data/layerData.js
@@ -1,18 +1,18 @@
var webhost = location.hostname;
var host = location.host;
var web_URL = "http://" + webhost;
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",
        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",
        olTdtSl:'http://t0.tianditu.com/DataServer?T=cta_w&x={x}&y={y}&l={z}&tk=',
        olTdtBZ:'http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk='
        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",
        olTdtSl: 'http://t0.tianditu.com/DataServer?T=cta_w&x={x}&y={y}&l={z}&tk=',
        olTdtBZ: 'http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk='
    },
    modelData: [
        {
@@ -31,7 +31,7 @@
            name: '路障',
            url: '/Data/glb/路障.glb',
            imgUrl: '路障.png'
        },  {
        }, {
            id: 'md4',
            name: '施工车辆',
            url: '/Data/glb/sgcl.glb',
@@ -46,6 +46,6 @@
            name: '锥桶',
            url: '/Data/glb/锥桶.glb',
            imgUrl: '锥桶.png'
        }
        }
    ]
}
static/layers.json
@@ -89,7 +89,7 @@
                    "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,
@@ -99,7 +99,17 @@
                    "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,