Browse Source

开放地图瓦片的设置

tags/1.12.3
Caven Chen 4 years ago
parent
commit
c73d5dc8db
4 changed files with 6 additions and 3 deletions
  1. 2
    0
      CHANGE.md
  2. 2
    2
      src/core/math/parabola.js
  3. 1
    0
      src/core/option/ViewerOption.js
  4. 1
    1
      src/core/viewer/Viewer.js

+ 2
- 0
CHANGE.md View File

@@ -6,6 +6,8 @@

> 1. 移除 Cesium 默认地图 token 认证
> 2. 完善三维场景组件功能
> 3. 完善 parabola(抛物线)函数
> 4. 开放地图瓦片的设置

# 1.12.2


+ 2
- 2
src/core/math/parabola.js View File

@@ -16,8 +16,8 @@ export default function parabola(
if (!Util.checkPosition(startPosition) || !Util.checkPosition(endPosition)) {
return result
}
height = Math.min(+height, 5000)
count = Math.min(+count, 50)
height = Math.max(+height, 100)
count = Math.max(+count, 50)
let diffLng = Math.abs(startPosition.lng - endPosition.lng)
let diffLat = Math.abs(startPosition.lat - endPosition.lat)
let L = Math.max(diffLng, diffLat)

+ 1
- 0
src/core/option/ViewerOption.js View File

@@ -99,6 +99,7 @@ class ViewerOption {
enableLighting: globeOption?.enableLighting ?? false,
depthTestAgainstTerrain: globeOption?.depthTestAgainstTerrain ?? false,
tileCacheSize: +globeOption?.tileCacheSize || 100,
preloadSiblings: globeOption?.enableLighting ?? false,
baseColor: globeOption?.baseColor || new Cesium.Color(0, 0, 0.5, 1)
})


+ 1
- 1
src/core/viewer/Viewer.js View File

@@ -32,7 +32,7 @@ const { Cesium } = DC.Namespace
const DEF_OPTS = {
animation: false, //Whether to create animated widgets, lower left corner of the meter
baseLayerPicker: false, //Whether to display the layer selector
imageryProvider: false,
imageryProvider: false, // Whether to display the default imagery
fullscreenButton: false, //Whether to display the full-screen button
geocoder: false, //To display the geocoder widget, query the button in the upper right corner
homeButton: false, //Whether to display the Home button

Loading…
Cancel
Save