|
|
@ -107,7 +107,7 @@ let polygonColorArray = [ |
|
|
|
'rgba(183, 185, 0, 0.16)' |
|
|
|
]; |
|
|
|
|
|
|
|
//icon文字样式 |
|
|
|
//icon文字样式 |
|
|
|
let createTextStyle = function (feature) { |
|
|
|
|
|
|
|
if (iconTextsStyle) { |
|
|
@ -262,7 +262,7 @@ const vueGis = { |
|
|
|
//刷新地图 |
|
|
|
async refreshMap (mapInfo, polygonArray, iconArrays) { |
|
|
|
this.mapInfo = mapInfo |
|
|
|
this.polygonArray = [] |
|
|
|
this.polygonArray = [] |
|
|
|
this.polygonArray = polygonArray |
|
|
|
this.iconArrays = iconArrays |
|
|
|
iconSource.clear() |
|
|
@ -551,7 +551,7 @@ const vueGis = { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
firstCentermap() { |
|
|
|
firstCentermap () { |
|
|
|
if (this.mapInfo.longitude && this.mapInfo.latitude) { |
|
|
|
this.centerPoint = [] |
|
|
|
this.centerPoint.push(this.mapInfo.longitude) |
|
|
@ -743,14 +743,14 @@ const vueGis = { |
|
|
|
this.overlay.getElement().parentNode.parentNode.style.display = 'block' |
|
|
|
content.innerHTML = showData; |
|
|
|
this.overlay.setPosition(coordinate); |
|
|
|
//把 overlay 显示到指定的 x,y坐标 |
|
|
|
//把 overlay 显示到指定的 x,y坐标 |
|
|
|
|
|
|
|
}, |
|
|
|
// 关闭弹窗 |
|
|
|
handleClosePopup() { |
|
|
|
this.overlay.setPosition(undefined); |
|
|
|
document.getElementById("popup-closer").blur(); |
|
|
|
return false; |
|
|
|
handleClosePopup () { |
|
|
|
this.overlay.setPosition(undefined); |
|
|
|
document.getElementById("popup-closer").blur(); |
|
|
|
return false; |
|
|
|
}, |
|
|
|
|
|
|
|
//取随机数 |
|
|
@ -895,7 +895,7 @@ export default vueGis; |
|
|
|
.popup-content { |
|
|
|
width: 300px; |
|
|
|
} |
|
|
|
.popup-goMore{ |
|
|
|
.popup-goMore { |
|
|
|
margin: 20px 0; |
|
|
|
} |
|
|
|
.ol-popup-closer:after { |
|
|
|