瀏覽代碼

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);


Loading…
取消
儲存