Compare commits
2 Commits
449b4f56be
...
037eb07b2a
Author | SHA1 | Date |
---|---|---|
姚宇浩 | 037eb07b2a | |
姚宇浩 | 00bf4e6176 |
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue