| @@ -3021,7 +3021,7 @@ | |||||
| duration: 1000, // 缩放持续时间,默认不需要设置 | duration: 1000, // 缩放持续时间,默认不需要设置 | ||||
| resolution: Math.random() * 0.00000001, | resolution: Math.random() * 0.00000001, | ||||
| }); | }); | ||||
| this.backMap =1; | |||||
| //this.backMap =1; | |||||
| } else if (that.backTheGeom != "" && that.backTheGeom != undefined && that.backTheGeom.substring(0, 1) == "[") { | } else if (that.backTheGeom != "" && that.backTheGeom != undefined && that.backTheGeom.substring(0, 1) == "[") { | ||||
| //that.newHt ="1"; | //that.newHt ="1"; | ||||
| var zbNew = JSON.stringify({ | var zbNew = JSON.stringify({ | ||||
| @@ -3068,7 +3068,7 @@ | |||||
| duration: 1000, // 缩放持续时间,默认不需要设置 | duration: 1000, // 缩放持续时间,默认不需要设置 | ||||
| resolution: Math.random() * 0.00000001, | resolution: Math.random() * 0.00000001, | ||||
| }); | }); | ||||
| this.backMap =1; | |||||
| //this.backMap =1; | |||||
| } else { | } else { | ||||
| let resolution = map.getView().getResolutionForExtent(data.bbox, map.getSize()); | let resolution = map.getView().getResolutionForExtent(data.bbox, map.getSize()); | ||||
| resolution:resolution + Math.random() * 0.00000001, | resolution:resolution + Math.random() * 0.00000001, | ||||
| @@ -3130,22 +3130,22 @@ | |||||
| map.addLayer(fsssTc); | map.addLayer(fsssTc); | ||||
| //附属设施图层查询开始 ------------------start | //附属设施图层查询开始 ------------------start | ||||
| //使用geoserver服务查询开始 -------------------end | //使用geoserver服务查询开始 -------------------end | ||||
| if(this.backMap ==1){ | |||||
| var cql = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + this.mapZjdTeAll.mapZjdAData.zjddm + "'"; | |||||
| var wmsSourceBack = new ol.source.ImageWMS({ | |||||
| crossOrigin: 'anonymous', | |||||
| params: { | |||||
| LAYERS: 'zjd_dc:t_house_survey_all', | |||||
| 'VERSION': '1.1.0', | |||||
| 'FORMAT': "image/png", | |||||
| 'CQL_FILTER': cql | |||||
| }, | |||||
| serverType: 'geoserver', | |||||
| url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms", | |||||
| }); | |||||
| zjdTc.setSource(wmsSourceBack); | |||||
| ol.view.setResolution(ol.view.getResolution() + Math.random() * 0.00000001);//随机数缩放实现刷新 | |||||
| } | |||||
| // if(this.backMap ==1){ | |||||
| // var cql = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + this.mapZjdTeAll.mapZjdAData.zjddm + "'"; | |||||
| // var wmsSourceBack = new ol.source.ImageWMS({ | |||||
| // crossOrigin: 'anonymous', | |||||
| // params: { | |||||
| // LAYERS: 'zjd_dc:t_house_survey_all', | |||||
| // 'VERSION': '1.1.0', | |||||
| // 'FORMAT': "image/png", | |||||
| // 'CQL_FILTER': cql | |||||
| // }, | |||||
| // serverType: 'geoserver', | |||||
| // url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms", | |||||
| // }); | |||||
| // zjdTc.setSource(wmsSourceBack); | |||||
| // ol.view.setResolution(ol.view.getResolution() + Math.random() * 0.00000001);//随机数缩放实现刷新 | |||||
| // } | |||||
| //数据库直接加载数据渲染方式---------------------------------------------------start | //数据库直接加载数据渲染方式---------------------------------------------------start | ||||
| //判断当前账套是否有数据 | //判断当前账套是否有数据 | ||||
| // var mapTalkAbout = true; | // var mapTalkAbout = true; | ||||