diff --git a/src/view/dialog/echarts/map.vue b/src/view/dialog/echarts/map.vue index e1e266b..ed4db40 100644 --- a/src/view/dialog/echarts/map.vue +++ b/src/view/dialog/echarts/map.vue @@ -147,7 +147,7 @@ const addPolygonCounty = () => { mapTownDataDK.map((item) => { //地区的坐标范围 let points = []; - item.point.map((p) => points.push(new BMapGL.Point(...p))); + item.point[0].map((p) => points.push(new BMapGL.Point(...p))); if (points.length) { //创建面 let polygon = new BMapGL.Polygon(points, { @@ -182,8 +182,7 @@ const createCustomOverlay = (polygon) => { div.style.display = "flex"; div.style.justifyContent = "center"; div.style.alignItems = "center"; - div.style.background = - "url(/src/assets/img/Distribution/b1.png) no-repeat 0/100% 100%"; + div.style.cursor = "pointer"; div.setAttribute("name", this.properties.title);