Compare commits

..

2 Commits

Author SHA1 Message Date
姚宇浩 037eb07b2a Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc 2024-09-14 13:43:19 +08:00
姚宇浩 00bf4e6176 养老机构 2024-09-14 13:43:16 +08:00
1 changed files with 2 additions and 3 deletions

View File

@ -147,7 +147,7 @@ const addPolygonCounty = () => {
mapTownDataDK.map((item) => { mapTownDataDK.map((item) => {
// //
let points = []; 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) { if (points.length) {
// //
let polygon = new BMapGL.Polygon(points, { let polygon = new BMapGL.Polygon(points, {
@ -182,8 +182,7 @@ const createCustomOverlay = (polygon) => {
div.style.display = "flex"; div.style.display = "flex";
div.style.justifyContent = "center"; div.style.justifyContent = "center";
div.style.alignItems = "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.style.cursor = "pointer";
div.setAttribute("name", this.properties.title); div.setAttribute("name", this.properties.title);