养老机构

This commit is contained in:
姚宇浩 2024-09-14 13:43:16 +08:00
parent ca3381761d
commit 00bf4e6176
1 changed files with 2 additions and 3 deletions

View File

@ -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);