@anov/gis 1.6.2 → 1.6.4
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.
- package/README.md +21 -64
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/packages/cesiumthreelib/rollup.config.mjs +30 -0
- package/packages/cesiumthreelib/tsconfig.json +22 -0
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
5、基础Core,静态工具函数库,事件,数据计算,坐标转换等。
|
|
19
19
|
|
|
20
20
|
6、实体元素Grapic,添加到三维球上的entity/primitive,或者dom元素,多个Grapic构成图层Layer。
|
|
21
|
-
<img src="http://
|
|
21
|
+
<img src="http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis/gnjg.png" />
|
|
22
22
|
|
|
23
23
|
## 2、SDK安装
|
|
24
24
|
### 方式1
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
<html lang="en">
|
|
34
34
|
<head>
|
|
35
35
|
<title>@anov/gis最简完整demo</title>
|
|
36
|
-
<script type="text/javascript" src="https://unpkg.com/@anov/gis@1.2
|
|
37
|
-
<link rel="stylesheet" href="https://unpkg.com/@anov/gis@1.2
|
|
36
|
+
<script type="text/javascript" src="https://unpkg.com/@anov/gis@1.6.2/dist/index.js"></script>
|
|
37
|
+
<link rel="stylesheet" href="https://unpkg.com/@anov/gis@1.6.2/dist/index.css">
|
|
38
38
|
<style>
|
|
39
39
|
html,
|
|
40
40
|
body,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
#cesiumContainer {
|
|
43
43
|
margin: 0;
|
|
44
44
|
padding: 0;
|
|
45
|
-
width: 100%;
|
|
45
|
+
width: 100%;
|
|
46
46
|
height: 100%;
|
|
47
47
|
overflow: hidden;
|
|
48
48
|
}
|
|
@@ -52,14 +52,17 @@
|
|
|
52
52
|
<div id="cesiumContainer">
|
|
53
53
|
</div>
|
|
54
54
|
<script>
|
|
55
|
-
ANOVGIS.setBaseUrl('https://unpkg.com/@anov/gis@1.2
|
|
55
|
+
ANOVGIS.setBaseUrl('https://unpkg.com/@anov/gis@1.6.2/dist/resources/');
|
|
56
56
|
window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
geocoderType: ANOVGIS.GeocoderType.TIANDITU,
|
|
58
|
+
vrButton: false,
|
|
59
|
+
baseLayerPicker: true,
|
|
60
|
+
fullscreenButton: true,
|
|
61
|
+
homeButton: true,
|
|
62
|
+
sceneModePicker: true,
|
|
63
|
+
navigationHelpButton: true,
|
|
64
|
+
copyRight: false,
|
|
65
|
+
showMapInfo: true,
|
|
63
66
|
});
|
|
64
67
|
</script>
|
|
65
68
|
</body>
|
|
@@ -87,59 +90,13 @@ import ANOVGIS from "@anov/gis";
|
|
|
87
90
|
##### 2.1 vue-cli 技术栈时 的项目配置修改
|
|
88
91
|
工程模板下载: [anov-gis-vue](https://github.com/948033145/anov-gis-vue2)
|
|
89
92
|
|
|
90
|
-
<!-- 工程模板压缩包:[anov-gis-vue2.x](http://
|
|
91
|
-
|
|
92
|
-
const { defineConfig } = require('@vue/cli-service')
|
|
93
|
-
const CopywebpackPlugin = require('copy-webpack-plugin');
|
|
94
|
-
const cesiumSourcePath = 'node_modules/@anov/gis/dist/resources';
|
|
95
|
-
module.exports = defineConfig({
|
|
96
|
-
transpileDependencies: true,
|
|
97
|
-
lintOnSave: false,
|
|
98
|
-
configureWebpack: (config) => {
|
|
99
|
-
return {
|
|
100
|
-
plugins: [
|
|
101
|
-
new CopywebpackPlugin({
|
|
102
|
-
patterns: [
|
|
103
|
-
{
|
|
104
|
-
from: cesiumSourcePath,
|
|
105
|
-
to: 'anov-gis-sdk/resources',
|
|
106
|
-
},
|
|
107
|
-
]
|
|
108
|
-
})
|
|
109
|
-
],
|
|
110
|
-
module: { unknownContextCritical: false },
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
})
|
|
114
|
-
```
|
|
93
|
+
<!-- 工程模板压缩包:[anov-gis-vue2.x](http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis-vue2.zip) -->
|
|
94
|
+
|
|
115
95
|
##### 2.2 vue-vite 技术栈时 的项目配置修改
|
|
116
96
|
工程模板源码下载: [anov-gis-vite](https://github.com/948033145/anov-gis-vite)
|
|
117
97
|
|
|
118
|
-
<!-- 工程模板压缩包:[anov-gis-vite](http://
|
|
119
|
-
|
|
120
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
121
|
-
import { defineConfig } from 'vite'
|
|
122
|
-
import vue from '@vitejs/plugin-vue'
|
|
123
|
-
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
|
124
|
-
export default defineConfig({
|
|
125
|
-
plugins: [
|
|
126
|
-
vue(),
|
|
127
|
-
viteStaticCopy({
|
|
128
|
-
targets: [
|
|
129
|
-
{
|
|
130
|
-
src: 'node_modules/@anov/gis/dist/resources',
|
|
131
|
-
dest: 'anov-gis-sdk'
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
}),
|
|
135
|
-
],
|
|
136
|
-
resolve: {
|
|
137
|
-
alias: {
|
|
138
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
})
|
|
142
|
-
```
|
|
98
|
+
<!-- 工程模板压缩包:[anov-gis-vite](http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis-vite.zip) -->
|
|
99
|
+
|
|
143
100
|
## 3、快速上手
|
|
144
101
|
```javascript
|
|
145
102
|
window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
|
|
@@ -154,17 +111,17 @@ export default defineConfig({
|
|
|
154
111
|
drillPick: false,
|
|
155
112
|
});
|
|
156
113
|
```
|
|
157
|
-
<img src="http://
|
|
114
|
+
<img src="http://hvv1235667147:8888/cesiumdemo/data/mytest/datas/anov-gis/ksss.png" />
|
|
158
115
|
|
|
159
116
|
## 4、官网
|
|
160
117
|
|
|
161
118
|
## 5、教程
|
|
162
119
|
|
|
163
|
-
http://
|
|
120
|
+
http://hvv1235667147:3313/
|
|
164
121
|
|
|
165
122
|
## 6、功能示例
|
|
166
123
|
|
|
167
124
|
http://172.16.222.31:8866/
|
|
168
125
|
|
|
169
|
-
http://
|
|
126
|
+
http://hvv1235667147:3313/
|
|
170
127
|
|