From 848dcf21bc3e02ddf987df18cd8a83285c238b7b Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Sun, 14 Apr 2019 14:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=A4=A7=E6=9C=80=E8=BF=9C=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/gis/Globe.js | 2 +- ShadowEditor.Web/src/gis/view/OrbitViewer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ShadowEditor.Web/src/gis/Globe.js b/ShadowEditor.Web/src/gis/Globe.js index 4b5e3125..23780c56 100644 --- a/ShadowEditor.Web/src/gis/Globe.js +++ b/ShadowEditor.Web/src/gis/Globe.js @@ -46,7 +46,7 @@ function Globe(camera, renderer, options = {}) { // 默认位置 var lon = 0; var lat = 0; - var alt = GeoUtils.zoomToAlt(0); + var alt = GeoUtils.zoomToAlt(-1); this.viewer.setPosition(lon, lat, alt); } diff --git a/ShadowEditor.Web/src/gis/view/OrbitViewer.js b/ShadowEditor.Web/src/gis/view/OrbitViewer.js index 12a0ef3d..acbd1ed8 100644 --- a/ShadowEditor.Web/src/gis/view/OrbitViewer.js +++ b/ShadowEditor.Web/src/gis/view/OrbitViewer.js @@ -130,9 +130,9 @@ OrbitViewer.prototype.onMouseWheel = function () { var d = delta * (distance - WGS84.a) / 1000; - var d0 = GeoUtils.zoomToAlt(0) + WGS84.a; + var d_1 = GeoUtils.zoomToAlt(-1) + WGS84.a; - if (distance + d >= d0) { // 最远0层级距离 + if (distance + d >= d_1) { // 最远0层级距离 d = 0; }