|
@ -696,9 +696,7 @@ const vueGis = { |
|
|
polygonSource.addFeatures(feature) |
|
|
polygonSource.addFeatures(feature) |
|
|
|
|
|
|
|
|
let iconFeatures = []; |
|
|
let iconFeatures = []; |
|
|
console.log(feature) |
|
|
|
|
|
feature.forEach(oneIcon => { |
|
|
feature.forEach(oneIcon => { |
|
|
// console.log(oneIcon) |
|
|
|
|
|
var extent = boundingExtent(oneIcon.getGeometry().getCoordinates()[0]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy] |
|
|
var extent = boundingExtent(oneIcon.getGeometry().getCoordinates()[0]); //获取一个坐标数组的边界,格式为[minx,miny,maxx,maxy] |
|
|
// var center = getCenter(extent); //获取边界区域的中心位置 |
|
|
// var center = getCenter(extent); //获取边界区域的中心位置 |
|
|
//添加标注 |
|
|
//添加标注 |
|
|