|
@@ -3655,7 +3655,6 @@ |
|
|
|
|
|
|
|
|
//地图定义 |
|
|
//地图定义 |
|
|
var delete_map = ["mapZjd", "mapZrz","mapFsss"]; |
|
|
var delete_map = ["mapZjd", "mapZrz","mapFsss"]; |
|
|
var hc_land_query; |
|
|
|
|
|
var hc_land_queryList =[]; |
|
|
var hc_land_queryList =[]; |
|
|
var texiao_layer_zjd; |
|
|
var texiao_layer_zjd; |
|
|
var texiao_layer_zrz; |
|
|
var texiao_layer_zrz; |
|
@@ -3666,9 +3665,10 @@ |
|
|
$("#deleteHistoryMap").trigger("click"); |
|
|
$("#deleteHistoryMap").trigger("click"); |
|
|
var val = that.seachText; |
|
|
var val = that.seachText; |
|
|
//删除之前查询图层 |
|
|
//删除之前查询图层 |
|
|
//for(var i=0;hc_land_queryList>i;i++){ |
|
|
|
|
|
map.removeLayer(hc_land_query); |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
for(var i=0;hc_land_queryList.length>i;i++){ |
|
|
|
|
|
map.removeLayer(hc_land_queryList[i]); |
|
|
|
|
|
} |
|
|
|
|
|
hc_land_queryList = []; |
|
|
that.mapDataAll =[]; |
|
|
that.mapDataAll =[]; |
|
|
if (val == "") { |
|
|
if (val == "") { |
|
|
that.$toast('请填写查询条件再查询'); |
|
|
that.$toast('请填写查询条件再查询'); |
|
@@ -3706,9 +3706,8 @@ |
|
|
} |
|
|
} |
|
|
that.mapDataAll[hg].typeTc="宅基地"; |
|
|
that.mapDataAll[hg].typeTc="宅基地"; |
|
|
if (that.mapDataAll[hg] !=null && that.mapDataAll[hg].theGeom != null && that.mapDataAll[hg].theGeom != "") { |
|
|
if (that.mapDataAll[hg] !=null && that.mapDataAll[hg].theGeom != null && that.mapDataAll[hg].theGeom != "") { |
|
|
//that.mapDataAll[hg].createBy = 'mapTheGeomZjdId'; |
|
|
|
|
|
hc_land_query = |
|
|
|
|
|
new ol.layer.Vector({ |
|
|
|
|
|
|
|
|
that.mapDataAll[hg].createBy = 'mapTheGeomZjdId'; |
|
|
|
|
|
hc_land_queryList[hg] =new ol.layer.Vector({ |
|
|
title: "add Layer", |
|
|
title: "add Layer", |
|
|
source: new ol.source.Vector({ |
|
|
source: new ol.source.Vector({ |
|
|
projection: projection, |
|
|
projection: projection, |
|
@@ -3718,12 +3717,11 @@ |
|
|
}), |
|
|
}), |
|
|
style: styleZjd |
|
|
style: styleZjd |
|
|
}); |
|
|
}); |
|
|
//hc_land_queryList.push(hc_land_query); |
|
|
|
|
|
map.addLayer(hc_land_query); |
|
|
|
|
|
var maxXMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.maxX; |
|
|
|
|
|
var maxYMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.maxY; |
|
|
|
|
|
var minXMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.minX; |
|
|
|
|
|
var minYMap = hc_land_query.values_.source.featuresRtree_.rbush_.data.minY; |
|
|
|
|
|
|
|
|
map.addLayer(hc_land_queryList[hg]); |
|
|
|
|
|
var maxXMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.maxX; |
|
|
|
|
|
var maxYMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.maxY; |
|
|
|
|
|
var minXMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.minX; |
|
|
|
|
|
var minYMap = hc_land_queryList[hg].values_.source.featuresRtree_.rbush_.data.minY; |
|
|
//定位查询位置 |
|
|
//定位查询位置 |
|
|
var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 |
|
|
var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 |
|
|
map.getView().animate({ |
|
|
map.getView().animate({ |
|
@@ -3739,7 +3737,9 @@ |
|
|
// that.mapDataAll.push(response.rows); |
|
|
// that.mapDataAll.push(response.rows); |
|
|
// }); |
|
|
// }); |
|
|
} |
|
|
} |
|
|
// map.addLayer(hc_land_queryList); |
|
|
|
|
|
|
|
|
// for(var queryFor=0; hc_land_queryList > queryFor; queryFor++ ){ |
|
|
|
|
|
// map.addLayer(hc_land_queryList[queryFor]); |
|
|
|
|
|
// } |
|
|
// var mapZrzFor = that.mapDataAll[0].length+1; |
|
|
// var mapZrzFor = that.mapDataAll[0].length+1; |
|
|
// console.log(mapZrzFor); |
|
|
// console.log(mapZrzFor); |
|
|
// for(var mapFor=0;mapZrzFor>mapFor;mapFor++){ |
|
|
// for(var mapFor=0;mapZrzFor>mapFor;mapFor++){ |
|
@@ -4531,7 +4531,10 @@ |
|
|
map.removeLayer(hc_land_on); |
|
|
map.removeLayer(hc_land_on); |
|
|
//map.removeLayer(hc_land_query); |
|
|
//map.removeLayer(hc_land_query); |
|
|
//for(var i=0;hc_land_query>i;i++){ |
|
|
//for(var i=0;hc_land_query>i;i++){ |
|
|
map.removeLayer(hc_land_query); |
|
|
|
|
|
|
|
|
//map.removeLayer(hc_land_query); |
|
|
|
|
|
for(var i=0;hc_land_queryList.length>i;i++){ |
|
|
|
|
|
map.removeLayer(hc_land_queryList[i]); |
|
|
|
|
|
} |
|
|
//}c |
|
|
//}c |
|
|
if (that.fsssSx && that.zjdSx && that.zrzSx) { |
|
|
if (that.fsssSx && that.zjdSx && that.zrzSx) { |
|
|
url = wmsSource.getFeatureInfoUrl( |
|
|
url = wmsSource.getFeatureInfoUrl( |
|
|