|
|
@@ -19,6 +19,7 @@ |
|
|
|
<script> |
|
|
|
import {getQueryLand} from "@/api/homesteadSurvey/zjdzd"; |
|
|
|
import {getGeoServerConfigKey} from "@/api/system/config"; |
|
|
|
import {deptGetId,} from "@/api/homestead/index"; |
|
|
|
import $ from "jquery"; |
|
|
|
|
|
|
|
export default { |
|
|
@@ -138,11 +139,26 @@ export default { |
|
|
|
that.map.removeLayer(zrzTc); |
|
|
|
that.map.removeLayer(zjdTc); |
|
|
|
that.map.removeLayer(fsssTc); |
|
|
|
//国有数据加载-----------------------------------start |
|
|
|
deptGetId(that.$cookies.get("item").deptId).then((res) => { |
|
|
|
var cql_filter_guoyou = "ZLDWDM='" + res.data.orgCode + "0000000'"; |
|
|
|
var guoyouTc = new ol.layer.Image({ |
|
|
|
source: new ol.source.ImageWMS({ |
|
|
|
url: that.mapGeoServerUrl + "/geoserver/zjd_gydl/wms", |
|
|
|
params: { |
|
|
|
LAYERS: 'zjd_gydl:DLTB', |
|
|
|
TILED: true, |
|
|
|
cql_filter: cql_filter_guoyou, |
|
|
|
SRID: 3857, |
|
|
|
TIMESTAMP: new Date().getTime(), |
|
|
|
}, |
|
|
|
}), |
|
|
|
}); |
|
|
|
that.map.addLayer(guoyouTc); |
|
|
|
}); |
|
|
|
//国有数据加载----------------------------------end |
|
|
|
//宅基地图层查询开始 ------------------start |
|
|
|
|
|
|
|
//村边界查询开始 ------------------------------end |
|
|
|
var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + that.$cookies.get("search").zjddm + "'"; |
|
|
|
console.log(cql_filter_all); |
|
|
|
zjdTc= new ol.layer.Image({ |
|
|
|
source: new ol.source.ImageWMS({ |
|
|
|
url: that.mapGeoServerUrl +"/geoserver/zjd_dc/wms", |
|
|
@@ -627,6 +643,24 @@ export default { |
|
|
|
}); |
|
|
|
that.map.addLayer(cunTc); |
|
|
|
//村边界查询开始 ------------------------------end |
|
|
|
//国有数据加载-----------------------------------start |
|
|
|
deptGetId(that.$cookies.get("item").deptId).then((res) => { |
|
|
|
var cql_filter_guoyou = "ZLDWDM='" + res.data.orgCode + "0000000'"; |
|
|
|
var guoyouTc = new ol.layer.Image({ |
|
|
|
source: new ol.source.ImageWMS({ |
|
|
|
url: that.mapGeoServerUrl + "/geoserver/zjd_gydl/wms", |
|
|
|
params: { |
|
|
|
LAYERS: 'zjd_gydl:DLTB', |
|
|
|
TILED: true, |
|
|
|
cql_filter: cql_filter_guoyou, |
|
|
|
SRID: 3857, |
|
|
|
TIMESTAMP: new Date().getTime(), |
|
|
|
}, |
|
|
|
}), |
|
|
|
}); |
|
|
|
that.map.addLayer(guoyouTc); |
|
|
|
}); |
|
|
|
//国有数据加载----------------------------------end |
|
|
|
//宅基地图层查询开始 ------------------start |
|
|
|
//var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'"; |
|
|
|
var zjdTc= new ol.layer.Image({ |
|
|
|