@anov/gis 1.2.3 → 1.2.5
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 +42 -0
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -27,6 +27,48 @@
|
|
|
27
27
|
<link rel="stylesheet" href="./anov-gis-sdk/index.css">
|
|
28
28
|
<script src="./anov-gis-sdk/index.js"></script>
|
|
29
29
|
```
|
|
30
|
+
#### 完整demo
|
|
31
|
+
```html
|
|
32
|
+
<!DOCTYPE html>
|
|
33
|
+
<html lang="en">
|
|
34
|
+
<head>
|
|
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">
|
|
38
|
+
<style>
|
|
39
|
+
html,
|
|
40
|
+
body,
|
|
41
|
+
#app,
|
|
42
|
+
#cesiumContainer {
|
|
43
|
+
margin: 0;
|
|
44
|
+
padding: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
50
|
+
</head>
|
|
51
|
+
<body>
|
|
52
|
+
<div id="cesiumContainer">
|
|
53
|
+
</div>
|
|
54
|
+
<script>
|
|
55
|
+
ANOVGIS.setBaseUrl('https://unpkg.com/@anov/gis@1.2.3/dist/resources/');
|
|
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,
|
|
63
|
+
});
|
|
64
|
+
ANOVGIS.WidgetsControl.showAllControls({
|
|
65
|
+
index: 4,
|
|
66
|
+
});
|
|
67
|
+
</script>
|
|
68
|
+
</body>
|
|
69
|
+
</html>
|
|
70
|
+
```
|
|
71
|
+
|
|
30
72
|
### 方式2
|
|
31
73
|
#### 1、安装
|
|
32
74
|
`NPM / YARN` 的方式安装,它能更好地和 webpack 打包工具配合使用。
|