소스 검색

组件优化

wulanhaote
hbao 3 년 전
부모
커밋
db045eec6c
1개의 변경된 파일30개의 추가작업 그리고 0개의 파일을 삭제
  1. +30
    -0
      src/components/Map/MapGisDrawing.vue

+ 30
- 0
src/components/Map/MapGisDrawing.vue 파일 보기

@@ -114,6 +114,21 @@ export default {
}),
});
that.mapData= that.message;
//宅基地图层查询开始 ------------------start
var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'";
var zjdTc= new ol.layer.Tile({
source: new ol.source.TileWMS({
url: "http://116.255.223.226:8080/geoserver/zjd_dc/wms",
params: {
LAYERS: 'zjd_dc:t_house_survey_zjdzd',
TILED: true,
cql_filter: cql_filter_all,
SRID: 3857,
},
}),
});
map.addLayer(zjdTc);
//宅基地图层查询开始 ------------------start
//图层查询定位开始 ---------start
if(this.message.substring(0,1) =="{"){
//that.newHt ="1";
@@ -539,6 +554,21 @@ export default {
});
map.addLayer(cunTc);
//村边界查询开始 ------------------------------end
//宅基地图层查询开始 ------------------start
var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'";
var zjdTc= new ol.layer.Tile({
source: new ol.source.TileWMS({
url: "http://116.255.223.226:8080/geoserver/zjd_dc/wms",
params: {
LAYERS: 'zjd_dc:t_house_survey_zjdzd',
TILED: true,
cql_filter: cql_filter_all,
SRID: 3857,
},
}),
});
map.addLayer(zjdTc);
//宅基地图层查询开始 ------------------start
// getQueryLand().then((response) => {
// if (response.code == 200) {
// let InsertCode = response.data;


불러오는 중...
취소
저장