|
|
@@ -606,7 +606,7 @@ export default { |
|
|
|
}) |
|
|
|
.then((data) => { |
|
|
|
console.log(data); |
|
|
|
let resolution = map.getView().getResolutionForExtent(data.bbox,map.getSize()); |
|
|
|
let resolution = that.map.getView().getResolutionForExtent(data.bbox,map.getSize()); |
|
|
|
resolution:resolution + Math.random() * 0.00000001, |
|
|
|
that.map.getView().fit(data.bbox); |
|
|
|
that.map.getView().setResolution(resolution); |
|
|
|