@anov/gis 1.6.2 → 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 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.3/dist/index.js"></script>
37
- <link rel="stylesheet" href="https://unpkg.com/@anov/gis@1.2.3/dist/index.css">
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.3/dist/resources/');
55
+ ANOVGIS.setBaseUrl('https://unpkg.com/@anov/gis@1.6.2/dist/resources/');
56
56
  window.viewer = new ANOVGIS.Viewer("cesiumContainer", {
57
- vrButton: false,
58
- baseLayerPicker: true,
59
- fullscreenButton: true,
60
- homeButton: true,
61
- sceneModePicker: true,
62
- navigationHelpButton: true,
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>
@@ -88,58 +91,12 @@ import ANOVGIS from "@anov/gis";
88
91
  工程模板下载: [anov-gis-vue](https://github.com/948033145/anov-gis-vue2)
89
92
 
90
93
  <!-- 工程模板压缩包:[anov-gis-vue2.x](http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vue2.zip) -->
91
- ```javascript
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
- ```
94
+
115
95
  ##### 2.2 vue-vite 技术栈时 的项目配置修改
116
96
  工程模板源码下载: [anov-gis-vite](https://github.com/948033145/anov-gis-vite)
117
97
 
118
98
  <!-- 工程模板压缩包:[anov-gis-vite](http://123.56.67.147:8888/cesiumdemo/data/mytest/datas/anov-gis-vite.zip) -->
119
- ```javascript
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
- ```
99
+
143
100
  ## 3、快速上手
144
101
  ```javascript
145
102
  window.viewer = new ANOVGIS.Viewer("cesiumContainer", {