| | |
| | | |
| | | // 1. 设置初始时间 |
| | | const date = new Date(2025, 3, 11, 12, 0, 0, 0); |
| | | const julianDate = SmartEarth.Cesium.JulianDate.fromDate(date); |
| | | const julianDate = SmartEarth.Cesium.JulianDate.fromDate(date); |
| | | // earthCtrl.viewer.clock.currentTime = julianDate; |
| | | |
| | | // 2. 配置时钟选项,禁止自动推进时间 |
| | |
| | | }, |
| | | }); |
| | | |
| | | console.log( |
| | | flyToHeight.value, |
| | | "flyToHeight.value flyToHeight.value flyToHeight.value " |
| | | ); |
| | | } |
| | | |
| | | EventBus.on("close-selectArea", () => { |
| | |
| | | initMap(); |
| | | // 在你的初始化代码中调用这个函数 |
| | | addCityPolygon(); |
| | | initHandler(); |
| | | // initHandler(); |
| | | // initView() |
| | | loadAreaPolygon("/json/nsl_area.geojson"); |
| | | loadAreaPolygonAll("/json/geometry.json", true); |
| | |
| | | position: absolute; |
| | | } |
| | | // // 修改指南针位置 |
| | | // /deep/ .compass { |
| | | // right: 128px !important; |
| | | // top: 112px; |
| | | // } |
| | | /deep/ .compass { |
| | | right: 128px !important; |
| | | top: 112px; |
| | | } |
| | | </style> |