diff --git a/public/config.js b/public/config.js index fc35f17..800c6d5 100644 --- a/public/config.js +++ b/public/config.js @@ -9,7 +9,7 @@ const allPositionPitch = -90; // 全部防区跳转俯仰角 const currTime = 15; // 左侧无人机消失时间 -const uavSize = 8; // 无人机大小 +const uavSize = 50; // 无人机大小 window.mapConfig = { isCamera: isCamera, diff --git a/src/views/contentData/index.js b/src/views/contentData/index.js index 583fc11..0e38f89 100644 --- a/src/views/contentData/index.js +++ b/src/views/contentData/index.js @@ -353,7 +353,6 @@ export function mapUavFiex(options) { graphicLayer = new mars3d.layer.GraphicLayer({ id: "uavFiex" }); map.addLayer(graphicLayer); } - if (options.length === 0) { graphicLayer.remove(); } else { @@ -381,7 +380,7 @@ export function mapUavFiex(options) { // verticalOrigin: Cesium.VerticalOrigin.BOTTOM // }, model: { - scale: window.config.uavSize || 8, + scale: window.mapConfig.uavSize || 8, url: "/uav/scene.gltf", // 航向 heading: 0,