| @@ -6,6 +6,8 @@ | |||
| > 1. 移除 Cesium 默认地图 token 认证 | |||
| > 2. 完善三维场景组件功能 | |||
| > 3. 完善 parabola(抛物线)函数 | |||
| > 4. 开放地图瓦片的设置 | |||
| # 1.12.2 | |||
| @@ -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) | |||
| @@ -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) | |||
| }) | |||
| @@ -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 | |||