|
|
@@ -3010,6 +3010,9 @@ |
|
|
|
var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY; |
|
|
|
//定位查询位置 |
|
|
|
var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 |
|
|
|
that.clickBbox = center; |
|
|
|
console.log(that.mapZjdData); |
|
|
|
that.textMjAll = that.mapZjdData.zdmj; |
|
|
|
map.getView().animate({ |
|
|
|
// 只设置需要的属性即可 |
|
|
|
center: center, // 中心点 |
|
|
@@ -3054,6 +3057,9 @@ |
|
|
|
var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY; |
|
|
|
//定位查询位置 |
|
|
|
var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 |
|
|
|
that.clickBbox = center; |
|
|
|
console.log(that.mapZjdData); |
|
|
|
that.textMjAll = that.mapZjdData.zdmj; |
|
|
|
map.getView().animate({ |
|
|
|
// 只设置需要的属性即可 |
|
|
|
center: center, // 中心点 |
|
|
@@ -4068,7 +4074,7 @@ |
|
|
|
$("#area").click(function () { |
|
|
|
console.log(that.textMjAll); |
|
|
|
console.log(that.clickBbox); |
|
|
|
if(that.textMjAll ==null){ |
|
|
|
if(that.textMjAll ==null || that.textMjAll ==""){ |
|
|
|
that.textMjAll =0; |
|
|
|
} |
|
|
|
if((that.textMjAll != "" && that.clickBbox !="") || (that.textMjAll == 0 && that.clickBbox !="")){ |
|
|
|