diff --git a/public/config.js b/public/config.js index 5f00411..fc35f17 100644 --- a/public/config.js +++ b/public/config.js @@ -9,6 +9,8 @@ const allPositionPitch = -90; // 全部防区跳转俯仰角 const currTime = 15; // 左侧无人机消失时间 +const uavSize = 8; // 无人机大小 + window.mapConfig = { isCamera: isCamera, cameraLon: cameraLon, @@ -18,5 +20,6 @@ window.mapConfig = { allPositionLat: allPositionLat, allPositionAlt: allPositionAlt, allPositionPitch: allPositionPitch, - currTime: currTime + currTime: currTime, + uavSize: uavSize }; diff --git a/src/views/contentData/index.js b/src/views/contentData/index.js index 240bf0c..583fc11 100644 --- a/src/views/contentData/index.js +++ b/src/views/contentData/index.js @@ -381,7 +381,7 @@ export function mapUavFiex(options) { // verticalOrigin: Cesium.VerticalOrigin.BOTTOM // }, model: { - scale: 8, + scale: window.config.uavSize || 8, url: "/uav/scene.gltf", // 航向 heading: 0,