Browse Source

修改

wangqin
Joe 1 year ago
parent
commit
482cbb06e1
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
  2. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

@ -7,7 +7,7 @@ import { delay } from "@screen/utils/common";
import { Message } from "element-ui";
import { EventTopics } from "@screen/utils/enum.js";
import { setMarkToMap, markerClusterIns } from "./map";
import { markerClusterIns } from "./map";
const cameraIcon = {
// 球机

5
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

@ -170,9 +170,8 @@ export class MarkerCluster {
this.infoWindow.setContent(`<div
style="
min-width: 240px;
min-height: 150px;
min-height: 90px;
width: 90px;
height: 90px;
display: flex;
flex-direction: column;
position: relative;
@ -318,7 +317,7 @@ export class MarkerCluster {
(removeData) => removeData === item
);
const lngLatStr = item.lnglat.join("/");
const lngLatStr = `${item.lnglat.lng}/${item.lnglat.lat}`;
if (this.lngLatMap[lngLatStr]) {
if (this.lngLatMap[lngLatStr].length < 2)

Loading…
Cancel
Save