浏览代码

change the viewBounds format

tags/2.1.3
Caven Chen 4 年前
父节点
当前提交
aa70571bbd
共有 1 个文件被更改,包括 3 次插入8 次删除
  1. 3
    8
      modules/viewer/Viewer.js

+ 3
- 8
modules/viewer/Viewer.js 查看文件

@@ -147,7 +147,7 @@ class Viewer {
this
)
if (!min || !max) {
return undefined
return 1
}
return Math.abs(min.lng - max.lng)
}
@@ -164,14 +164,9 @@ class Viewer {
this
)
if (!min || !max) {
return undefined
}
return {
west: min.lng,
south: min.lat,
east: max.lng,
north: max.lat
return Cesium.Rectangle.MAX_VALUE
}
return Cesium.Rectangle.fromDegrees(min.lng, min.lat, max.lng, max.lat)
}

/***

正在加载...
取消
保存