@anov/gis 1.6.1 → 1.6.3
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 +27 -69
- package/dist/index.js +1 -1
- package/package.json +9 -6
- package/packages/cesiumthreelib/rollup.config.mjs +30 -0
- package/packages/cesiumthreelib/tsconfig.json +22 -0
- package/packages/ui/dist/ui.common.js +25 -25
- package/packages/ui/dist/ui.css +1 -1
- package/packages/ui/dist/ui.umd.js +25 -25
- package/packages/ui/dist/ui.umd.min.js +1 -1
package/README.md
CHANGED
|
@@ -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,
|
|
@@ -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,71 +90,26 @@ 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://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vue2.zip)
|
|
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://123.56.67.147: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://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vite.zip)
|
|
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://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vite.zip) -->
|
|
99
|
+
|
|
143
100
|
## 3、快速上手
|
|
144
101
|
```javascript
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
102
|
+
window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
|
|
103
|
+
geocoderType: ANOVGIS.GeocoderType.TIANDITU,
|
|
104
|
+
vrButton: false,
|
|
105
|
+
baseLayerPicker: true,
|
|
106
|
+
fullscreenButton: true,
|
|
107
|
+
homeButton: true,
|
|
108
|
+
sceneModePicker: true,
|
|
109
|
+
navigationHelpButton: true,
|
|
110
|
+
showMapInfo: true,
|
|
111
|
+
drillPick: false,
|
|
112
|
+
});
|
|
155
113
|
```
|
|
156
114
|
<img src="http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis/ksss.png" />
|
|
157
115
|
|