@anov/gis 1.6.1 → 1.6.2

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 +13 -12
  2. package/dist/index.js +1 -1
  3. package/package.json +9 -6
package/README.md CHANGED
@@ -87,7 +87,7 @@ import ANOVGIS from "@anov/gis";
87
87
  ##### 2.1 vue-cli 技术栈时 的项目配置修改
88
88
  工程模板下载: [anov-gis-vue](https://github.com/948033145/anov-gis-vue2)
89
89
 
90
- 工程模板压缩包:[anov-gis-vue2.x](http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vue2.zip)
90
+ <!-- 工程模板压缩包:[anov-gis-vue2.x](http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vue2.zip) -->
91
91
  ```javascript
92
92
  const { defineConfig } = require('@vue/cli-service')
93
93
  const CopywebpackPlugin = require('copy-webpack-plugin');
@@ -115,7 +115,7 @@ module.exports = defineConfig({
115
115
  ##### 2.2 vue-vite 技术栈时 的项目配置修改
116
116
  工程模板源码下载: [anov-gis-vite](https://github.com/948033145/anov-gis-vite)
117
117
 
118
- 工程模板压缩包:[anov-gis-vite](http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vite.zip)
118
+ <!-- 工程模板压缩包:[anov-gis-vite](http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vite.zip) -->
119
119
  ```javascript
120
120
  import { fileURLToPath, URL } from 'node:url'
121
121
  import { defineConfig } from 'vite'
@@ -142,16 +142,17 @@ export default defineConfig({
142
142
  ```
143
143
  ## 3、快速上手
144
144
  ```javascript
145
- // 初始化三维球
146
- window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
147
- homeButton: true
148
- });
149
- //添加天地图底图
150
- let imageryProvider = ANOVGIS.ImageryLayerFactory.createImageryLayer(ANOVGIS.ImageryType.TDT, {
151
- style: "img",
152
- key: 'b832b9764939cbb0919148c548b669ba'
153
- });
154
- viewer.imageryLayers.addImageryProvider(imageryProvider);
145
+ window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
146
+ geocoderType: ANOVGIS.GeocoderType.TIANDITU,
147
+ vrButton: false,
148
+ baseLayerPicker: true,
149
+ fullscreenButton: true,
150
+ homeButton: true,
151
+ sceneModePicker: true,
152
+ navigationHelpButton: true,
153
+ showMapInfo: true,
154
+ drillPick: false,
155
+ });
155
156
  ```
156
157
  <img src="http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis/ksss.png" />
157
158