| | |
| | | <template> |
| | | <div> |
| | | <div id="app"></div> |
| | | <div id="app"> |
| | | <viewer></viewer> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | loadBaimo, |
| | | loadLW, |
| | | loaddian, |
| | | addMouseEvent, |
| | | addRightMouseEvent, |
| | | loadYH, |
| | | juhe, |
| | | addMpt, |
| | | SPPM, |
| | | light, |
| | | } from "./utils/work"; |
| | | import bus from "./utils/bus"; |
| | | import { getVectorList, getRadio } from "./api/http"; |
| | | import viewer from "./components/viewer"; |
| | | export default { |
| | | name: "App", |
| | | components: { |
| | | viewer: viewer, |
| | | }, |
| | | data() { |
| | | return {}; |
| | | }, |
| | | methods: { |
| | | init() { |
| | | const that = this; |
| | | window.currentsubindex = 1; |
| | | let _core = new SmartEarth.Core(); |
| | | window.tedp = new this.$trame({ |
| | | elem: "app", |
| | | width: 4992, |
| | | prop: [0, 0], |
| | | height: 2560, |
| | | navtop: 300, |
| | | gisType: "hf", |
| | | gisrefer: { |
| | | //Â configLink:Â "/static/sceneConfig_arcgis.json", |
| | | //Â gisserver:Â "http://172.82.4.53:8080/", |
| | | cesium: Cesium, |
| | | options: { |
| | | // // è
¾è®¯å°å¾ |
| | | // imageryProvider: new Cesium.ArcGisMapServerImageryProvider({ |
| | | // url: |
| | | // "https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer", |
| | | // enablePickFeatures: false, |
| | | // usePreCachedTilesIfAvailable: false, |
| | | // tilingScheme: _core.getOffsetTilingScheme() // åç§»çº æ£ |
| | | // }), |
| | | scene3DOnly: false, |
| | | sceneModePicker: false, |
| | | }, |
| | | tree: null, |
| | | }, |
| | | gisInit: (webgis) => { |
| | | //è¿åå°å¾å¯¹è±¡ |
| | | window.Sgworld = webgis; |
| | | window.sgworld = webgis; |
| | | window.Viewer = webgis.Viewer; |
| | | window.viewer = webgis.Viewer; |
| | | window.Cesium = Cesium; |
| | | |
| | | window.layers = window.sgworld.Viewer.scene.imageryLayers; |
| | | // const blackMarble = layers.addImageryProvider( |
| | | // new Cesium.IonImageryProvider({ assetId: 3812 }) |
| | | // ); |
| | | |
| | | // blackMarble.alpha = 0.0; |
| | | // blackMarble.brightness = 2.0; |
| | | // å°çé¢è² |
| | | Viewer.scene.globe.baseColor = |
| | | Cesium.Color.fromCssColorString("#272d39"); |
| | | // //é£åå¹¿å· |
| | | // window.Viewer.camera.flyTo({ |
| | | // destination: Cesium.Cartesian3.fromDegrees( |
| | | // 113.29503528791071, |
| | | // 23.104708355136264, |
| | | // 4109.8492337442767 |
| | | // ), |
| | | // orientation: { |
| | | // heading: 0.8349372341578318, |
| | | // pitch: -0.85222154573481174, |
| | | // roll: 0, |
| | | // }, |
| | | // }); |
| | | window.Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees( |
| | | 120.37492388223879, |
| | | 30.91054534935262, |
| | | 97611.15133443385 |
| | | ), |
| | | orientation: { |
| | | heading: 1.249372341578318, |
| | | pitch: -0.7222154573481174, |
| | | roll: 0, |
| | | }, |
| | | }); |
| | | let urldian1 = |
| | | "http://183.162.245.49:8099/geoserver/SHwuxiandian/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=SHwuxiandian:1GZ_POI&maxFeatures=50&outputFormat=application%2Fjson"; |
| | | let urldian = |
| | | "http://183.162.245.49:8099/geoserver/SHP/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=SHP:SH_POI1&maxFeatures=50&outputFormat=application%2Fjson"; |
| | | try { |
| | | loaddian(urldian1, "[TE_DESC]", "[height]"); |
| | | loaddian(urldian, "[name]", "[Height]"); |
| | | loadBaimo(1); |
| | | loadLW(); |
| | | addRightMouseEvent(); |
| | | SPPM(); |
| | | loadYH(); |
| | | juhe(true, "çæµç«"); |
| | | addMpt(true); |
| | | } catch (error) {} |
| | | //å¼å¯æ¥ç
§ |
| | | viewer.scene.globe.enableLighting = false; |
| | | viewer.shadows = false; |
| | | addMouseEvent(); |
| | | light(); |
| | | getVectorList().then((res) => { |
| | | if (res.message === "Success") { |
| | | let region = res.rows; |
| | | region.forEach((item) => { |
| | | let arr = []; |
| | | JSON.parse(item.vlatlngs).forEach((item2) => { |
| | | arr.push([item2[1], item2[0]]); |
| | | }); |
| | | item.vlatlngs = JSON.stringify(arr); |
| | | }); |
| | | bus.$emit("areaData", region); |
| | | } |
| | | }); |
| | | //è·åæ çº¿çµæ°æ® |
| | | getRadio().then((res) => { |
| | | if (res.message === "Success") { |
| | | let radio = res.rows; |
| | | bus.$emit("radioData", radio); |
| | | console.log(radio); |
| | | } |
| | | }); |
| | | // window.Viewer.shadows = false; |
| | | //æ·±åº¦æ£æµ |
| | | window.Sgworld.Analysis.depthTestAgainstTerrain(true); |
| | | /* |
| | | * æ¾åç¹å»äºä»¶ |
| | | */ |
| | | // window.Viewer.scene.primitives.add(baimo); |
| | | //å¿åè¾¹ç,ç½æ ¼ |
| | | }, |
| | | subClick(index) { |
| | | let showindex; |
| | | switch (index) { |
| | | case 0: |
| | | showindex = 1; |
| | | break; |
| | | case 1: |
| | | showindex = 2; |
| | | break; |
| | | case 2: |
| | | showindex = 3; |
| | | break; |
| | | case 3: |
| | | showindex = 4; |
| | | break; |
| | | case 4: |
| | | showindex = 5; |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | bus.$emit("showindex", showindex); |
| | | }, |
| | | prop: [970, 970], |
| | | nav: { |
| | | navTop: () => import("@/components/top/navTop"), |
| | | }, |
| | | showSub: true, |
| | | compss: [ |
| | | { |
| | | sub: "é¢è°±æå¿åæ", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "é¢è°±ä½¿ç¨è¯ä¼°", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "è¦çè½åè¯ä¼°", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "æ°æ®ç®¡ç", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "æ¥ååº", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | ], |
| | | module: { |
| | | menubtns: () => import("@/components/props/btns"), //åºé¨5æ æé® |
| | | showmodule: () => import("@/components/props/showmodule"), //æ°´é¢æ¨¡åå å |
| | | showtuli: () => import("@/components/props/tuli"), //æ°´é¢æ¨¡åå å |
| | | |
| | | fieldStrength: () => import("@/components/props/fieldStrength"), //åºå¼ºè¦çè¯ä¼° |
| | | situationAnalysis: () => |
| | | import("@/components/props/situationAnalysis"), //çµç£ç¯å¢æå¿ |
| | | jcz: () => import("@/components/props/jczBox"), //çæµç« |
| | | jcw: () => import("@/components/props/jcwBox"), //çæµç½ |
| | | FreefrequencyAnalysis: () => |
| | | import("@/components/props/FreefrequencyAnalysis"), //空é²é¢çèµæºåæ |
| | | FrequencyBand: () => import("@/components/props/FrequencyBand"), //颿®µå ç¨åº¦åæ |
| | | DynamicMap: () => import("@/components/props/bottom"), //æå¿å¾å¨æææ¾ |
| | | freeAnalyse: () => import("@/components/props/freeAnalyse"), //空é²èµæºå±ç¤º |
| | | moreTZ: () => import("@/components/props/moreTZ"), //空é²èµæºå±ç¤º |
| | | }, |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | #app { |
| | | font-family: "Avenir", Helvetica, Arial, sans-serif; |
| | | -webkit-font-smoothing: antialiased; |
| | | -moz-osx-font-smoothing: grayscale; |
| | | text-align: center; |
| | | color: #2c3e50; |
| | | margin-top: 60px; |
| | | user-select: none; |
| | | } |
| | | #toolTip { |
| | | padding: 13px !important; |
| | | background: url("../static/img/gridManagement/è¾¹æ¡3.png") !important; |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100% !important; |
| | | } |
| | | |
| | | .toolitem { |
| | | width: 100%; |
| | | height: 32px; |
| | | line-height: 32px; |
| | | font-size: 14px; |
| | | } |
| | | .toolitem span + span { |
| | | color: #f7f330; |
| | | } |
| | | .nav { |
| | | background: url() !important; |
| | | } |
| | | /* çåå
¨å±æ ·å¼ */ |
| | | .divPoint-custom { |
| | | text-align: center; |
| | | padding: 5px 30px; |
| | | margin: 0; |
| | | color: #fff; |
| | | background: linear-gradient(rgb(7 10 203 / 75%), rgb(16 238 220)); |
| | | border-radius: 5px; |
| | | max-height: 130px; |
| | | user-select: none; |
| | | } |
| | | .divPoint-custom:after { |
| | | content: ""; |
| | | position: absolute; |
| | | bottom: -60px; |
| | | left: calc(50% - 3px); |
| | | display: block; |
| | | width: 3px; |
| | | height: 60px; |
| | | border-right: 3px solid #2bcdbb; |
| | | } |
| | | .te-right .te-left { |
| | | width: 0px !important; |
| | | } |
| | | </style> |
| | |
| | | background-size: 100% 100% !important; |
| | | width: 2100px; |
| | | height: 80px; |
| | | display: flex; |
| | | /* display: flex; */ |
| | | display: none; |
| | | justify-content: space-around; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <div id="app1"></div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | loadBaimo, |
| | | loadLW, |
| | | loaddian, |
| | | addMouseEvent, |
| | | addRightMouseEvent, |
| | | loadYH, |
| | | juhe, |
| | | addMpt, |
| | | SPPM, |
| | | light, |
| | | } from "@/utils/work"; |
| | | import bus from "@/utils/bus"; |
| | | import { getVectorList, getRadio } from "@/api/http"; |
| | | export default { |
| | | name: "App", |
| | | data() { |
| | | return {}; |
| | | }, |
| | | methods: { |
| | | init() { |
| | | const that = this; |
| | | window.currentsubindex = 1; |
| | | let _core = new SmartEarth.Core(); |
| | | window.tedp = new this.$trame({ |
| | | elem: "app1", |
| | | width: 4992, |
| | | prop: [0, 0], |
| | | height: 2560, |
| | | navtop: 300, |
| | | gisType: "hf", |
| | | gisrefer: { |
| | | //Â configLink:Â "/static/sceneConfig_arcgis.json", |
| | | //Â gisserver:Â "http://172.82.4.53:8080/", |
| | | cesium: Cesium, |
| | | options: { |
| | | // // è
¾è®¯å°å¾ |
| | | // imageryProvider: new Cesium.ArcGisMapServerImageryProvider({ |
| | | // url: |
| | | // "https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer", |
| | | // enablePickFeatures: false, |
| | | // usePreCachedTilesIfAvailable: false, |
| | | // tilingScheme: _core.getOffsetTilingScheme() // åç§»çº æ£ |
| | | // }), |
| | | scene3DOnly: false, |
| | | sceneModePicker: false, |
| | | }, |
| | | tree: null, |
| | | }, |
| | | gisInit: (webgis) => { |
| | | //è¿åå°å¾å¯¹è±¡ |
| | | window.Sgworld = webgis; |
| | | window.sgworld = webgis; |
| | | window.Viewer = webgis.Viewer; |
| | | window.viewer = webgis.Viewer; |
| | | window.Cesium = Cesium; |
| | | |
| | | window.layers = window.sgworld.Viewer.scene.imageryLayers; |
| | | // const blackMarble = layers.addImageryProvider( |
| | | // new Cesium.IonImageryProvider({ assetId: 3812 }) |
| | | // ); |
| | | |
| | | // blackMarble.alpha = 0.0; |
| | | // blackMarble.brightness = 2.0; |
| | | // å°çé¢è² |
| | | Viewer.scene.globe.baseColor = |
| | | Cesium.Color.fromCssColorString("#272d39"); |
| | | // //é£åå¹¿å· |
| | | // window.Viewer.camera.flyTo({ |
| | | // destination: Cesium.Cartesian3.fromDegrees( |
| | | // 113.29503528791071, |
| | | // 23.104708355136264, |
| | | // 4109.8492337442767 |
| | | // ), |
| | | // orientation: { |
| | | // heading: 0.8349372341578318, |
| | | // pitch: -0.85222154573481174, |
| | | // roll: 0, |
| | | // }, |
| | | // }); |
| | | window.Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees( |
| | | 120.37492388223879, |
| | | 30.91054534935262, |
| | | 97611.15133443385 |
| | | ), |
| | | orientation: { |
| | | heading: 1.249372341578318, |
| | | pitch: -0.7222154573481174, |
| | | roll: 0, |
| | | }, |
| | | }); |
| | | let urldian1 = |
| | | "http://183.162.245.49:8099/geoserver/SHwuxiandian/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=SHwuxiandian:1GZ_POI&maxFeatures=50&outputFormat=application%2Fjson"; |
| | | let urldian = |
| | | "http://183.162.245.49:8099/geoserver/SHP/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=SHP:SH_POI1&maxFeatures=50&outputFormat=application%2Fjson"; |
| | | try { |
| | | loaddian(urldian1, "[TE_DESC]", "[height]"); |
| | | loaddian(urldian, "[name]", "[Height]"); |
| | | loadBaimo(1); |
| | | loadLW(); |
| | | addRightMouseEvent(); |
| | | SPPM(); |
| | | loadYH(); |
| | | juhe(true, "çæµç«"); |
| | | addMpt(true); |
| | | } catch (error) {} |
| | | //å¼å¯æ¥ç
§ |
| | | viewer.scene.globe.enableLighting = false; |
| | | viewer.shadows = false; |
| | | addMouseEvent(); |
| | | light(); |
| | | getVectorList().then((res) => { |
| | | if (res.message === "Success") { |
| | | let region = res.rows; |
| | | region.forEach((item) => { |
| | | let arr = []; |
| | | JSON.parse(item.vlatlngs).forEach((item2) => { |
| | | arr.push([item2[1], item2[0]]); |
| | | }); |
| | | item.vlatlngs = JSON.stringify(arr); |
| | | }); |
| | | bus.$emit("areaData", region); |
| | | } |
| | | }); |
| | | //è·åæ çº¿çµæ°æ® |
| | | getRadio().then((res) => { |
| | | if (res.message === "Success") { |
| | | let radio = res.rows; |
| | | bus.$emit("radioData", radio); |
| | | console.log(radio); |
| | | } |
| | | }); |
| | | // window.Viewer.shadows = false; |
| | | //æ·±åº¦æ£æµ |
| | | window.Sgworld.Analysis.depthTestAgainstTerrain(true); |
| | | /* |
| | | * æ¾åç¹å»äºä»¶ |
| | | */ |
| | | // window.Viewer.scene.primitives.add(baimo); |
| | | //å¿åè¾¹ç,ç½æ ¼ |
| | | }, |
| | | subClick(index) { |
| | | let showindex; |
| | | switch (index) { |
| | | case 0: |
| | | showindex = 1; |
| | | break; |
| | | case 1: |
| | | showindex = 2; |
| | | break; |
| | | case 2: |
| | | showindex = 3; |
| | | break; |
| | | case 3: |
| | | showindex = 4; |
| | | break; |
| | | case 4: |
| | | showindex = 5; |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | bus.$emit("showindex", showindex); |
| | | }, |
| | | prop: [970, 970], |
| | | nav: { |
| | | navTop: () => import("@/components/top/navTop"), |
| | | }, |
| | | showSub: true, |
| | | compss: [ |
| | | { |
| | | sub: "é¢è°±æå¿åæ", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "é¢è°±ä½¿ç¨è¯ä¼°", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "è¦çè½åè¯ä¼°", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "æ°æ®ç®¡ç", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | { |
| | | sub: "æ¥ååº", //ç½æ ¼ç®¡ç |
| | | left: { |
| | | wgglleft: () => import("@/components/wggl/left/index"), |
| | | }, |
| | | right: { |
| | | wgglright: () => import("@/components/wggl/right/index"), |
| | | }, |
| | | }, |
| | | ], |
| | | module: { |
| | | menubtns: () => import("@/components/props/btns"), //åºé¨5æ æé® |
| | | showmodule: () => import("@/components/props/showmodule"), //æ°´é¢æ¨¡åå å |
| | | showtuli: () => import("@/components/props/tuli"), //æ°´é¢æ¨¡åå å |
| | | |
| | | fieldStrength: () => import("@/components/props/fieldStrength"), //åºå¼ºè¦çè¯ä¼° |
| | | situationAnalysis: () => |
| | | import("@/components/props/situationAnalysis"), //çµç£ç¯å¢æå¿ |
| | | jcz: () => import("@/components/props/jczBox"), //çæµç« |
| | | jcw: () => import("@/components/props/jcwBox"), //çæµç½ |
| | | FreefrequencyAnalysis: () => |
| | | import("@/components/props/FreefrequencyAnalysis"), //空é²é¢çèµæºåæ |
| | | FrequencyBand: () => import("@/components/props/FrequencyBand"), //颿®µå ç¨åº¦åæ |
| | | DynamicMap: () => import("@/components/props/bottom"), //æå¿å¾å¨æææ¾ |
| | | freeAnalyse: () => import("@/components/props/freeAnalyse"), //空é²èµæºå±ç¤º |
| | | moreTZ: () => import("@/components/props/moreTZ"), //空é²èµæºå±ç¤º |
| | | }, |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | #app1 { |
| | | font-family: "Avenir", Helvetica, Arial, sans-serif; |
| | | -webkit-font-smoothing: antialiased; |
| | | -moz-osx-font-smoothing: grayscale; |
| | | text-align: center; |
| | | color: #2c3e50; |
| | | margin-top: 60px; |
| | | user-select: none; |
| | | } |
| | | #toolTip { |
| | | padding: 13px !important; |
| | | background: url("../../static/img/gridManagement/è¾¹æ¡3.png") !important; |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100% !important; |
| | | } |
| | | |
| | | .toolitem { |
| | | width: 100%; |
| | | height: 32px; |
| | | line-height: 32px; |
| | | font-size: 14px; |
| | | } |
| | | .toolitem span + span { |
| | | color: #f7f330; |
| | | } |
| | | .nav { |
| | | background: url() !important; |
| | | } |
| | | /* çåå
¨å±æ ·å¼ */ |
| | | .divPoint-custom { |
| | | text-align: center; |
| | | padding: 5px 30px; |
| | | margin: 0; |
| | | color: #fff; |
| | | background: linear-gradient(rgb(7 10 203 / 75%), rgb(16 238 220)); |
| | | border-radius: 5px; |
| | | max-height: 130px; |
| | | user-select: none; |
| | | } |
| | | .divPoint-custom:after { |
| | | content: ""; |
| | | position: absolute; |
| | | bottom: -60px; |
| | | left: calc(50% - 3px); |
| | | display: block; |
| | | width: 3px; |
| | | height: 60px; |
| | | border-right: 3px solid #2bcdbb; |
| | | } |
| | | .te-right .te-left { |
| | | width: 0px !important; |
| | | } |
| | | </style> |