index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. <template>
  2. <div class="base-container no-events">
  3. <fnHeader showDate></fnHeader>
  4. <div class="content">
  5. <navigation @handleTab="handleTab"></navigation>
  6. <div class="left yes-events">
  7. <tool-list
  8. direction="left"
  9. :list="leftToolList"
  10. @handleActive="handleActiveLeft"
  11. ></tool-list>
  12. <component :is="components[currentComponent]" />
  13. <!-- 箭头 -->
  14. <div class="arrow" @click="handleShrink">
  15. <el-icon class="icon" color="#141414"><DArrowLeft /></el-icon>
  16. </div>
  17. </div>
  18. <div class="home-bottom">
  19. <time-line class="time-wrap yes-events"></time-line>
  20. <img class="fly-icon" src="@/assets/images/home/fly-icon.png" alt="">
  21. <!-- <div class="log-box yes-events">
  22. <chart-box class="overflow">
  23. <template #title-name>
  24. <div class="box-name" @click="handleSelectArea">果园日志</div>
  25. </template>
  26. <div class="log-content">
  27. 2月13日,共抽样193棵树,拍摄了193张照片,{{indicatorChartData.content}}
  28. </div>
  29. <div class="chart-wrap">
  30. <indicator-chart :key="0 + 'log'" type="feature" :chartData="indicatorChartData"></indicator-chart>
  31. </div>
  32. </chart-box>
  33. </div> -->
  34. <!-- <div class="file-box yes-events">
  35. <chart-box name="果园档案">
  36. <template #title-right>
  37. <el-icon class="arrow-icon cursor-pointer" color="#141414"
  38. ><DArrowLeft
  39. /></el-icon>
  40. <div class="edit-btn cursor-pointer" @click="toFilePage">编辑</div>
  41. </template>
  42. <file-bar></file-bar>
  43. </chart-box>
  44. </div> -->
  45. </div>
  46. <div class="right yes-events">
  47. <div class="list">
  48. <chart-box name="农事列表" arrow="arrow-left" :class="{'list-wrap': rightIndex===0}">
  49. <template v-if="rightIndex===0">
  50. <!-- <album></album> -->
  51. <!-- <img class="tabs" src="@/assets/images/home/ns-tabs.png" alt="">
  52. <div class="img-box">
  53. <img @click="handleAct(item)" v-for="item in 2" :key="item" :src="require(`@/assets/images/home/0${act<=2&&act==item?item+'-act':item}.png`)" alt="">
  54. </div> -->
  55. </template>
  56. <template v-if="rightIndex===1">
  57. <div class="img-box1">
  58. <img src="@/assets/images/home/fh01.png" alt="">
  59. <img src="@/assets/images/home/fh02.png" alt="">
  60. </div>
  61. </template>
  62. <template v-if="rightIndex===2">
  63. <div class="btn-wrap">
  64. <div :class="{active:btnIndex===0}" @click="handleBtn(0)">{{btnIndex===0&&btnName!=''?'采样分区:'+ btnName:'选择采样分区'}}</div>
  65. <div :class="{active:btnIndex===1}" @click="handleBtn(1)">{{btnIndex===1&&btnName!=''?'单树编号:'+ btnName:'选择树'}}</div>
  66. </div>
  67. <div class="img-box2" v-show="showPoint">
  68. <img v-if="showType==='point'" src="@/assets/images/home/line-chart.png" alt="">
  69. <img v-else src="@/assets/images/home/line-chart2.png" alt="">
  70. <img src="@/assets/images/home/fh01.png" alt="">
  71. </div>
  72. <div class="img-box2" v-show="!showPoint">
  73. <img v-if="showType==='point'" src="@/assets/images/home/line-chart1.png" alt="">
  74. <img v-else src="@/assets/images/home/line-chart3.png" alt="">
  75. <img src="@/assets/images/home/fh02.png" alt="">
  76. </div>
  77. </template>
  78. </chart-box>
  79. </div>
  80. <tool-list direction="right" :list="rightToolList" @handleActive="handleActiveRight"></tool-list>
  81. </div>
  82. <!-- 图例 -->
  83. <img class="legend yes-events" src="@/assets/images/home/legend.png" alt="">
  84. </div>
  85. </div>
  86. <div ref="mapRef" class="bottom-map"></div>
  87. <!-- 图片弹窗 -->
  88. <PicturePreview
  89. :imageUrl="urls"
  90. :curIndex="urlsIndex"
  91. ></PicturePreview>
  92. <album-carousel></album-carousel>
  93. <PdfDialog title="果园报告" ></PdfDialog>
  94. </template>
  95. <script setup>
  96. import { onMounted, onUnmounted, ref } from "vue";
  97. import config from "@/api/config.js"
  98. import timeLine from "@/components/timeLine.vue";
  99. import PicturePreview from "@/components/PicturePreview.vue";
  100. import fnHeader from "@/components/fnHeader.vue";
  101. import navigation from "@/components/navigation.vue";
  102. import chartBox from "@/components/chartBox.vue";
  103. import toolList from "@/components/toolList.vue";
  104. import fileBar from "@/components/fileBar.vue";
  105. import HomeMap from "./map/homeMap";
  106. import homePage from "./components/homePage.vue";
  107. import weatherPage from "./components/weatherPage.vue";
  108. import phenologyPage from "./components/phenologyPage.vue";
  109. import indicatorChart from "./components/indicatorChart.vue";
  110. import { useRouter } from "vue-router";
  111. import SamplePointLayer from "./map/samplePointLayer";
  112. import {useStore} from "vuex";
  113. import RegionLayer from "./map/regionLayer";
  114. import BlueRegionLayer from "./map/blueRegionLayer";
  115. import eventBus from "@/api/eventBus";
  116. import AlbumCarousel from "./album_compoents/albumCarousel.vue";
  117. import album from "./album/index.vue";
  118. import PdfDialog from "../../components/PdfDialog"
  119. let store = useStore()
  120. const components = {
  121. homePage,
  122. weatherPage,
  123. phenologyPage,
  124. };
  125. //当前农场
  126. const currentFarm = {
  127. id: store.getters.userinfo.curFarmId,
  128. name: store.getters.userinfo.curFarmName,
  129. }
  130. //当前区域
  131. const currentRegion = {
  132. id: null,
  133. name: null
  134. }
  135. let homeMap = new HomeMap();
  136. let samplePointLayer = null
  137. let regionLayer = null
  138. let blueRegionLayer = null
  139. const router = useRouter();
  140. const mapRef = ref();
  141. onMounted(() => {
  142. homeMap.initMap("POINT(113.61448114737868 23.585550924763083)", mapRef.value);
  143. // homeMap.initMap(store.getters.userinfo.location, mapRef.value);
  144. // regionLayer = new RegionLayer(homeMap.kmap.map, currentFarm, currentRegion)
  145. samplePointLayer = new SamplePointLayer(homeMap.kmap.map)
  146. blueRegionLayer = new BlueRegionLayer(homeMap.kmap)
  147. getYellow()
  148. getFarmLog()
  149. //区域切换监听事件
  150. eventBus.on('area:id',areaId)
  151. //选项卡子项事件监听
  152. eventBus.on('handleTabItem',handleTabItem)
  153. });
  154. onUnmounted(()=>{
  155. eventBus.off('area:id',areaId)
  156. eventBus.off('handleTabItem',handleTabItem)
  157. })
  158. const blueList = ref([])
  159. const getBlueRegionList = (callback) =>{
  160. VE_API.farm.blueRegionList({farmId:organId.value,regionId:regionId.value}).then(({ data }) => {
  161. blueList.value = data.map(item =>{
  162. let color = 'rgba(255, 255, 255, 0.5)' //失效区域
  163. if(item.status===2){ //物候期风险
  164. color = 'rgba(63, 255, 53, 0.5)'
  165. }
  166. if(item.status===3){ //生长异常
  167. color = 'rgba(255, 252, 61, 0.5)'
  168. }
  169. if(item.status===4){ //病虫害
  170. color = 'rgba(255, 73, 73, 0.5)'
  171. }
  172. return {
  173. ...item,
  174. color
  175. }
  176. })
  177. blueRegionLayer.initData(blueList.value)
  178. callback && callback()
  179. });
  180. }
  181. const organId = ref(null)
  182. const regionId = ref(null)
  183. const tabName = ref('')
  184. const tabId = ref(0)
  185. //选项卡事件监听
  186. const handleTab = async ({name,id,isUpdate,params}) =>{
  187. tabName.value = name
  188. tabId.value = id
  189. if(id===0){
  190. getBlueRegionList(()=>{
  191. if(isUpdate){
  192. handleTabItem(params)
  193. }
  194. })
  195. }else{
  196. getFarmIndexReport((()=>{
  197. if(isUpdate){
  198. handleTabItem(params)
  199. }
  200. }))
  201. }
  202. }
  203. //区域切换监听事件
  204. function areaId({areaId,farmId}){
  205. organId.value = farmId
  206. regionId.value = areaId
  207. samplePointLayer.initData(farmId,areaId)
  208. if(tabId.value===0){
  209. getBlueRegionList()
  210. }else{
  211. getFarmIndexReport()
  212. }
  213. }
  214. //选项卡子项事件监听
  215. const handleTabItem = (e) =>{
  216. if(reportData.value.blueZoneList){
  217. const index = reportData.value.blueZoneList.findIndex(item => item.key===e)
  218. let arr = []
  219. if(reportData.value.blueZoneList.length){
  220. arr = blueListConvert(reportData.value.blueZoneList[index].obj,index)
  221. }
  222. blueRegionLayer.initData(arr,'87')
  223. }
  224. }
  225. const reportData = ref({})
  226. const blueListConvert = (data,index)=>{
  227. const list = []
  228. for (let key in data) {
  229. const filterData = reportData.value.blueZoneLegendList[index].list.filter(item => item.val === key)
  230. const arr = data[key]
  231. arr.forEach(item =>{
  232. const listObj = blueList.value.filter(ele =>ele.blueZoneCode === item)
  233. const updateList = listObj.map(ele => {
  234. return{
  235. ...ele,
  236. level: key,
  237. name:filterData[0].name,
  238. color:filterData[0].color
  239. }
  240. })
  241. list.push(...updateList)
  242. })
  243. }
  244. return list
  245. }
  246. const getFarmIndexReport = (callback) =>{
  247. const params = { farmId:organId.value,regionId:regionId.value, type: tabName.value };
  248. VE_API.farm.farmIndexReport(params).then(({data,code}) => {
  249. if (code === 0) {
  250. reportData.value = data || {};
  251. let arr = []
  252. if(data.blueZoneList.length){
  253. arr = blueListConvert(data.blueZoneList[0].obj,0)
  254. }
  255. blueRegionLayer.initData(arr,'87')
  256. callback && callback()
  257. }
  258. });
  259. }
  260. const indicatorChartData = ref({})
  261. const blueZone = ref('ws0y1meyhxp4')
  262. const getFarmLog = () =>{
  263. const params = {
  264. id: null,
  265. farmId: 766,
  266. blueZone:blueZone.value
  267. }
  268. VE_API.warning.fetchFarmLog(params).then(({data}) => {
  269. indicatorChartData.value = data || {}
  270. eventBus.emit('chart:updateOption',data)
  271. })
  272. }
  273. const urls = ref([])
  274. const urlsIndex = ref(0)
  275. const getYellow = () =>{
  276. VE_API.home.getYellowList().then(res =>{
  277. // urls.value = res.data.map(item =>{
  278. // return {
  279. // ...item,
  280. // imgPath:config.base_img_url2+item.cloudFilename
  281. // }
  282. // })
  283. // urls.value = [
  284. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-07.jpg",
  285. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-08.jpg",
  286. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-09.jpg",
  287. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-10.jpg",
  288. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-11.jpg",
  289. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-12.jpg",
  290. // "@/assets/images/home/HB-ws0y1menggxv/HB-ws0y1menggxv2025-01-13.jpg",
  291. // ]
  292. })
  293. }
  294. const btnIndex = ref(null)
  295. const btnName = ref("")
  296. const handleBtn = (e) =>{
  297. btnName.value = ""
  298. btnIndex.value = e
  299. eventBus.emit("clear:area")
  300. samplePointLayer.updateAreaStatus(e===0?true:false)
  301. regionLayer.resetData()
  302. samplePointLayer.resetPoint()
  303. }
  304. //点击果园日志
  305. const handleSelectArea = () =>{
  306. btnName.value = ""
  307. btnIndex.value = null
  308. eventBus.emit("clear:area")
  309. regionLayer.resetData()
  310. samplePointLayer.resetPoint()
  311. samplePointLayer.updateAreaStatus(true)
  312. }
  313. //农事点击高亮
  314. const act = ref(null)
  315. const handleAct = (v) =>{
  316. act.value = v
  317. samplePointLayer.resetPoint()
  318. if(v===1){
  319. regionLayer.selectAreaMultiple([
  320. {value:2,color:"blue"},
  321. {value:4,color:"blue1"},
  322. {value:5,color:"blue2"},
  323. {value:7,color:"blue"},
  324. {value:13,color:"blue2"},
  325. ])
  326. }
  327. if(v===2){
  328. regionLayer.selectAreaMultiple([
  329. {value:1,color:"blue"},
  330. {value:2,color:"blue1"},
  331. {value:9,color:"blue2"},
  332. {value:12,color:"blue2"},
  333. ])
  334. }
  335. }
  336. //柱状图点击事件监听
  337. eventBus.on('echart:barClick',(e)=>{
  338. btnName.value = ""
  339. btnIndex.value = null
  340. eventBus.emit("clear:area")
  341. samplePointLayer.updateAreaStatus(false)
  342. const arr = ["花穗伸长", "啃食虫害","毛毡病"]
  343. const isDraw = arr.includes(e)
  344. const index = arr.indexOf(e)
  345. if(isDraw){
  346. if(index===0){
  347. regionLayer.selectAreaMultiple([
  348. {value:0,color:"green"},
  349. {value:1,color:"green"},
  350. {value:2,color:"green"},
  351. {value:3,color:"green1"},
  352. {value:4,color:"green1"},
  353. {value:5,color:"green2"},
  354. {value:6,color:"green1"},
  355. {value:7,color:"green2"},
  356. {value:8,color:"green2"},
  357. {value:9,color:"green"},
  358. {value:10,color:"green"},
  359. {value:11,color:"green1"},
  360. {value:12,color:"green2"},
  361. {value:13,color:"green"},
  362. {value:14,color:"green2"},
  363. ])
  364. }else if(index===1){
  365. regionLayer.selectAreaMultiple([{value:6,color:"red"}])
  366. }else{
  367. regionLayer.selectAreaMultiple([
  368. {value:12,color:"red2"},
  369. {value:10,color:"red"},
  370. {value:1,color:"red"}
  371. ])
  372. }
  373. }
  374. })
  375. //黄板点击事件监听
  376. eventBus.on('click:yellowBlock',(e)=>{
  377. const arr = ["113.61396985128522","113.61390710255375","113.61491218688275"]
  378. if(arr[0]==e){
  379. urls.value = ["HB-ws0y1menggxv"]
  380. urlsIndex.value = 0
  381. }
  382. if(arr[1]==e){
  383. urls.value = ["HB-ws0y1mg0pvd" ]
  384. urlsIndex.value = 3
  385. }
  386. if(arr[2]==e){
  387. urls.value = ["HB-ws0y1mg9wpcp"]
  388. urlsIndex.value = 6
  389. }
  390. eventBus.emit('dialog:show',true)
  391. })
  392. const showPoint = ref(true)
  393. const showType = ref("point")
  394. //地图点击事件
  395. eventBus.on('click:point',(e)=>{
  396. // showType.value = "point"
  397. // if(btnIndex.value===1){
  398. // btnName.value=e.name
  399. // if(e.value===1){
  400. // showPoint.value = true
  401. // samplePointLayer.updatePointStatus(true)
  402. // }else{
  403. // showPoint.value = false
  404. // }
  405. // }
  406. })
  407. //地图点击区域事件
  408. eventBus.on('click:area',(e)=>{
  409. // showType.value = "area"
  410. // if(btnIndex.value===0){
  411. // btnName.value=e.name
  412. // if(e.value===1){
  413. // showPoint.value = true
  414. // }else{
  415. // showPoint.value = false
  416. // }
  417. // regionLayer.selectArea((e.name*1)===0?0: (e.name*1) - 1,"blue")
  418. // }
  419. })
  420. eventBus.on('click:updateArea',(e)=>{
  421. blueZone.value = e.value
  422. btnName.value=e.name
  423. regionLayer.selectArea((e.name*1)===0?0: (e.name*1) - 1,"blue")
  424. getFarmLog()
  425. })
  426. const currentComponent = ref("homePage");
  427. const handleActiveLeft = (e) => {
  428. currentComponent.value = e.componentName;
  429. if(e.title==='首页'){
  430. router.push('/warningHome')
  431. }
  432. };
  433. const leftToolList = [
  434. {
  435. title: "首页",
  436. name: "home",
  437. componentName: "homePage",
  438. },
  439. {
  440. title: "气象预警",
  441. componentName: "weatherPage",
  442. },
  443. {
  444. title: "物候调节",
  445. componentName: "phenologyPage",
  446. },
  447. {
  448. title: "病虫测报",
  449. },
  450. {
  451. title: "营养评估",
  452. },
  453. ];
  454. const rightIndex = ref(0)
  455. const handleActiveRight = ({index}) => {
  456. rightIndex.value = index
  457. btnIndex.value = null
  458. btnName.value = ""
  459. samplePointLayer.updateAreaStatus(false)
  460. regionLayer.resetData()
  461. samplePointLayer.resetPoint()
  462. if(index!==0){
  463. act.value = null
  464. }
  465. };
  466. const hanleRightIndex = (num) =>{
  467. rightIndex.value = num
  468. eventBus.emit('tool:updateAct',num)
  469. }
  470. const rightToolList = [
  471. {
  472. title: "农事列表",
  473. index:0,
  474. },
  475. {
  476. title: "处方分析",
  477. index:2,
  478. },
  479. {
  480. title: "复核对比",
  481. index:1,
  482. },
  483. ];
  484. // 跳转果园档案
  485. const toFilePage = () => {
  486. router.push('/garden-file')
  487. }
  488. </script>
  489. <style lang="scss" scoped>
  490. .base-container {
  491. width: 100%;
  492. height: 100vh;
  493. color: #fff;
  494. position: absolute;
  495. box-sizing: border-box;
  496. z-index: 1;
  497. .content {
  498. width: 100%;
  499. height: calc(100% - 74px - 48px);
  500. display: flex;
  501. justify-content: space-between;
  502. box-sizing: border-box;
  503. .left,
  504. .right {
  505. width: calc(376px + 54px);
  506. height: 100%;
  507. margin-top: 10px;
  508. box-sizing: border-box;
  509. display: flex;
  510. position: relative;
  511. }
  512. .left{
  513. background: #101010;
  514. border-radius: 4px;
  515. border: 1px solid #444444;
  516. .arrow{
  517. position: absolute;
  518. right: -16px;
  519. top:calc(50% - 40px);
  520. background: #fff;
  521. width: 16px;
  522. height: 80px;
  523. line-height: 80px;
  524. border-radius: 0 5px 5px 0;
  525. text-align: center;
  526. cursor: pointer;
  527. }
  528. }
  529. .right {
  530. .list {
  531. width: 100%;
  532. height: 100%;
  533. .btn-wrap{
  534. width: 100%;
  535. height: 25px;
  536. line-height: 25px;
  537. margin: 10px 0;
  538. display: flex;
  539. align-items: center;
  540. justify-content: space-between;
  541. div{
  542. width: 48%;
  543. height: 100%;
  544. color: #FFD489;
  545. border: 1px solid rgba(255,213,137,0.6);
  546. border-radius: 2px;
  547. text-align: center;
  548. font-size: 12px;
  549. cursor: pointer;
  550. &.active{
  551. background: #FFD489;
  552. color: #000;
  553. }
  554. }
  555. }
  556. .img-box{
  557. width: 100%;
  558. height: calc(100% - 35px);
  559. overflow: auto;
  560. }
  561. .img-box1{
  562. width: 100%;
  563. height: calc(100% - 10px);
  564. overflow: auto;
  565. margin-top: 10px;
  566. }
  567. .img-box2{
  568. width: 100%;
  569. height: calc(100% - 45px);
  570. overflow: auto;
  571. margin-top: 10px;
  572. }
  573. img{
  574. width: 100%;
  575. height: auto;
  576. object-fit: cover;
  577. margin-bottom: 12px;
  578. cursor: pointer;
  579. }
  580. .mt{
  581. margin-top: -12px;
  582. }
  583. .list-wrap {
  584. ::v-deep {
  585. .chart-content {
  586. padding: 16px 0 0 0;
  587. }
  588. }
  589. }
  590. }
  591. }
  592. .overflow{
  593. overflow: auto;
  594. }
  595. .home-bottom {
  596. display: flex;
  597. align-items: flex-end;
  598. width: calc(100% - 60px - 430px * 2 );
  599. height: 152px;
  600. align-self: flex-end;
  601. .time-wrap{
  602. height: 85px;
  603. }
  604. .fly-icon{
  605. width: 148px;
  606. height: 100%;
  607. margin-left: 27px;
  608. }
  609. .log-box {
  610. height: 34%;
  611. width: calc(100% - 340px - 28px);
  612. margin-right: 28px;
  613. .box-name{
  614. width: 89px;
  615. height: 22px;
  616. text-align: center;
  617. line-height: 22px;
  618. border-radius: 20px;
  619. margin: 10px 0 5px 6px;
  620. cursor: pointer;
  621. background: linear-gradient(0deg,#BBA269 0%, #3D3523 100%);
  622. }
  623. .log-content {
  624. font-size: 12px;
  625. line-height: 1.5;
  626. padding: 0 18px;
  627. }
  628. .chart-wrap{
  629. width: 100%;
  630. height: calc(100% - 50px);
  631. .line{
  632. margin-top: 10px;
  633. margin-bottom: 12px;
  634. }
  635. img{
  636. width: 100%;
  637. margin-bottom: 10px;
  638. }
  639. }
  640. }
  641. .file-box {
  642. height: 25%;
  643. min-height: 210px;
  644. width: 340px;
  645. position: relative;
  646. img{
  647. width: 100%;
  648. margin-top: 12px;
  649. }
  650. .arrow-icon {
  651. top: -32px;
  652. left: 50%;
  653. position: absolute;
  654. background: #fff;
  655. width: 16px;
  656. height: 80px;
  657. line-height: 80px;
  658. border-radius: 5px 0 0 5px;
  659. text-align: center;
  660. transform: translateX(-50%) rotate(270deg);
  661. }
  662. .edit-btn {
  663. padding: 2px 24px;
  664. background: #FFD489;
  665. border-radius: 4px;
  666. color: #000;
  667. }
  668. }
  669. }
  670. .legend{
  671. position: fixed;
  672. bottom: 8px;
  673. right: 64px;
  674. width: 525px;
  675. height: 16px;
  676. }
  677. }
  678. }
  679. .bottom-map {
  680. width: 100%;
  681. height: 100vh;
  682. position: absolute;
  683. z-index: 0;
  684. }
  685. </style>