@styzy/vue-amap 1.4.0 → 1.4.2
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/lib/vue-amap.common.js +109 -108
- package/lib/vue-amap.common.js.map +1 -1
- package/lib/vue-amap.umd.js +109 -108
- package/lib/vue-amap.umd.js.map +1 -1
- package/lib/vue-amap.umd.min.js +1 -1
- package/lib/vue-amap.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +19 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@styzy/vue-amap",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An AMap Plugins For Vue.js",
|
|
6
6
|
"keywords": [
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "git@github.com
|
|
14
|
+
"url": "git+ssh://git@github.com/styzy/vue-amap.git"
|
|
15
15
|
},
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/styzy/vue-amap/issues",
|
package/types/index.d.ts
CHANGED
|
@@ -81,20 +81,38 @@ type GlobalMapOptions = Record<string, any>
|
|
|
81
81
|
declare module '@styzy/vue-amap' {
|
|
82
82
|
import { PluginFunction } from 'vue'
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* 高德地图 SDK 加载器
|
|
86
|
+
*
|
|
87
|
+
* - 可通过 `load()` 方法加载高德地图 SDK
|
|
88
|
+
*/
|
|
89
|
+
export const AMapLoader: IAMapLoader
|
|
90
|
+
|
|
84
91
|
/**
|
|
85
92
|
* 高德地图管理器
|
|
86
93
|
*/
|
|
87
94
|
export default class AMapManager {
|
|
95
|
+
/**
|
|
96
|
+
* 高德地图 SDK 加载器
|
|
97
|
+
*
|
|
98
|
+
* - 可通过 `load()` 方法加载高德地图 SDK
|
|
99
|
+
*/
|
|
100
|
+
static readonly AMapLoader: IAMapLoader
|
|
101
|
+
/**
|
|
102
|
+
* 全局地图选项
|
|
103
|
+
*/
|
|
104
|
+
static readonly globalMapOptions: GlobalMapOptions
|
|
88
105
|
/**
|
|
89
106
|
* 高德地图管理器版本号
|
|
90
107
|
*/
|
|
91
|
-
static version: string
|
|
108
|
+
static readonly version: string
|
|
92
109
|
/**
|
|
93
110
|
* 安装高德地图组件,提供给 Vue 安装,注册组件
|
|
94
111
|
*/
|
|
95
112
|
static install: PluginFunction<void>
|
|
96
113
|
/**
|
|
97
114
|
* 初始化高德地图 SDK,加载地图脚本
|
|
115
|
+
*
|
|
98
116
|
* @param options 高德地图 SDK 加载器配置项
|
|
99
117
|
*/
|
|
100
118
|
static initAMap(options: InitOptions): Promise<AMap>
|