@yangyongtao/gaea 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -10
  2. package/package.json +4 -1
  3. package/public/Gaea.js +22 -22
package/README.md CHANGED
@@ -29,24 +29,16 @@ export default defineConfig({
29
29
  ```vue
30
30
  <template>
31
31
  <div id="gaea-app">
32
- <div class="toolbar">
33
- <button @click="showWeather = !showWeather">天气控制</button>
34
- <button @click="showFly = !showFly">沿线飞行</button>
35
- </div>
36
32
 
37
33
  <div class="canvas-area">
38
34
  <canvas id="canvas"></canvas>
39
35
  </div>
40
-
41
- <WeatherControl v-if="showWeather" :appInstance="app" @close="showWeather = false" />
42
- <FlyAlongRoute v-if="showFly" :appInstance="app" @close="showFly = false" />
43
36
  </div>
44
37
  </template>
45
38
 
46
39
  <script setup>
47
40
  import { ref } from 'vue';
48
41
  import { GaeaApp, setConfig } from '@yangyongtao/gaea';
49
- import { WeatherControl, FlyAlongRoute } from '@yangyongtao/gaea/components';
50
42
 
51
43
  // 配置
52
44
  setConfig({
@@ -54,11 +46,12 @@ setConfig({
54
46
  serveUrl: 'http://192.168.3.151:8088/gaeaExplorerServer/',
55
47
  defaultLayers: [
56
48
  { layerName: 'earthland', forMat: 'image/png', min: 0, max: 18, transparency: 0.3 },
57
- { layerName: '苍南L19', forMat: 'image/png', min: 5, max: 17 },
49
+ { layerName: '苍南L19', forMat: 'image/png', min: 5, max: 17 },
58
50
  ],
51
+ useTianditu: true,
52
+ tiandituToken: '4ebb3872e465273416314341a99caea6',
59
53
  defaultCameraPosition: '27.3680928977018,120.414139621887,0,109379.690132486,0,0',
60
54
  });
61
-
62
55
  // 初始化(自动完成:引擎启动 → 环境初始化 → 图层加载)
63
56
  const app = new GaeaApp();
64
57
  window.APP = app;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yangyongtao/gaea",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Gaea 3D visualization component library - Vue 3 components based on Godot WASM engine. Includes WMTS layer loading, camera view control, Vite plugin auto-injection, etc.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -80,5 +80,8 @@
80
80
  "repository": {
81
81
  "type": "git",
82
82
  "url": "https://github.com/smallflypig/Gaea.git"
83
+ },
84
+ "devDependencies": {
85
+ "less": "^4.6.7"
83
86
  }
84
87
  }