map-2d-base 1.0.0 → 1.2.0
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 +19 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 乾坤地图库底层依赖
|
|
2
|
+
|
|
3
|
+
## 使用
|
|
4
|
+
```js
|
|
5
|
+
import { Map, View, Feature, Overlay, TileLayer, XYZ } from 'map-2d-base';
|
|
6
|
+
import "map-2d-base/index.css"
|
|
7
|
+
import { toLonLat, fromLonLat } from 'map-2d-base/utils';
|
|
8
|
+
import { Style, Icon, Circle, Fill, Stroke, Text } from 'map-2d-base/style';
|
|
9
|
+
import { Point } from 'map-2d-base/geom';
|
|
10
|
+
|
|
11
|
+
this.map = new Map({target: this.mapContainer})
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
2
20
|
|
|
3
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "map-2d-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "乾坤2D地图库的基础依赖库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"qiankun-map-2d",
|
|
48
48
|
"map-2d-base"
|
|
49
49
|
],
|
|
50
|
-
"author": "
|
|
50
|
+
"author": "qiankun-zck",
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|