소스 검색

Merge remote-tracking branch 'origin/master'

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

+ 2
- 1
src/components/Map/MapGisDrawing.vue 파일 보기

@@ -566,6 +566,7 @@ export default {
//var Zb;
//村边界查询开始 ------------------------------start
var cql_filter = "dept_id='" + that.$cookies.get("item").deptId + "'";
console.log(cql_filter);
var cunTc= new ol.layer.Image({
source: new ol.source.ImageWMS({
url: that.mapGeoServerUrl +"/geoserver/zjd_dc/wms",
@@ -606,7 +607,7 @@ export default {
})
.then((data) => {
console.log(data);
let resolution = that.map.getView().getResolutionForExtent(data.bbox,map.getSize());
let resolution = that.map.getView().getResolutionForExtent(data.bbox,that.map.getSize());
resolution:resolution + Math.random() * 0.00000001,
that.map.getView().fit(data.bbox);
that.map.getView().setResolution(resolution);


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