diff --git a/src/views/Index.vue b/src/views/Index.vue index 6e28944..d85d682 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -450,11 +450,9 @@ window.map.addLayer(graphicLayer) const positions = [ { lng: 114.84273043452548,lat: 25.743909014823874, alt: 800, datatime: "2021/3/25 0:01:00" }, - { lng: 114.84196376788776,lat: 25.751940319936182, alt: 800, datatime: "2021/3/25 0:01:02" }, - { lng: 114.8691880101212, lat: 25.75900615537251, alt: 800, datatime: "2021/3/25 0:01:04" }, - { lng: 114.87584148495861,lat: 25.75647465247287, alt: 800, datatime: "2021/3/25 0:01:06" }, - { lng: 114.88155905407521,lat: 25.763214561842943, alt: 800, datatime: "2021/3/25 0:01:08" }, - { lng: 114.88608080366917,lat: 25.76749171695476, alt: 800, datatime: "2021/3/25 0:01:10" } + { lng: 114.870905,lat: 25.702787, alt: 4225, datatime: "2021/3/25 0:01:00" }, + { lng: 114.876365,lat: 25.747736, alt: 1785, datatime: "2021/3/25 0:01:02" }, + { lng: 114.87817, lat: 25.77338, alt: 107.1, datatime: "2021/3/25 0:01:04" } ] const fixedRoute = new mars3d.graphic.FixedRoute({ name: "空中漫游", @@ -464,7 +462,7 @@ clockLoop: false, // 是否循环播放 interpolation: true, // setInterpolationOptions插值 camera: { - type: "dy", + type: "gs", followedX: 50, followedZ: 30 } @@ -613,7 +611,7 @@ symbol: { type: "waterC", styleOptions: { - height: 17, // 水面高度 + height: 25, // 水面高度 normalMap: "img/textures/waterNormals.jpg", // 水正常扰动的法线图 frequency: 8000.0, // 控制波数的数字。 animationSpeed: 0.02, // 控制水的动画速度的数字。 @@ -702,16 +700,16 @@ type: "wall", styleOptions: { fill: true, - diffHeight: 500, // 墙高 + diffHeight: 300, // 墙高 materialType: mars3d.MaterialType.LineFlow, // arcType: Cesium.ArcType.GEODESIC, outlineWidth: 8, outlineOpacity: 0.8, materialOptions: { - color: "#39aafa", // 颜色 - opacity: 0.5, // 透明度 + color: "#eedd88", // 颜色 + opacity: 0.6, // 透明度 outlineColor: "#ffffff", - addHeight:1000, + addHeight:200, image: "http://mars3d.cn/img/textures/fence.png", // 图片 repeatX: 3, // 重复数量 axisY: true, // 竖直方向 @@ -762,23 +760,6 @@ }) graphicLayer.addGraphic(divgraphic) - // 文化旅游中心 - const position1 = [114.84915, 25.805918, 0] // 用于围绕旋转 + 中心点扩散 + 旋转的图片 - const center1 = Cesium.Cartesian3.fromDegrees(position1[0], position1[1], 140) // 用于div标注和远眺的线 - // divgraphic标注 - const divgraphic1 = new mars3d.graphic.DivGraphic({ - position: center1, - style: { - html: `