|
|
@@ -87,7 +87,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import AMap from "AMap"; |
|
|
|
import njBround from "../../../static/njBround"; |
|
|
|
import njBround from "../../../static/nj.json"; |
|
|
|
import dateLeft from './dateLeft' |
|
|
|
import dateRight from './dateRight' |
|
|
|
import {mapGetters} from "vuex"; |
|
|
@@ -202,25 +202,24 @@ |
|
|
|
let list = njBround; |
|
|
|
if (list && list.length > 0) { |
|
|
|
list.map(item => { |
|
|
|
var bounds = item.bounds; |
|
|
|
if (bounds) { |
|
|
|
for (let i = 0, l = bounds.length; i < l; i++) { |
|
|
|
let path = []; |
|
|
|
bounds[i].map(cc => { |
|
|
|
path.push(new AMap.LngLat(cc.lng, cc.lat)); |
|
|
|
}); |
|
|
|
let polygon = new AMap.Polygon({ |
|
|
|
strokeWeight: 1, |
|
|
|
path: path, |
|
|
|
fillOpacity: 0, |
|
|
|
strokeColor: "#9BF1F6" |
|
|
|
}); |
|
|
|
me.polygonList.push(polygon) |
|
|
|
me.map.add(polygon); |
|
|
|
} |
|
|
|
} |
|
|
|
var bounds = item; |
|
|
|
let path = []; |
|
|
|
bounds.map(child => { |
|
|
|
delete child.Q |
|
|
|
delete child.R |
|
|
|
path.push(new AMap.LngLat(child.lng, child.lat)); |
|
|
|
}) |
|
|
|
let polygon = new AMap.Polygon({ |
|
|
|
strokeWeight: 1, |
|
|
|
path: path, |
|
|
|
fillOpacity: 0, |
|
|
|
strokeColor: "#9BF1F6" |
|
|
|
}); |
|
|
|
me.polygonList.push(polygon) |
|
|
|
me.map.add(polygon); |
|
|
|
}); |
|
|
|
} |
|
|
|
console.log(JSON.stringify(list)) |
|
|
|
}, |
|
|
|
// addRegionMarker(item) { |
|
|
|
// // 创建纯文本标记 |