chore(deps): 升级 oxlint
This commit is contained in:
@ -1,19 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { DynamicTimeline, Viewer } from 'orbpro';
|
||||
import 'orbpro/style/widgets.css';
|
||||
import {
|
||||
Cartesian3,
|
||||
Cartographic,
|
||||
Math as CesiumMath,
|
||||
DynamicTimeline,
|
||||
// VERSION,
|
||||
EmbeddedTileServiceImageryProvider,
|
||||
GoogleMaps,
|
||||
ImageryLayer,
|
||||
SpaceEntity,
|
||||
TileMapServiceImageryProvider,
|
||||
Viewer,
|
||||
viewerReferenceFrameMixin,
|
||||
} from 'orbpro';
|
||||
|
||||
import { demoOrbitGeneration } from './fns';
|
||||
|
||||
|
@ -19,11 +19,8 @@ export function configureMapTile(viewer: Cesium.Viewer) {
|
||||
tooltip: '高德地图',
|
||||
});
|
||||
// 设置高德地图为默认图层
|
||||
viewer.baseLayerPicker.viewModel.imageryProviderViewModels.unshift(
|
||||
customLayerViewModel,
|
||||
);
|
||||
const selectedViewModel =
|
||||
viewer.baseLayerPicker.viewModel.imageryProviderViewModels[0];
|
||||
viewer.baseLayerPicker.viewModel.imageryProviderViewModels.unshift(customLayerViewModel);
|
||||
const selectedViewModel = viewer.baseLayerPicker.viewModel.imageryProviderViewModels[0];
|
||||
if (!selectedViewModel) {
|
||||
console.error('未找到默认底图');
|
||||
return;
|
||||
|
@ -1,15 +1,18 @@
|
||||
## 配置项目
|
||||
|
||||
- https://github.dev/CesiumGS/cesium-vite-example
|
||||
- https://cesium.com/blog/2024/02/13/configuring-vite-or-webpack-for-cesiumjs/
|
||||
- https://cesium.com/learn/cesiumjs-learn/cesiumjs-quickstart/
|
||||
- vite-plugin-cesium
|
||||
|
||||
## 参考
|
||||
|
||||
- https://www.npmjs.com/package/vue-cesium
|
||||
- https://zouyaoji.top/vue-cesium/#/zh-CN/component/controls/vc-navigation
|
||||
- https://cesium.pages.dev/
|
||||
|
||||
## 离线地图
|
||||
|
||||
- https://github.com/CesiumGS/cesium/tree/main/Documentation/OfflineGuide
|
||||
- https://blog.csdn.net/lhllhllhl_/article/details/145857779
|
||||
- https://blog.csdn.net/m0_54849806/article/details/126070809
|
||||
|
@ -10,8 +10,13 @@ onMounted(async () => {
|
||||
viewer = cesium_init(document.getElementById('cesiumContainer')!);
|
||||
Object.assign(globalThis, { viewer });
|
||||
|
||||
// demo_01_OrbitGeneration(viewer);
|
||||
demo_02_Track(viewer);
|
||||
(({ run }) => {
|
||||
if (run) demo_01_OrbitGeneration(viewer);
|
||||
})({ run: false });
|
||||
|
||||
(({ run }) => {
|
||||
if (run) demo_02_Track(viewer);
|
||||
})({ run: true });
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -17,7 +17,7 @@ useHead({
|
||||
|
||||
consola.info('routes', routes);
|
||||
|
||||
const FComponent: import('vue').FunctionalComponent<{ prop: string }> = (props, context) => (
|
||||
const FComponent: import('vue').FunctionalComponent<{ prop: string }> = (props /* context */) => (
|
||||
<>
|
||||
<a
|
||||
class="green"
|
||||
|
Reference in New Issue
Block a user