feat: 整理 HCesiumViewerCls 相关
This commit is contained in:
@ -15,12 +15,11 @@ const groundStations = ref<GroundStationOptions[]>([
|
||||
|
||||
// 添加一个随机站点
|
||||
const addRandomStation = () => {
|
||||
const randomId = `gs-random-${Math.random().toString(36).slice(7)}`; // 使用 slice 替换 substring
|
||||
const randomId = `gs-random-${Math.random().toString(36).slice(7)}`;
|
||||
const randomLon = Math.random() * 360 - 180; // -180 to 180
|
||||
const randomLat = Math.random() * 180 - 90; // -90 to 90
|
||||
const randomHeight = Math.random() * 1000; // 0 to 1000 meters
|
||||
groundStations.value.push({
|
||||
// 调整属性顺序
|
||||
height: randomHeight,
|
||||
id: randomId,
|
||||
latitude: randomLat,
|
||||
|
Reference in New Issue
Block a user