diff --git a/package.json b/package.json index f0bd847..b420901 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", + "@turf/turf": "^6.5.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "clipboard": "^2.0.8", @@ -21,8 +22,9 @@ "element-ui": "^2.15.7", "js-cookie": "^3.0.0", "jsencrypt": "^3.2.1", - "mars3d": "^3.4.7", - "mars3d-space": "^3.4.7", + "mars3d": "^3.6.16", + "mars3d-cesium": "^1.112.0", + "mars3d-space": "3.6.16", "mockjs": "^1.1.0", "node-polyfill-webpack-plugin": "^2.0.1", "normalize.css": "^8.0.1", diff --git a/package.json b/package.json index f0bd847..b420901 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", + "@turf/turf": "^6.5.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "clipboard": "^2.0.8", @@ -21,8 +22,9 @@ "element-ui": "^2.15.7", "js-cookie": "^3.0.0", "jsencrypt": "^3.2.1", - "mars3d": "^3.4.7", - "mars3d-space": "^3.4.7", + "mars3d": "^3.6.16", + "mars3d-cesium": "^1.112.0", + "mars3d-space": "3.6.16", "mockjs": "^1.1.0", "node-polyfill-webpack-plugin": "^2.0.1", "normalize.css": "^8.0.1", diff --git a/public/config/mapConfig.js b/public/config/mapConfig.js deleted file mode 100644 index b68060b..0000000 --- a/public/config/mapConfig.js +++ /dev/null @@ -1,94 +0,0 @@ -// 3维地图有关配置 -const config = { - scene:{ - // 默认视角参数 - center: { lat:36.290705 , lng:117.424668 , alt: 30000, heading: 360, pitch: -45 }, - showSun: true, - // mapProjection: new Cesium.MapProjection. - // showMoon: true, - // showSkyBox: true, - showSkyAtmosphere: false, // 关闭球周边的白色轮廓 map.scene.skyAtmosphere = false - fog: true, - fxaa: true, - // 以下是Cesium.Globe对象相关参数 - globe: { - depthTestAgainstTerrain: true, // 是否启用深度监测 - baseColor: '#1A2126', // 地球默认背景色 - showGroundAtmosphere: false, // 是否在地球上绘制的地面大气 - enableLighting: false // 是否显示昼夜区域 - }, - control: { - infoBox: false - }, - // 以下是Cesium.ScreenSpaceCameraController对象相关参数 - cameraController: { - zoomFactor: 3.0, // 鼠标滚轮放大的步长参数 - minimumZoomDistance: 1, // 地球放大的最小值(以米为单位) - maximumZoomDistance: 5000000, // 地球缩小的最大值(以米为单位) - enableRotate: true, // 2D和3D视图下,是否允许用户旋转相机 - enableTranslate: true, // 2D和哥伦布视图下,是否允许用户平移地图 - enableTilt: true, // 3D和哥伦布视图下,是否允许用户倾斜相机 - enableZoom: true, // 是否允许 用户放大和缩小视图 - enableCollisionDetection: true // 是否允许 地形相机的碰撞检测 - } - }, - terrian:{ - type: 'xyz', // 地形类型,xyz: 标准xyz服务,none: 无地形,arcgis arcgis地形服务 - url:'http://data.mars3d.cn/terrain' - }, // 地形,地形只支持一个 - crs:'EPSG:4490', // 坐标系,支持EPSG:3857(墨卡托), EPSG4326(WSG84), EPSG:4490(CGCS2000) - basemaps:[ - { - name: "天地图影像(EPSG:3857)", - icon: "img/basemaps/tdt_img.png", - type: "tdt", - layer: "img_d", - key: '216ee92889e17ab1b083fae665d522b8', - show: true - }, - { - name:'2020影像图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/5a44607b2e814658b463b76f9675bd3e/9bf164775ad94a18a5324f0eb681deea/Layers/default/Custom_Layers/{TileMatrix}/{TileRow}/{TileCol}.png', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - }, - { - name:'2021电子地图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/4fb75f7491c94356a9dd58a44d0dc57b/9bf164775ad94a18a5324f0eb681deea?service=WMTS&request=GetTile&version=1.0.0&layer=JN2020DOM_05M&style=default&format=image/png&TileMatrixSet=CustomCRS4490ScaleJN2020DOM_05M&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - } - ],// 地图图层 - layers:[ - { - name:'燃气管线', - type:'arcgisWfs', // 矢量图层类型: wfs矢量图层服务, S3M超图,tiles 3DTiles模型, gltf glTF小模型 - url:'http://111.198.10.15:13002/arcgis/rest/services/gas/MapServer/1', // 地址 - minimumLevel: 19, - symbol:{ - type: 'polylineVolumeP', // 矢量数据的style样式, polylineVolumeP是管道线 Primitive图元 - style:{ - color: '#eb6b0c', // 管道颜色 - shape: 'pipeline', // 形状类型:pipeline空心管, circle实心管 - radius: 0.1 // 默认半径 - } - }, - center: {}, // 中心位置 - flyto: true - } - ] // 矢量图层 -} -window.mapConfig = config - diff --git a/package.json b/package.json index f0bd847..b420901 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", + "@turf/turf": "^6.5.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "clipboard": "^2.0.8", @@ -21,8 +22,9 @@ "element-ui": "^2.15.7", "js-cookie": "^3.0.0", "jsencrypt": "^3.2.1", - "mars3d": "^3.4.7", - "mars3d-space": "^3.4.7", + "mars3d": "^3.6.16", + "mars3d-cesium": "^1.112.0", + "mars3d-space": "3.6.16", "mockjs": "^1.1.0", "node-polyfill-webpack-plugin": "^2.0.1", "normalize.css": "^8.0.1", diff --git a/public/config/mapConfig.js b/public/config/mapConfig.js deleted file mode 100644 index b68060b..0000000 --- a/public/config/mapConfig.js +++ /dev/null @@ -1,94 +0,0 @@ -// 3维地图有关配置 -const config = { - scene:{ - // 默认视角参数 - center: { lat:36.290705 , lng:117.424668 , alt: 30000, heading: 360, pitch: -45 }, - showSun: true, - // mapProjection: new Cesium.MapProjection. - // showMoon: true, - // showSkyBox: true, - showSkyAtmosphere: false, // 关闭球周边的白色轮廓 map.scene.skyAtmosphere = false - fog: true, - fxaa: true, - // 以下是Cesium.Globe对象相关参数 - globe: { - depthTestAgainstTerrain: true, // 是否启用深度监测 - baseColor: '#1A2126', // 地球默认背景色 - showGroundAtmosphere: false, // 是否在地球上绘制的地面大气 - enableLighting: false // 是否显示昼夜区域 - }, - control: { - infoBox: false - }, - // 以下是Cesium.ScreenSpaceCameraController对象相关参数 - cameraController: { - zoomFactor: 3.0, // 鼠标滚轮放大的步长参数 - minimumZoomDistance: 1, // 地球放大的最小值(以米为单位) - maximumZoomDistance: 5000000, // 地球缩小的最大值(以米为单位) - enableRotate: true, // 2D和3D视图下,是否允许用户旋转相机 - enableTranslate: true, // 2D和哥伦布视图下,是否允许用户平移地图 - enableTilt: true, // 3D和哥伦布视图下,是否允许用户倾斜相机 - enableZoom: true, // 是否允许 用户放大和缩小视图 - enableCollisionDetection: true // 是否允许 地形相机的碰撞检测 - } - }, - terrian:{ - type: 'xyz', // 地形类型,xyz: 标准xyz服务,none: 无地形,arcgis arcgis地形服务 - url:'http://data.mars3d.cn/terrain' - }, // 地形,地形只支持一个 - crs:'EPSG:4490', // 坐标系,支持EPSG:3857(墨卡托), EPSG4326(WSG84), EPSG:4490(CGCS2000) - basemaps:[ - { - name: "天地图影像(EPSG:3857)", - icon: "img/basemaps/tdt_img.png", - type: "tdt", - layer: "img_d", - key: '216ee92889e17ab1b083fae665d522b8', - show: true - }, - { - name:'2020影像图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/5a44607b2e814658b463b76f9675bd3e/9bf164775ad94a18a5324f0eb681deea/Layers/default/Custom_Layers/{TileMatrix}/{TileRow}/{TileCol}.png', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - }, - { - name:'2021电子地图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/4fb75f7491c94356a9dd58a44d0dc57b/9bf164775ad94a18a5324f0eb681deea?service=WMTS&request=GetTile&version=1.0.0&layer=JN2020DOM_05M&style=default&format=image/png&TileMatrixSet=CustomCRS4490ScaleJN2020DOM_05M&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - } - ],// 地图图层 - layers:[ - { - name:'燃气管线', - type:'arcgisWfs', // 矢量图层类型: wfs矢量图层服务, S3M超图,tiles 3DTiles模型, gltf glTF小模型 - url:'http://111.198.10.15:13002/arcgis/rest/services/gas/MapServer/1', // 地址 - minimumLevel: 19, - symbol:{ - type: 'polylineVolumeP', // 矢量数据的style样式, polylineVolumeP是管道线 Primitive图元 - style:{ - color: '#eb6b0c', // 管道颜色 - shape: 'pipeline', // 形状类型:pipeline空心管, circle实心管 - radius: 0.1 // 默认半径 - } - }, - center: {}, // 中心位置 - flyto: true - } - ] // 矢量图层 -} -window.mapConfig = config - diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json index 498d918..9b96e4e 100644 --- a/public/config/mars3dConfig.json +++ b/public/config/mars3dConfig.json @@ -1,7 +1,7 @@ { "scene": { "center": { - "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45 + "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45 }, "requestRenderMode": true, "showSun": false, diff --git a/package.json b/package.json index f0bd847..b420901 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", + "@turf/turf": "^6.5.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "clipboard": "^2.0.8", @@ -21,8 +22,9 @@ "element-ui": "^2.15.7", "js-cookie": "^3.0.0", "jsencrypt": "^3.2.1", - "mars3d": "^3.4.7", - "mars3d-space": "^3.4.7", + "mars3d": "^3.6.16", + "mars3d-cesium": "^1.112.0", + "mars3d-space": "3.6.16", "mockjs": "^1.1.0", "node-polyfill-webpack-plugin": "^2.0.1", "normalize.css": "^8.0.1", diff --git a/public/config/mapConfig.js b/public/config/mapConfig.js deleted file mode 100644 index b68060b..0000000 --- a/public/config/mapConfig.js +++ /dev/null @@ -1,94 +0,0 @@ -// 3维地图有关配置 -const config = { - scene:{ - // 默认视角参数 - center: { lat:36.290705 , lng:117.424668 , alt: 30000, heading: 360, pitch: -45 }, - showSun: true, - // mapProjection: new Cesium.MapProjection. - // showMoon: true, - // showSkyBox: true, - showSkyAtmosphere: false, // 关闭球周边的白色轮廓 map.scene.skyAtmosphere = false - fog: true, - fxaa: true, - // 以下是Cesium.Globe对象相关参数 - globe: { - depthTestAgainstTerrain: true, // 是否启用深度监测 - baseColor: '#1A2126', // 地球默认背景色 - showGroundAtmosphere: false, // 是否在地球上绘制的地面大气 - enableLighting: false // 是否显示昼夜区域 - }, - control: { - infoBox: false - }, - // 以下是Cesium.ScreenSpaceCameraController对象相关参数 - cameraController: { - zoomFactor: 3.0, // 鼠标滚轮放大的步长参数 - minimumZoomDistance: 1, // 地球放大的最小值(以米为单位) - maximumZoomDistance: 5000000, // 地球缩小的最大值(以米为单位) - enableRotate: true, // 2D和3D视图下,是否允许用户旋转相机 - enableTranslate: true, // 2D和哥伦布视图下,是否允许用户平移地图 - enableTilt: true, // 3D和哥伦布视图下,是否允许用户倾斜相机 - enableZoom: true, // 是否允许 用户放大和缩小视图 - enableCollisionDetection: true // 是否允许 地形相机的碰撞检测 - } - }, - terrian:{ - type: 'xyz', // 地形类型,xyz: 标准xyz服务,none: 无地形,arcgis arcgis地形服务 - url:'http://data.mars3d.cn/terrain' - }, // 地形,地形只支持一个 - crs:'EPSG:4490', // 坐标系,支持EPSG:3857(墨卡托), EPSG4326(WSG84), EPSG:4490(CGCS2000) - basemaps:[ - { - name: "天地图影像(EPSG:3857)", - icon: "img/basemaps/tdt_img.png", - type: "tdt", - layer: "img_d", - key: '216ee92889e17ab1b083fae665d522b8', - show: true - }, - { - name:'2020影像图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/5a44607b2e814658b463b76f9675bd3e/9bf164775ad94a18a5324f0eb681deea/Layers/default/Custom_Layers/{TileMatrix}/{TileRow}/{TileCol}.png', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - }, - { - name:'2021电子地图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/4fb75f7491c94356a9dd58a44d0dc57b/9bf164775ad94a18a5324f0eb681deea?service=WMTS&request=GetTile&version=1.0.0&layer=JN2020DOM_05M&style=default&format=image/png&TileMatrixSet=CustomCRS4490ScaleJN2020DOM_05M&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - } - ],// 地图图层 - layers:[ - { - name:'燃气管线', - type:'arcgisWfs', // 矢量图层类型: wfs矢量图层服务, S3M超图,tiles 3DTiles模型, gltf glTF小模型 - url:'http://111.198.10.15:13002/arcgis/rest/services/gas/MapServer/1', // 地址 - minimumLevel: 19, - symbol:{ - type: 'polylineVolumeP', // 矢量数据的style样式, polylineVolumeP是管道线 Primitive图元 - style:{ - color: '#eb6b0c', // 管道颜色 - shape: 'pipeline', // 形状类型:pipeline空心管, circle实心管 - radius: 0.1 // 默认半径 - } - }, - center: {}, // 中心位置 - flyto: true - } - ] // 矢量图层 -} -window.mapConfig = config - diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json index 498d918..9b96e4e 100644 --- a/public/config/mars3dConfig.json +++ b/public/config/mars3dConfig.json @@ -1,7 +1,7 @@ { "scene": { "center": { - "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45 + "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45 }, "requestRenderMode": true, "showSun": false, diff --git a/public/config/project.config.json b/public/config/project.config.json index 7c4ca91..4b60b89 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,8 +2,8 @@ "title": "管网运行监测系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://11.100.6.182:5001/", - "wsUrl": "ws://11.100.6.182:5001/websocket/", + "baseUrl": "http://192.168.182.39:11308/", + "wsUrl": "ws://60.208.121.150:5001/websocket/", "mainPage": "http://111.198.10.15:11404/dcms/#", "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad", "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b", @@ -17,5 +17,6 @@ "provinceCode":"360000", "cityCode":"361000", "areaCode":"361024", - "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/" + "arcgisUrl": "http://124.128.226.219:5004/arcgis/rest/services/zqgis/MapServer/" } + diff --git a/package.json b/package.json index f0bd847..b420901 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", + "@turf/turf": "^6.5.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "clipboard": "^2.0.8", @@ -21,8 +22,9 @@ "element-ui": "^2.15.7", "js-cookie": "^3.0.0", "jsencrypt": "^3.2.1", - "mars3d": "^3.4.7", - "mars3d-space": "^3.4.7", + "mars3d": "^3.6.16", + "mars3d-cesium": "^1.112.0", + "mars3d-space": "3.6.16", "mockjs": "^1.1.0", "node-polyfill-webpack-plugin": "^2.0.1", "normalize.css": "^8.0.1", diff --git a/public/config/mapConfig.js b/public/config/mapConfig.js deleted file mode 100644 index b68060b..0000000 --- a/public/config/mapConfig.js +++ /dev/null @@ -1,94 +0,0 @@ -// 3维地图有关配置 -const config = { - scene:{ - // 默认视角参数 - center: { lat:36.290705 , lng:117.424668 , alt: 30000, heading: 360, pitch: -45 }, - showSun: true, - // mapProjection: new Cesium.MapProjection. - // showMoon: true, - // showSkyBox: true, - showSkyAtmosphere: false, // 关闭球周边的白色轮廓 map.scene.skyAtmosphere = false - fog: true, - fxaa: true, - // 以下是Cesium.Globe对象相关参数 - globe: { - depthTestAgainstTerrain: true, // 是否启用深度监测 - baseColor: '#1A2126', // 地球默认背景色 - showGroundAtmosphere: false, // 是否在地球上绘制的地面大气 - enableLighting: false // 是否显示昼夜区域 - }, - control: { - infoBox: false - }, - // 以下是Cesium.ScreenSpaceCameraController对象相关参数 - cameraController: { - zoomFactor: 3.0, // 鼠标滚轮放大的步长参数 - minimumZoomDistance: 1, // 地球放大的最小值(以米为单位) - maximumZoomDistance: 5000000, // 地球缩小的最大值(以米为单位) - enableRotate: true, // 2D和3D视图下,是否允许用户旋转相机 - enableTranslate: true, // 2D和哥伦布视图下,是否允许用户平移地图 - enableTilt: true, // 3D和哥伦布视图下,是否允许用户倾斜相机 - enableZoom: true, // 是否允许 用户放大和缩小视图 - enableCollisionDetection: true // 是否允许 地形相机的碰撞检测 - } - }, - terrian:{ - type: 'xyz', // 地形类型,xyz: 标准xyz服务,none: 无地形,arcgis arcgis地形服务 - url:'http://data.mars3d.cn/terrain' - }, // 地形,地形只支持一个 - crs:'EPSG:4490', // 坐标系,支持EPSG:3857(墨卡托), EPSG4326(WSG84), EPSG:4490(CGCS2000) - basemaps:[ - { - name: "天地图影像(EPSG:3857)", - icon: "img/basemaps/tdt_img.png", - type: "tdt", - layer: "img_d", - key: '216ee92889e17ab1b083fae665d522b8', - show: true - }, - { - name:'2020影像图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/5a44607b2e814658b463b76f9675bd3e/9bf164775ad94a18a5324f0eb681deea/Layers/default/Custom_Layers/{TileMatrix}/{TileRow}/{TileCol}.png', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - }, - { - name:'2021电子地图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/4fb75f7491c94356a9dd58a44d0dc57b/9bf164775ad94a18a5324f0eb681deea?service=WMTS&request=GetTile&version=1.0.0&layer=JN2020DOM_05M&style=default&format=image/png&TileMatrixSet=CustomCRS4490ScaleJN2020DOM_05M&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - } - ],// 地图图层 - layers:[ - { - name:'燃气管线', - type:'arcgisWfs', // 矢量图层类型: wfs矢量图层服务, S3M超图,tiles 3DTiles模型, gltf glTF小模型 - url:'http://111.198.10.15:13002/arcgis/rest/services/gas/MapServer/1', // 地址 - minimumLevel: 19, - symbol:{ - type: 'polylineVolumeP', // 矢量数据的style样式, polylineVolumeP是管道线 Primitive图元 - style:{ - color: '#eb6b0c', // 管道颜色 - shape: 'pipeline', // 形状类型:pipeline空心管, circle实心管 - radius: 0.1 // 默认半径 - } - }, - center: {}, // 中心位置 - flyto: true - } - ] // 矢量图层 -} -window.mapConfig = config - diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json index 498d918..9b96e4e 100644 --- a/public/config/mars3dConfig.json +++ b/public/config/mars3dConfig.json @@ -1,7 +1,7 @@ { "scene": { "center": { - "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45 + "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45 }, "requestRenderMode": true, "showSun": false, diff --git a/public/config/project.config.json b/public/config/project.config.json index 7c4ca91..4b60b89 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,8 +2,8 @@ "title": "管网运行监测系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://11.100.6.182:5001/", - "wsUrl": "ws://11.100.6.182:5001/websocket/", + "baseUrl": "http://192.168.182.39:11308/", + "wsUrl": "ws://60.208.121.150:5001/websocket/", "mainPage": "http://111.198.10.15:11404/dcms/#", "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad", "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b", @@ -17,5 +17,6 @@ "provinceCode":"360000", "cityCode":"361000", "areaCode":"361024", - "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/" + "arcgisUrl": "http://124.128.226.219:5004/arcgis/rest/services/zqgis/MapServer/" } + diff --git a/public/config/project.configgz.json b/public/config/project.configgz.json index 7c4ca91..b6e51e5 100644 --- a/public/config/project.configgz.json +++ b/public/config/project.configgz.json @@ -2,8 +2,8 @@ "title": "管网运行监测系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://11.100.6.182:5001/", - "wsUrl": "ws://11.100.6.182:5001/websocket/", + "baseUrl": "http://11.100.6.182:5006/", + "wsUrl": "ws://11.100.6.182:5006/websocket/", "mainPage": "http://111.198.10.15:11404/dcms/#", "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad", "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b", diff --git a/package.json b/package.json index f0bd847..b420901 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", + "@turf/turf": "^6.5.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "clipboard": "^2.0.8", @@ -21,8 +22,9 @@ "element-ui": "^2.15.7", "js-cookie": "^3.0.0", "jsencrypt": "^3.2.1", - "mars3d": "^3.4.7", - "mars3d-space": "^3.4.7", + "mars3d": "^3.6.16", + "mars3d-cesium": "^1.112.0", + "mars3d-space": "3.6.16", "mockjs": "^1.1.0", "node-polyfill-webpack-plugin": "^2.0.1", "normalize.css": "^8.0.1", diff --git a/public/config/mapConfig.js b/public/config/mapConfig.js deleted file mode 100644 index b68060b..0000000 --- a/public/config/mapConfig.js +++ /dev/null @@ -1,94 +0,0 @@ -// 3维地图有关配置 -const config = { - scene:{ - // 默认视角参数 - center: { lat:36.290705 , lng:117.424668 , alt: 30000, heading: 360, pitch: -45 }, - showSun: true, - // mapProjection: new Cesium.MapProjection. - // showMoon: true, - // showSkyBox: true, - showSkyAtmosphere: false, // 关闭球周边的白色轮廓 map.scene.skyAtmosphere = false - fog: true, - fxaa: true, - // 以下是Cesium.Globe对象相关参数 - globe: { - depthTestAgainstTerrain: true, // 是否启用深度监测 - baseColor: '#1A2126', // 地球默认背景色 - showGroundAtmosphere: false, // 是否在地球上绘制的地面大气 - enableLighting: false // 是否显示昼夜区域 - }, - control: { - infoBox: false - }, - // 以下是Cesium.ScreenSpaceCameraController对象相关参数 - cameraController: { - zoomFactor: 3.0, // 鼠标滚轮放大的步长参数 - minimumZoomDistance: 1, // 地球放大的最小值(以米为单位) - maximumZoomDistance: 5000000, // 地球缩小的最大值(以米为单位) - enableRotate: true, // 2D和3D视图下,是否允许用户旋转相机 - enableTranslate: true, // 2D和哥伦布视图下,是否允许用户平移地图 - enableTilt: true, // 3D和哥伦布视图下,是否允许用户倾斜相机 - enableZoom: true, // 是否允许 用户放大和缩小视图 - enableCollisionDetection: true // 是否允许 地形相机的碰撞检测 - } - }, - terrian:{ - type: 'xyz', // 地形类型,xyz: 标准xyz服务,none: 无地形,arcgis arcgis地形服务 - url:'http://data.mars3d.cn/terrain' - }, // 地形,地形只支持一个 - crs:'EPSG:4490', // 坐标系,支持EPSG:3857(墨卡托), EPSG4326(WSG84), EPSG:4490(CGCS2000) - basemaps:[ - { - name: "天地图影像(EPSG:3857)", - icon: "img/basemaps/tdt_img.png", - type: "tdt", - layer: "img_d", - key: '216ee92889e17ab1b083fae665d522b8', - show: true - }, - { - name:'2020影像图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/5a44607b2e814658b463b76f9675bd3e/9bf164775ad94a18a5324f0eb681deea/Layers/default/Custom_Layers/{TileMatrix}/{TileRow}/{TileCol}.png', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - }, - { - name:'2021电子地图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/4fb75f7491c94356a9dd58a44d0dc57b/9bf164775ad94a18a5324f0eb681deea?service=WMTS&request=GetTile&version=1.0.0&layer=JN2020DOM_05M&style=default&format=image/png&TileMatrixSet=CustomCRS4490ScaleJN2020DOM_05M&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - } - ],// 地图图层 - layers:[ - { - name:'燃气管线', - type:'arcgisWfs', // 矢量图层类型: wfs矢量图层服务, S3M超图,tiles 3DTiles模型, gltf glTF小模型 - url:'http://111.198.10.15:13002/arcgis/rest/services/gas/MapServer/1', // 地址 - minimumLevel: 19, - symbol:{ - type: 'polylineVolumeP', // 矢量数据的style样式, polylineVolumeP是管道线 Primitive图元 - style:{ - color: '#eb6b0c', // 管道颜色 - shape: 'pipeline', // 形状类型:pipeline空心管, circle实心管 - radius: 0.1 // 默认半径 - } - }, - center: {}, // 中心位置 - flyto: true - } - ] // 矢量图层 -} -window.mapConfig = config - diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json index 498d918..9b96e4e 100644 --- a/public/config/mars3dConfig.json +++ b/public/config/mars3dConfig.json @@ -1,7 +1,7 @@ { "scene": { "center": { - "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45 + "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45 }, "requestRenderMode": true, "showSun": false, diff --git a/public/config/project.config.json b/public/config/project.config.json index 7c4ca91..4b60b89 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,8 +2,8 @@ "title": "管网运行监测系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://11.100.6.182:5001/", - "wsUrl": "ws://11.100.6.182:5001/websocket/", + "baseUrl": "http://192.168.182.39:11308/", + "wsUrl": "ws://60.208.121.150:5001/websocket/", "mainPage": "http://111.198.10.15:11404/dcms/#", "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad", "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b", @@ -17,5 +17,6 @@ "provinceCode":"360000", "cityCode":"361000", "areaCode":"361024", - "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/" + "arcgisUrl": "http://124.128.226.219:5004/arcgis/rest/services/zqgis/MapServer/" } + diff --git a/public/config/project.configgz.json b/public/config/project.configgz.json index 7c4ca91..b6e51e5 100644 --- a/public/config/project.configgz.json +++ b/public/config/project.configgz.json @@ -2,8 +2,8 @@ "title": "管网运行监测系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://11.100.6.182:5001/", - "wsUrl": "ws://11.100.6.182:5001/websocket/", + "baseUrl": "http://11.100.6.182:5006/", + "wsUrl": "ws://11.100.6.182:5006/websocket/", "mainPage": "http://111.198.10.15:11404/dcms/#", "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad", "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b", diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json index 4021326..e3c60d3 100644 --- a/public/config/project.configzq.json +++ b/public/config/project.configzq.json @@ -17,5 +17,6 @@ "provinceCode":"360000", "cityCode":"361000", "areaCode":"361024", - "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_publish/MapServer/" + "arcgisUrl": "http://124.128.226.219:5004/arcgis/rest/services/zqgis/MapServer/" } + diff --git a/package.json b/package.json index f0bd847..b420901 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@amap/amap-jsapi-loader": "^1.0.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "^0.4.0", + "@turf/turf": "^6.5.0", "animate.css": "^4.1.1", "axios": "^0.21.1", "clipboard": "^2.0.8", @@ -21,8 +22,9 @@ "element-ui": "^2.15.7", "js-cookie": "^3.0.0", "jsencrypt": "^3.2.1", - "mars3d": "^3.4.7", - "mars3d-space": "^3.4.7", + "mars3d": "^3.6.16", + "mars3d-cesium": "^1.112.0", + "mars3d-space": "3.6.16", "mockjs": "^1.1.0", "node-polyfill-webpack-plugin": "^2.0.1", "normalize.css": "^8.0.1", diff --git a/public/config/mapConfig.js b/public/config/mapConfig.js deleted file mode 100644 index b68060b..0000000 --- a/public/config/mapConfig.js +++ /dev/null @@ -1,94 +0,0 @@ -// 3维地图有关配置 -const config = { - scene:{ - // 默认视角参数 - center: { lat:36.290705 , lng:117.424668 , alt: 30000, heading: 360, pitch: -45 }, - showSun: true, - // mapProjection: new Cesium.MapProjection. - // showMoon: true, - // showSkyBox: true, - showSkyAtmosphere: false, // 关闭球周边的白色轮廓 map.scene.skyAtmosphere = false - fog: true, - fxaa: true, - // 以下是Cesium.Globe对象相关参数 - globe: { - depthTestAgainstTerrain: true, // 是否启用深度监测 - baseColor: '#1A2126', // 地球默认背景色 - showGroundAtmosphere: false, // 是否在地球上绘制的地面大气 - enableLighting: false // 是否显示昼夜区域 - }, - control: { - infoBox: false - }, - // 以下是Cesium.ScreenSpaceCameraController对象相关参数 - cameraController: { - zoomFactor: 3.0, // 鼠标滚轮放大的步长参数 - minimumZoomDistance: 1, // 地球放大的最小值(以米为单位) - maximumZoomDistance: 5000000, // 地球缩小的最大值(以米为单位) - enableRotate: true, // 2D和3D视图下,是否允许用户旋转相机 - enableTranslate: true, // 2D和哥伦布视图下,是否允许用户平移地图 - enableTilt: true, // 3D和哥伦布视图下,是否允许用户倾斜相机 - enableZoom: true, // 是否允许 用户放大和缩小视图 - enableCollisionDetection: true // 是否允许 地形相机的碰撞检测 - } - }, - terrian:{ - type: 'xyz', // 地形类型,xyz: 标准xyz服务,none: 无地形,arcgis arcgis地形服务 - url:'http://data.mars3d.cn/terrain' - }, // 地形,地形只支持一个 - crs:'EPSG:4490', // 坐标系,支持EPSG:3857(墨卡托), EPSG4326(WSG84), EPSG:4490(CGCS2000) - basemaps:[ - { - name: "天地图影像(EPSG:3857)", - icon: "img/basemaps/tdt_img.png", - type: "tdt", - layer: "img_d", - key: '216ee92889e17ab1b083fae665d522b8', - show: true - }, - { - name:'2020影像图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/5a44607b2e814658b463b76f9675bd3e/9bf164775ad94a18a5324f0eb681deea/Layers/default/Custom_Layers/{TileMatrix}/{TileRow}/{TileCol}.png', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - }, - { - name:'2021电子地图', // 图层名称 - type:'wmts', //图层类型: tdt天地图,gaode高德地图,wmts, wms, - url:'http://172.20.90.108:8081/geoesb/proxy/4fb75f7491c94356a9dd58a44d0dc57b/9bf164775ad94a18a5324f0eb681deea?service=WMTS&request=GetTile&version=1.0.0&layer=JN2020DOM_05M&style=default&format=image/png&TileMatrixSet=CustomCRS4490ScaleJN2020DOM_05M&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}', // 地址 - key:'', // 密钥 - crs:'EPSG:4490', - layer:'wzmap_map', - style:'default', - format:'image/png', - tileMatrixSetID:'default028mm', - show: true - } - ],// 地图图层 - layers:[ - { - name:'燃气管线', - type:'arcgisWfs', // 矢量图层类型: wfs矢量图层服务, S3M超图,tiles 3DTiles模型, gltf glTF小模型 - url:'http://111.198.10.15:13002/arcgis/rest/services/gas/MapServer/1', // 地址 - minimumLevel: 19, - symbol:{ - type: 'polylineVolumeP', // 矢量数据的style样式, polylineVolumeP是管道线 Primitive图元 - style:{ - color: '#eb6b0c', // 管道颜色 - shape: 'pipeline', // 形状类型:pipeline空心管, circle实心管 - radius: 0.1 // 默认半径 - } - }, - center: {}, // 中心位置 - flyto: true - } - ] // 矢量图层 -} -window.mapConfig = config - diff --git a/public/config/mars3dConfig.json b/public/config/mars3dConfig.json index 498d918..9b96e4e 100644 --- a/public/config/mars3dConfig.json +++ b/public/config/mars3dConfig.json @@ -1,7 +1,7 @@ { "scene": { "center": { - "lat": "25.675", "lng": "114.875", "alt": 10000, "heading": 360, "pitch": -45 + "lat": "36.48", "lng": "117.48", "alt": 20000, "heading": 360, "pitch": -45 }, "requestRenderMode": true, "showSun": false, diff --git a/public/config/project.config.json b/public/config/project.config.json index 7c4ca91..4b60b89 100644 --- a/public/config/project.config.json +++ b/public/config/project.config.json @@ -2,8 +2,8 @@ "title": "管网运行监测系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://11.100.6.182:5001/", - "wsUrl": "ws://11.100.6.182:5001/websocket/", + "baseUrl": "http://192.168.182.39:11308/", + "wsUrl": "ws://60.208.121.150:5001/websocket/", "mainPage": "http://111.198.10.15:11404/dcms/#", "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad", "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b", @@ -17,5 +17,6 @@ "provinceCode":"360000", "cityCode":"361000", "areaCode":"361024", - "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/gztest/MapServer/" + "arcgisUrl": "http://124.128.226.219:5004/arcgis/rest/services/zqgis/MapServer/" } + diff --git a/public/config/project.configgz.json b/public/config/project.configgz.json index 7c4ca91..b6e51e5 100644 --- a/public/config/project.configgz.json +++ b/public/config/project.configgz.json @@ -2,8 +2,8 @@ "title": "管网运行监测系统", "subtitle": "", "theme":"blue", - "baseUrl": "http://11.100.6.182:5001/", - "wsUrl": "ws://11.100.6.182:5001/websocket/", + "baseUrl": "http://11.100.6.182:5006/", + "wsUrl": "ws://11.100.6.182:5006/websocket/", "mainPage": "http://111.198.10.15:11404/dcms/#", "amapSecurityCode": "182a2c5889f7fe6d90546d9b8f4781ad", "amapKey": "1733551f35b56f6d8e9c0a9d4c2523b", diff --git a/public/config/project.configzq.json b/public/config/project.configzq.json index 4021326..e3c60d3 100644 --- a/public/config/project.configzq.json +++ b/public/config/project.configzq.json @@ -17,5 +17,6 @@ "provinceCode":"360000", "cityCode":"361000", "areaCode":"361024", - "arcgisUrl": "http://111.198.10.15:13002/arcgis/rest/services/zq_publish/MapServer/" + "arcgisUrl": "http://124.128.226.219:5004/arcgis/rest/services/zqgis/MapServer/" } + diff --git a/public/index.html b/public/index.html index 33f84ea..85e5a80 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@ <%= htmlWebpackPlugin.options.title %> - +