diff --git a/src/main/resources/static/css/synthesisQuery/digitalSignage.css b/src/main/resources/static/css/synthesisQuery/digitalSignage.css new file mode 100644 index 0000000..adc6b1c --- /dev/null +++ b/src/main/resources/static/css/synthesisQuery/digitalSignage.css @@ -0,0 +1,138 @@ +html { + width: 100%; + height: 100%; + margin: 0; +} + +body { + margin: 0; + font-family: "Alibaba PuHuiTi R"; + height: 98%; +} + +/** 去除百度地图的水印和logo */ +.BMap_cpyCtrl, +.anchorBL { + display: none; +} + +.layout { + display: flex; + justify-content: center; + align-items: center; +} + +#main-box { + position: relative; + width: 100%; + height: 100%; + padding: 0 1% 0 1%; + box-sizing: border-box; + background-color: #fff; + border-radius: 5px; + font-weight: normal; +} + +#map-box { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} + +.scroll-box, +.legend-box { + position: absolute; + background: rgba(0, 0, 0, 0.5); + color: #fff; + z-index: 999; +} + +/* 左上角滚动盒子 */ +.scroll-box { + top: 15px; + left: 15px; + width: 460px; + height: 180px; +} + +.scroll-box-title, +.scroll-box-content { + width: 100%; +} + +.scroll-box-title { + height: 30px; + line-height: 30px; + font-weight: bold; +} + +.scroll-box-content { + height: 150px; + /* overflow-y: auto; */ + overflow: hidden; +} + +.flex-box { + padding: 6px 0; + display: flex; + box-sizing: border-box; +} + +.flex-box span:first-child { + width: 20%; +} + +.flex-box span:nth-child(2) { + width: 30%; +} + +.flex-box span:last-child { + width: 50%; +} + +.flex-box span { + text-align: center; +} + +.content-item { + border-bottom: 1px solid rgb(45, 187, 223); + font-size: 14px; +} + +.content-item span { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.content-item span i { + padding: 1px 0; + font-style: normal; +} + +/* 左下角图例 */ +.legend-box { + bottom: 15px; + left: 15px; + width: 140px; + height: 252px; + display: flex; + flex-direction: column; + justify-content: space-around; + border-radius: 10px; +} + +.legend-box .legend-item { + display: flex; + align-items: center; + justify-content: space-around; + font-size: 13px; +} + +.legend-box .legend-item img { + width: 18px; + height: 18px; +} diff --git a/src/main/resources/static/img/digitalSignage/blue.png b/src/main/resources/static/img/digitalSignage/blue.png new file mode 100644 index 0000000..fcc276d Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/blue.png differ diff --git a/src/main/resources/static/img/digitalSignage/green.png b/src/main/resources/static/img/digitalSignage/green.png new file mode 100644 index 0000000..b4adc9b Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/green.png differ diff --git a/src/main/resources/static/img/digitalSignage/orange.png b/src/main/resources/static/img/digitalSignage/orange.png new file mode 100644 index 0000000..38052e4 Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/orange.png differ diff --git a/src/main/resources/static/img/digitalSignage/sd.png b/src/main/resources/static/img/digitalSignage/sd.png new file mode 100644 index 0000000..d5fcb25 Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/sd.png differ diff --git a/src/main/resources/static/img/digitalSignage/white.png b/src/main/resources/static/img/digitalSignage/white.png new file mode 100644 index 0000000..40276ba Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/white.png differ diff --git a/src/main/resources/static/img/digitalSignage/yellow.png b/src/main/resources/static/img/digitalSignage/yellow.png new file mode 100644 index 0000000..749b868 Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/yellow.png differ diff --git a/src/main/resources/static/img/digitalSignage/zt_green.png b/src/main/resources/static/img/digitalSignage/zt_green.png new file mode 100644 index 0000000..927352b Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/zt_green.png differ diff --git a/src/main/resources/static/img/digitalSignage/zt_purple.png b/src/main/resources/static/img/digitalSignage/zt_purple.png new file mode 100644 index 0000000..c803931 Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/zt_purple.png differ diff --git a/src/main/resources/static/img/digitalSignage/zt_red.png b/src/main/resources/static/img/digitalSignage/zt_red.png new file mode 100644 index 0000000..7ac847c Binary files /dev/null and b/src/main/resources/static/img/digitalSignage/zt_red.png differ diff --git a/src/main/resources/static/js/synthesisQuery/digitalSignage.js b/src/main/resources/static/js/synthesisQuery/digitalSignage.js new file mode 100644 index 0000000..b7ec05b --- /dev/null +++ b/src/main/resources/static/js/synthesisQuery/digitalSignage.js @@ -0,0 +1,221 @@ +const map = new BMapGL.Map("map-box"); // 创建Map实例 +map.centerAndZoom(new BMapGL.Point(116.404, 39.915), 11); // 初始化地图,设置中心点坐标和地图级别 +map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放 + +// 获取左上角滚动数据源 +function getScrollData() { + const scrollData = [ + { + name: "跨线路", + location: "N11-N12999", + content: [ + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + ], + }, + { + name: "跨越地点", + location: "N11-N12336", + content: [ + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + ], + }, + { + name: "跨越地点", + location: "N11-N128885", + content: [ + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + ], + }, + { + name: "跨越地点", + location: "N11-N128773", + content: [ + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + { + name: "垂直净度", + value: "9896", + }, + ], + }, + ]; + + let scrollBox = $(".content-wrapper"); + let innerHtml = ""; + scrollData.forEach((item, index) => { + // 跨域描述内容 + let describeHtml = ""; + if (item.content && item.content.length > 0) { + item.content.forEach((d, dIndex) => { + describeHtml += `${d.name}:${d.value}`; + }); + } + + // 单行数据 + innerHtml += `