From 045664f8aaa3f4e90aaf9cf7cde649c9f3c26392 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Wed, 6 Nov 2024 17:03:24 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BA=8B=E4=BB=B6=E5=A4=84=E7=BD=AE=E5=9C=B0?= =?UTF-8?q?=E7=82=B9=E6=89=93=E7=82=B9=E5=9B=BE=E6=A0=87=E8=B0=83=E6=95=B4?= =?UTF-8?q?=202.=E6=9B=B4=E6=96=B0GIS=E6=96=87=E6=A1=A3=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/codehelp_readme.md | 3 +- .../CrowdnessIndicatorRankings/index.vue | 40 ++++++++++++++----- 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/ruoyi-ui/codehelp_readme.md b/ruoyi-ui/codehelp_readme.md index 90a0fe77..0ccdf448 100644 --- a/ruoyi-ui/codehelp_readme.md +++ b/ruoyi-ui/codehelp_readme.md @@ -13,7 +13,8 @@ - 通用视频组件,用户接入视频流`src\views\JiHeExpressway\components\VideoMulti\index.vue` 3. 较为复杂的页面只有首页的地图和缩略图相关。地图采用高速提供的接口,缩略图采用antv/x6。 - - 地图文档:【腾讯文档】SuperMap-GIS组件使用文档 https://docs.qq.com/doc/DY3FYV1RaV2lLeXhO + - 地图文档:【腾讯文档】SuperMap-GIS组件使用文档 + https://docs.qq.com/doc/DY2R2ZnBacUJjR1Rm - 缩略图文档:[X6 图编辑引擎 | AntV](https://x6.antv.vision/zh) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue index 17555071..d648f07d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/CrowdnessIndicatorRankings/index.vue @@ -168,7 +168,7 @@ export default { ); }); } else { - Vue.prototype.mapIns.removeLayerByName('lineLayer'); + Vue.prototype.mapIns.removeLayerByName('lineLayer'); } // // this.$refs.MapContainerRef.showRoadConditions(findIndex === -1); @@ -223,12 +223,16 @@ export default { points.push({ type: 'event', longitude: parseFloat(e.longitude), - latitude: parseFloat(e.latitude), + latitude: parseFloat(e.latitude), iconUrl: iconUrl, - offset: [0,-48], - size: [42,100], - GGoffsetX: 0, - GGoffsetY: 20, + offset: [0,-48], + size: [42,100], + GGoffsetX: 0, + GGoffsetY: -5, + GGimgOffset:[0,0], + GGimgsize:[42,103], + GGstakeOffsetY:45, + stakeOffsetY:25, otherInfo: { ext: null, name: e.deviceName, @@ -289,7 +293,7 @@ export default { e = null; }); } - + } }, handledDialogCamera(bool) { @@ -326,14 +330,22 @@ export default { iconUrl = (e.useState ? iconb : iconb_f); } else if(e.childType==='2-2' || e.childType==='2-4'){ iconUrl = (e.useState ? iconc : iconc_f); - } + } points.push({ type: 'event', longitude: parseFloat(e.longitude), - latitude: parseFloat(e.latitude), + latitude: parseFloat(e.latitude), // iconUrl: e.useState ? icon : icon_f, iconUrl: iconUrl, + offset: [0,-48], + size: [42,100], + GGoffsetX: 0, + GGoffsetY: -5, + GGimgOffset:[0,0], + GGimgsize:[42,103], + GGstakeOffsetY:45, + stakeOffsetY:25, otherInfo: { ext: null, name: e.deviceName, @@ -433,7 +445,7 @@ export default { if (this.mapContainer === 'BMapContainer') { const icon = require(`@screen/images/layerb/事件专题/${eventName}_active.svg`); const center = [parseFloat(longitude), parseFloat(dimension)] - + mapInfo.addPointByArr( { pointList: [ @@ -442,6 +454,14 @@ export default { longitude: center[0], //点坐标经度 【必传字段】 latitude: center[1], //点坐标纬度 【必传字段】 iconUrl: icon, // 图标 【必传字段】 + offset: [0,-48], + size: [42,100], + GGoffsetX: 0, + GGoffsetY: -5, + GGimgOffset:[0,0], + GGimgsize:[42,103], + GGstakeOffsetY:45, + stakeOffsetY:25, otherInfo: { name: '123' }