养老机构
This commit is contained in:
parent
ca3381761d
commit
00bf4e6176
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue