@dcloudio/uni-app-x 0.7.58 → 0.7.59

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.
Files changed (138) hide show
  1. package/package.json +6 -2
  2. package/types/index.d.ts +1 -0
  3. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  4. package/types/native/DOMRect.d.ts +60 -10
  5. package/types/native/IUniElement.d.ts +459 -0
  6. package/types/native/UniElement.d.ts +3 -2
  7. package/types/native/UniPage.d.ts +2 -2
  8. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  9. package/types/native/UniWebViewElement.d.ts +3 -1
  10. package/types/native/global.d.ts +8 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +5 -5
  13. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
  14. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
  15. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
  16. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
  17. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
  18. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
  19. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
  20. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
  21. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
  22. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
  23. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
  24. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
  25. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
  26. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
  27. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
  28. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
  29. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
  30. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
  31. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
  32. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
  33. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
  34. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
  35. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
  36. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
  37. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
  38. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
  39. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
  40. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
  41. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
  42. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
  43. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
  44. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
  45. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
  46. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
  47. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
  48. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
  49. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
  50. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
  51. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
  52. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
  53. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
  54. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
  55. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
  56. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
  57. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
  58. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
  59. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
  60. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
  61. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
  62. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
  63. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
  64. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
  65. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
  66. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
  67. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
  68. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
  69. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
  70. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
  71. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
  72. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
  73. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
  74. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
  75. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
  76. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
  77. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
  78. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
  79. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
  80. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
  81. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
  82. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
  83. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
  84. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  85. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  86. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  87. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  88. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  89. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  91. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
  92. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  93. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  94. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
  96. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
  98. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  99. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
  100. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
  101. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
  102. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
  103. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  104. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  105. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
  106. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
  107. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  108. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  109. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
  110. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  111. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  112. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  113. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  114. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  115. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
  116. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  117. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  118. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  119. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  120. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  121. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  122. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  123. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  124. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
  125. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
  126. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
  127. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
  128. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
  129. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
  130. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
  131. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
  132. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
  133. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
  137. package/types/uni-cloud/interface.d.ts +229 -0
  138. package/types/vite.d.ts +269 -0
@@ -0,0 +1,2359 @@
1
+ export type LocationObject = {
2
+ /**
3
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
4
+ * @uniPlatform {
5
+ * "app": {
6
+ * "android": {
7
+ * "osVer": "4.4",
8
+ * "uniVer": "x",
9
+ * "unixVer": "4.31"
10
+ * },
11
+ * "ios": {
12
+ * "osVer": "12.0",
13
+ * "uniVer": "x",
14
+ * "unixVer": "4.31"
15
+ * },
16
+ * },
17
+ * }
18
+ *
19
+ */
20
+ latitude : number;
21
+ /**
22
+ * 经度,范围为-180~180,负数表示西经
23
+ * @uniPlatform {
24
+ * "app": {
25
+ * "android": {
26
+ * "osVer": "4.4",
27
+ * "uniVer": "x",
28
+ * "unixVer": "4.31"
29
+ * },
30
+ * "ios": {
31
+ * "osVer": "12.0",
32
+ * "uniVer": "x",
33
+ * "unixVer": "4.31"
34
+ * },
35
+ * },
36
+ * }
37
+ *
38
+ */
39
+ longitude : number;
40
+ };
41
+
42
+ export type Marker = {
43
+ /**
44
+ * 标记点id,marker点击事件回调会返回此id。建议为每个marker设置上Number类型id,保证更新marker时有更好的性能。最大限制9位数
45
+ * @uniPlatform {
46
+ * "app": {
47
+ * "android": {
48
+ * "osVer": "4.4",
49
+ * "uniVer": "x",
50
+ * "unixVer": "4.31"
51
+ * },
52
+ * "ios": {
53
+ * "osVer": "12.0",
54
+ * "uniVer": "x",
55
+ * "unixVer": "4.31"
56
+ * },
57
+ * },
58
+ * }
59
+ *
60
+ */
61
+ id : number;
62
+ /**
63
+ * 纬度,浮点数,范围 -90 ~ 90
64
+ * @uniPlatform {
65
+ * "app": {
66
+ * "android": {
67
+ * "osVer": "4.4",
68
+ * "uniVer": "x",
69
+ * "unixVer": "4.31"
70
+ * },
71
+ * "ios": {
72
+ * "osVer": "12.0",
73
+ * "uniVer": "x",
74
+ * "unixVer": "4.31"
75
+ * },
76
+ * },
77
+ * }
78
+ *
79
+ */
80
+ latitude : number;
81
+ /**
82
+ * 经度,浮点数,范围 -180 ~ 180
83
+ * @uniPlatform {
84
+ * "app": {
85
+ * "android": {
86
+ * "osVer": "4.4",
87
+ * "uniVer": "x",
88
+ * "unixVer": "4.31"
89
+ * },
90
+ * "ios": {
91
+ * "osVer": "12.0",
92
+ * "uniVer": "x",
93
+ * "unixVer": "4.31"
94
+ * },
95
+ * },
96
+ * }
97
+ *
98
+ */
99
+ longitude : number;
100
+ /**
101
+ * 显示的图标,项目目录下的图片路径,支持相对路径写法,以'/'开头则表示相对小程序根目录;也支持临时路径
102
+ * @uniPlatform {
103
+ * "app": {
104
+ * "android": {
105
+ * "osVer": "4.4",
106
+ * "uniVer": "x",
107
+ * "unixVer": "4.31"
108
+ * },
109
+ * "ios": {
110
+ * "osVer": "12.0",
111
+ * "uniVer": "x",
112
+ * "unixVer": "4.31"
113
+ * },
114
+ * },
115
+ * }
116
+ *
117
+ */
118
+ iconPath : string;
119
+
120
+ /**
121
+ * 标注点名,点击时显示,callout存在时将被忽略
122
+ * @defaultValue null
123
+ * @uniPlatform {
124
+ * "app": {
125
+ * "android": {
126
+ * "osVer": "4.4",
127
+ * "uniVer": "x",
128
+ * "unixVer": "4.31"
129
+ * },
130
+ * "ios": {
131
+ * "osVer": "12.0",
132
+ * "uniVer": "x",
133
+ * "unixVer": "4.31"
134
+ * },
135
+ * },
136
+ * }
137
+ *
138
+ */
139
+ title ?: string | null;
140
+ /**
141
+ * 旋转角度,顺时针旋转的角度,范围 0 ~ 360
142
+ * @defaultValue 0
143
+ * @uniPlatform {
144
+ * "app": {
145
+ * "android": {
146
+ * "osVer": "4.4",
147
+ * "uniVer": "x",
148
+ * "unixVer": "4.31"
149
+ * },
150
+ * "ios": {
151
+ * "osVer": "12.0",
152
+ * "uniVer": "x",
153
+ * "unixVer": "4.31"
154
+ * },
155
+ * },
156
+ * }
157
+ *
158
+ */
159
+ rotate ?: number | null;
160
+ /**
161
+ * 标注的透明度,范围 0 ~ 1
162
+ * @defaultValue 1
163
+ * @uniPlatform {
164
+ * "app": {
165
+ * "android": {
166
+ * "osVer": "4.4",
167
+ * "uniVer": "x",
168
+ * "unixVer": "4.31"
169
+ * },
170
+ * "ios": {
171
+ * "osVer": "12.0",
172
+ * "uniVer": "x",
173
+ * "unixVer": "4.31"
174
+ * },
175
+ * },
176
+ * }
177
+ *
178
+ */
179
+ alpha ?: number | null;
180
+ /**
181
+ * 标注图标宽度
182
+ * @defaultValue 默认为图片实际宽度
183
+ * @uniPlatform {
184
+ * "app": {
185
+ * "android": {
186
+ * "osVer": "4.4",
187
+ * "uniVer": "x",
188
+ * "unixVer": "4.31"
189
+ * },
190
+ * "ios": {
191
+ * "osVer": "12.0",
192
+ * "uniVer": "x",
193
+ * "unixVer": "4.31"
194
+ * },
195
+ * },
196
+ * }
197
+ *
198
+ */
199
+ width ?: number | null;
200
+ /**
201
+ * 标注图标高度
202
+ * @defaultValue 默认为图片实际高度
203
+ * @uniPlatform {
204
+ * "app": {
205
+ * "android": {
206
+ * "osVer": "4.4",
207
+ * "uniVer": "x",
208
+ * "unixVer": "4.31"
209
+ * },
210
+ * "ios": {
211
+ * "osVer": "12.0",
212
+ * "uniVer": "x",
213
+ * "unixVer": "4.31"
214
+ * },
215
+ * },
216
+ * }
217
+ *
218
+ */
219
+ height ?: number | null;
220
+ /**
221
+ * 无障碍访问,(属性)元素的额外描述
222
+ * @defaultValue null
223
+ * @uniPlatform {
224
+ * "app": {
225
+ * "android": {
226
+ * "osVer": "4.4",
227
+ * "uniVer": "x",
228
+ * "unixVer": "x"
229
+ * },
230
+ * "ios": {
231
+ * "osVer": "12.0",
232
+ * "uniVer": "x",
233
+ * "unixVer": "4.31"
234
+ * },
235
+ * },
236
+ * }
237
+ *
238
+ */
239
+ ariaLabel ?: string | null;
240
+ /**
241
+ * 经纬度在标注图标的锚点,默认底边中点 {x, y},x表示横向(0-1),y表示竖向(0-1)。{x: .5, y: 1} 表示底边中点
242
+ * @defaultValue [0.5, 1]
243
+ * @uniPlatform {
244
+ * "app": {
245
+ * "android": {
246
+ * "osVer": "4.4",
247
+ * "uniVer": "x",
248
+ * "unixVer": "4.31"
249
+ * },
250
+ * "ios": {
251
+ * "osVer": "12.0",
252
+ * "uniVer": "x",
253
+ * "unixVer": "4.31"
254
+ * },
255
+ * },
256
+ * }
257
+ *
258
+ */
259
+ anchor ?: Anchor | null;
260
+ /**
261
+ * 自定义标记点上方的气泡窗口
262
+ * @defaultValue null
263
+ * @uniPlatform {
264
+ * "app": {
265
+ * "android": {
266
+ * "osVer": "4.4",
267
+ * "uniVer": "x",
268
+ * "unixVer": "4.51"
269
+ * },
270
+ * "ios": {
271
+ * "osVer": "12.0",
272
+ * "uniVer": "x",
273
+ * "unixVer": "4.51"
274
+ * },
275
+ * },
276
+ * }
277
+ *
278
+ */
279
+ callout ?: MapMarkerCallout | null
280
+
281
+
282
+ label ?: MapMarkerLabel | null
283
+ clusterId ?: number | null;
284
+ customCallout ?: MapMarkerCallout | null
285
+ joinCluster ?: boolean | null;
286
+ };
287
+
288
+
289
+ export type MapMarkerCallout = {
290
+ /**
291
+ * 文本
292
+ * @defaultValue ""
293
+ * @uniPlatform {
294
+ * "app": {
295
+ * "android": {
296
+ * "osVer": "4.4",
297
+ * "uniVer": "x",
298
+ * "unixVer": "4.51"
299
+ * },
300
+ * "ios": {
301
+ * "osVer": "12.0",
302
+ * "uniVer": "x",
303
+ * "unixVer": "4.51"
304
+ * },
305
+ * },
306
+ * }
307
+ *
308
+ */
309
+ content ?: string | null;
310
+ /**
311
+ * 文本颜色
312
+ * @defaultValue "black"
313
+ * @uniPlatform {
314
+ * "app": {
315
+ * "android": {
316
+ * "osVer": "4.4",
317
+ * "uniVer": "x",
318
+ * "unixVer": "4.51"
319
+ * },
320
+ * "ios": {
321
+ * "osVer": "12.0",
322
+ * "uniVer": "x",
323
+ * "unixVer": "4.51"
324
+ * },
325
+ * },
326
+ * }
327
+ *
328
+ */
329
+ color ?: string.ColorString | null;
330
+ /**
331
+ * 文字大小
332
+ * @defaultValue null
333
+ * @uniPlatform {
334
+ * "app": {
335
+ * "android": {
336
+ * "osVer": "4.4",
337
+ * "uniVer": "x",
338
+ * "unixVer": "4.51"
339
+ * },
340
+ * "ios": {
341
+ * "osVer": "12.0",
342
+ * "uniVer": "x",
343
+ * "unixVer": "4.51"
344
+ * },
345
+ * },
346
+ * }
347
+ *
348
+ */
349
+ fontSize ?: number | null;
350
+ /**
351
+ * 边框圆角
352
+ * @defaultValue 0
353
+ * @uniPlatform {
354
+ * "app": {
355
+ * "android": {
356
+ * "osVer": "4.4",
357
+ * "uniVer": "x",
358
+ * "unixVer": "4.51"
359
+ * },
360
+ * "ios": {
361
+ * "osVer": "12.0",
362
+ * "uniVer": "x",
363
+ * "unixVer": "4.51"
364
+ * },
365
+ * },
366
+ * }
367
+ *
368
+ */
369
+ borderRadius ?: number | null;
370
+ /**
371
+ * 边框宽度
372
+ * @defaultValue 0
373
+ * @uniPlatform {
374
+ * "app": {
375
+ * "android": {
376
+ * "osVer": "4.4",
377
+ * "uniVer": "x",
378
+ * "unixVer": "4.51"
379
+ * },
380
+ * "ios": {
381
+ * "osVer": "12.0",
382
+ * "uniVer": "x",
383
+ * "unixVer": "4.51"
384
+ * },
385
+ * },
386
+ * }
387
+ *
388
+ */
389
+ borderWidth ?: number | null;
390
+ /**
391
+ * 边框颜色
392
+ * @defaultValue "transparent"
393
+ * @uniPlatform {
394
+ * "app": {
395
+ * "android": {
396
+ * "osVer": "4.4",
397
+ * "uniVer": "x",
398
+ * "unixVer": "4.51"
399
+ * },
400
+ * "ios": {
401
+ * "osVer": "12.0",
402
+ * "uniVer": "x",
403
+ * "unixVer": "4.51"
404
+ * },
405
+ * },
406
+ * }
407
+ *
408
+ */
409
+ borderColor ?: string.ColorString | null;
410
+ /**
411
+ * 背景色
412
+ * @defaultValue "#fff"
413
+ * @uniPlatform {
414
+ * "app": {
415
+ * "android": {
416
+ * "osVer": "4.4",
417
+ * "uniVer": "x",
418
+ * "unixVer": "4.51"
419
+ * },
420
+ * "ios": {
421
+ * "osVer": "12.0",
422
+ * "uniVer": "x",
423
+ * "unixVer": "4.51"
424
+ * },
425
+ * },
426
+ * }
427
+ *
428
+ */
429
+ bgColor ?: string.ColorString | null;
430
+ /**
431
+ * 文本边缘留白
432
+ * @defaultValue 0
433
+ * @uniPlatform {
434
+ * "app": {
435
+ * "android": {
436
+ * "osVer": "4.4",
437
+ * "uniVer": "x",
438
+ * "unixVer": "4.51"
439
+ * },
440
+ * "ios": {
441
+ * "osVer": "12.0",
442
+ * "uniVer": "x",
443
+ * "unixVer": "4.51"
444
+ * },
445
+ * },
446
+ * }
447
+ *
448
+ */
449
+ padding ?: number | null;
450
+ /**
451
+ * 'BYCLICK':点击显示; 'ALWAYS':常显
452
+ * @defaultValue "BYCLICK"
453
+ * @uniPlatform {
454
+ * "app": {
455
+ * "android": {
456
+ * "osVer": "4.4",
457
+ * "uniVer": "x",
458
+ * "unixVer": "4.51"
459
+ * },
460
+ * "ios": {
461
+ * "osVer": "12.0",
462
+ * "uniVer": "x",
463
+ * "unixVer": "4.51"
464
+ * },
465
+ * },
466
+ * }
467
+ *
468
+ */
469
+ display ?: "BYCLICK" | "ALWAYS" | null;
470
+ /**
471
+ * 文本对齐方式。
472
+ * @defaultValue "left"
473
+ * @uniPlatform {
474
+ * "app": {
475
+ * "android": {
476
+ * "osVer": "4.4",
477
+ * "uniVer": "x",
478
+ * "unixVer": "4.51"
479
+ * },
480
+ * "ios": {
481
+ * "osVer": "12.0",
482
+ * "uniVer": "x",
483
+ * "unixVer": "4.51"
484
+ * },
485
+ * },
486
+ * }
487
+ *
488
+ */
489
+ textAlign ?: "left" | "center" | "right" | null;
490
+ /**
491
+ * 横向偏移量,向右为正数
492
+ * @defaultValue 0.5
493
+ * @uniPlatform {
494
+ * "app": {
495
+ * "android": {
496
+ * "osVer": "4.4",
497
+ * "uniVer": "x",
498
+ * "unixVer": "x"
499
+ * },
500
+ * "ios": {
501
+ * "osVer": "12.0",
502
+ * "uniVer": "x",
503
+ * "unixVer": "x"
504
+ * },
505
+ * },
506
+ * }
507
+ *
508
+ */
509
+ anchorX ?: number | null;
510
+ /**
511
+ * 纵向偏移量,向下为正数
512
+ * @defaultValue 1
513
+ * @uniPlatform {
514
+ * "app": {
515
+ * "android": {
516
+ * "osVer": "4.4",
517
+ * "uniVer": "x",
518
+ * "unixVer": "x"
519
+ * },
520
+ * "ios": {
521
+ * "osVer": "12.0",
522
+ * "uniVer": "x",
523
+ * "unixVer": "x"
524
+ * },
525
+ * },
526
+ * }
527
+ *
528
+ */
529
+ anchorY ?: number | null;
530
+ }
531
+
532
+ export type MapMarkerLabel = {
533
+ content ?: string | null;
534
+ color ?: string | null;
535
+ fontSize ?: number | null;
536
+ x ?: number | null;
537
+ y ?: number | null;
538
+ anchorX ?: number | null;
539
+ anchorY ?: number | null;
540
+ borderWidth ?: number | null;
541
+ borderColor ?: string | null;
542
+ borderRadius ?: number | null;
543
+ bgColor ?: string | null;
544
+ padding ?: number | null;
545
+ textAlign ?: "left" | "center" | "right" | null;
546
+ ariaLabel ?: string | null;
547
+ }
548
+
549
+ export type Anchor = {
550
+ x : number,
551
+ y : number
552
+ }
553
+
554
+ export type Polyline = {
555
+ /**
556
+ * 经纬度数组
557
+ * @uniPlatform {
558
+ * "app": {
559
+ * "android": {
560
+ * "osVer": "4.4",
561
+ * "uniVer": "x",
562
+ * "unixVer": "4.31"
563
+ * },
564
+ * "ios": {
565
+ * "osVer": "12.0",
566
+ * "uniVer": "x",
567
+ * "unixVer": "4.31"
568
+ * },
569
+ * },
570
+ * }
571
+ *
572
+ */
573
+ points : LocationObject[];
574
+ /**
575
+ * 线的颜色
576
+ * @defaultValue null
577
+ * @uniPlatform {
578
+ * "app": {
579
+ * "android": {
580
+ * "osVer": "4.4",
581
+ * "uniVer": "x",
582
+ * "unixVer": "4.31"
583
+ * },
584
+ * "ios": {
585
+ * "osVer": "12.0",
586
+ * "uniVer": "x",
587
+ * "unixVer": "4.31"
588
+ * },
589
+ * },
590
+ * }
591
+ *
592
+ */
593
+ color ?: string.ColorString | null;
594
+ /**
595
+ * 线的宽度
596
+ * @defaultValue 0
597
+ * @uniPlatform {
598
+ * "app": {
599
+ * "android": {
600
+ * "osVer": "4.4",
601
+ * "uniVer": "x",
602
+ * "unixVer": "4.31"
603
+ * },
604
+ * "ios": {
605
+ * "osVer": "12.0",
606
+ * "uniVer": "x",
607
+ * "unixVer": "4.31"
608
+ * },
609
+ * },
610
+ * }
611
+ *
612
+ */
613
+ width ?: number | null;
614
+ /**
615
+ * 是否虚线
616
+ * @defaultValue false
617
+ * @uniPlatform {
618
+ * "app": {
619
+ * "android": {
620
+ * "osVer": "4.4",
621
+ * "uniVer": "x",
622
+ * "unixVer": "4.31"
623
+ * },
624
+ * "ios": {
625
+ * "osVer": "12.0",
626
+ * "uniVer": "x",
627
+ * "unixVer": "4.31"
628
+ * },
629
+ * },
630
+ * }
631
+ *
632
+ */
633
+ dottedLine ?: boolean | null;
634
+ /**
635
+ * 带箭头的线
636
+ * @defaultValue false
637
+ * @uniPlatform {
638
+ * "app": {
639
+ * "android": {
640
+ * "osVer": "4.4",
641
+ * "uniVer": "x",
642
+ * "unixVer": "4.31"
643
+ * },
644
+ * "ios": {
645
+ * "osVer": "12.0",
646
+ * "uniVer": "x",
647
+ * "unixVer": "4.31"
648
+ * },
649
+ * },
650
+ * }
651
+ *
652
+ */
653
+ arrowLine ?: boolean | null;
654
+ /**
655
+ * 更换箭头图标
656
+ * @defaultValue null
657
+ * @uniPlatform {
658
+ * "app": {
659
+ * "android": {
660
+ * "osVer": "4.4",
661
+ * "uniVer": "x",
662
+ * "unixVer": "4.31"
663
+ * },
664
+ * "ios": {
665
+ * "osVer": "12.0",
666
+ * "uniVer": "x",
667
+ * "unixVer": "4.31"
668
+ * },
669
+ * },
670
+ * }
671
+ *
672
+ */
673
+ arrowIconPath ?: string | null;
674
+ /**
675
+ * 线的边框颜色
676
+ * @defaultValue null
677
+ * @uniPlatform {
678
+ * "app": {
679
+ * "android": {
680
+ * "osVer": "4.4",
681
+ * "uniVer": "x",
682
+ * "unixVer": "x"
683
+ * },
684
+ * "ios": {
685
+ * "osVer": "12.0",
686
+ * "uniVer": "x",
687
+ * "unixVer": "x"
688
+ * },
689
+ * },
690
+ * }
691
+ *
692
+ */
693
+ borderColor ?: string.ColorString | null;
694
+ /**
695
+ * 线的厚度
696
+ * @defaultValue null
697
+ * @uniPlatform {
698
+ * "app": {
699
+ * "android": {
700
+ * "osVer": "4.4",
701
+ * "uniVer": "x",
702
+ * "unixVer": "x"
703
+ * },
704
+ * "ios": {
705
+ * "osVer": "12.0",
706
+ * "uniVer": "x",
707
+ * "unixVer": "x"
708
+ * },
709
+ * },
710
+ * }
711
+ *
712
+ */
713
+ borderWidth ?: number | null;
714
+ /**
715
+ * 彩虹线
716
+ * @defaultValue null
717
+ * @uniPlatform {
718
+ * "app": {
719
+ * "android": {
720
+ * "osVer": "4.4",
721
+ * "uniVer": "x",
722
+ * "unixVer": "4.31"
723
+ * },
724
+ * "ios": {
725
+ * "osVer": "12.0",
726
+ * "uniVer": "x",
727
+ * "unixVer": "4.31"
728
+ * },
729
+ * },
730
+ * }
731
+ *
732
+ */
733
+ colorList ?: string[] | null;
734
+ };
735
+
736
+ export type Polygon = {
737
+ /**
738
+ * 经纬度数组
739
+ * @uniPlatform {
740
+ * "app": {
741
+ * "android": {
742
+ * "osVer": "4.4",
743
+ * "uniVer": "x",
744
+ * "unixVer": "4.31"
745
+ * },
746
+ * "ios": {
747
+ * "osVer": "12.0",
748
+ * "uniVer": "x",
749
+ * "unixVer": "4.31"
750
+ * },
751
+ * },
752
+ * }
753
+ *
754
+ */
755
+ points : LocationObject[];
756
+ /**
757
+ * 描边的宽度
758
+ * @defaultValue 0
759
+ * @uniPlatform {
760
+ * "app": {
761
+ * "android": {
762
+ * "osVer": "4.4",
763
+ * "uniVer": "x",
764
+ * "unixVer": "4.31"
765
+ * },
766
+ * "ios": {
767
+ * "osVer": "12.0",
768
+ * "uniVer": "x",
769
+ * "unixVer": "4.31"
770
+ * },
771
+ * },
772
+ * }
773
+ *
774
+ */
775
+ strokeWidth ?: number | null;
776
+ /**
777
+ * 描边的颜色
778
+ * @defaultValue null
779
+ * @uniPlatform {
780
+ * "app": {
781
+ * "android": {
782
+ * "osVer": "4.4",
783
+ * "uniVer": "x",
784
+ * "unixVer": "4.31"
785
+ * },
786
+ * "ios": {
787
+ * "osVer": "12.0",
788
+ * "uniVer": "x",
789
+ * "unixVer": "4.31"
790
+ * },
791
+ * },
792
+ * }
793
+ *
794
+ */
795
+ strokeColor ?: string.ColorString | null;
796
+ /**
797
+ * 填充颜色
798
+ * @defaultValue null
799
+ * @uniPlatform {
800
+ * "app": {
801
+ * "android": {
802
+ * "osVer": "4.4",
803
+ * "uniVer": "x",
804
+ * "unixVer": "4.31"
805
+ * },
806
+ * "ios": {
807
+ * "osVer": "12.0",
808
+ * "uniVer": "x",
809
+ * "unixVer": "4.31"
810
+ * },
811
+ * },
812
+ * }
813
+ *
814
+ */
815
+ fillColor ?: string.ColorString | null;
816
+ /**
817
+ * 设置多边形 Z 轴数值
818
+ * @defaultValue 0
819
+ * @uniPlatform {
820
+ * "app": {
821
+ * "android": {
822
+ * "osVer": "4.4",
823
+ * "uniVer": "x",
824
+ * "unixVer": "4.31"
825
+ * },
826
+ * "ios": {
827
+ * "osVer": "12.0",
828
+ * "uniVer": "x",
829
+ * "unixVer": "4.31"
830
+ * },
831
+ * },
832
+ * }
833
+ *
834
+ */
835
+ zIndex ?: number | null;
836
+ };
837
+
838
+ export type Circle = {
839
+ /**
840
+ * 纬度
841
+ * @uniPlatform {
842
+ * "app": {
843
+ * "android": {
844
+ * "osVer": "4.4",
845
+ * "uniVer": "x",
846
+ * "unixVer": "4.31"
847
+ * },
848
+ * "ios": {
849
+ * "osVer": "12.0",
850
+ * "uniVer": "x",
851
+ * "unixVer": "4.31"
852
+ * },
853
+ * },
854
+ * }
855
+ *
856
+ */
857
+ latitude : number;
858
+ /**
859
+ * 经度
860
+ * @uniPlatform {
861
+ * "app": {
862
+ * "android": {
863
+ * "osVer": "4.4",
864
+ * "uniVer": "x",
865
+ * "unixVer": "4.31"
866
+ * },
867
+ * "ios": {
868
+ * "osVer": "12.0",
869
+ * "uniVer": "x",
870
+ * "unixVer": "4.31"
871
+ * },
872
+ * },
873
+ * }
874
+ *
875
+ */
876
+ longitude : number;
877
+ /**
878
+ * 半径
879
+ * @uniPlatform {
880
+ * "app": {
881
+ * "android": {
882
+ * "osVer": "4.4",
883
+ * "uniVer": "x",
884
+ * "unixVer": "4.31"
885
+ * },
886
+ * "ios": {
887
+ * "osVer": "12.0",
888
+ * "uniVer": "x",
889
+ * "unixVer": "4.31"
890
+ * },
891
+ * },
892
+ * }
893
+ *
894
+ */
895
+ radius : number;
896
+ /**
897
+ * 描边的颜色
898
+ * @defaultValue null
899
+ * @uniPlatform {
900
+ * "app": {
901
+ * "android": {
902
+ * "osVer": "4.4",
903
+ * "uniVer": "x",
904
+ * "unixVer": "4.31"
905
+ * },
906
+ * "ios": {
907
+ * "osVer": "12.0",
908
+ * "uniVer": "x",
909
+ * "unixVer": "4.31"
910
+ * },
911
+ * },
912
+ * }
913
+ *
914
+ */
915
+ color ?: string.ColorString | null;
916
+ /**
917
+ * 填充颜色
918
+ * @defaultValue null
919
+ * @uniPlatform {
920
+ * "app": {
921
+ * "android": {
922
+ * "osVer": "4.4",
923
+ * "uniVer": "x",
924
+ * "unixVer": "4.31"
925
+ * },
926
+ * "ios": {
927
+ * "osVer": "12.0",
928
+ * "uniVer": "x",
929
+ * "unixVer": "4.31"
930
+ * },
931
+ * },
932
+ * }
933
+ *
934
+ */
935
+ fillColor ?: string.ColorString | null;
936
+ /**
937
+ * 描边的宽度
938
+ * @defaultValue 0
939
+ * @uniPlatform {
940
+ * "app": {
941
+ * "android": {
942
+ * "osVer": "4.4",
943
+ * "uniVer": "x",
944
+ * "unixVer": "4.31"
945
+ * },
946
+ * "ios": {
947
+ * "osVer": "12.0",
948
+ * "uniVer": "x",
949
+ * "unixVer": "4.31"
950
+ * },
951
+ * },
952
+ * }
953
+ *
954
+ */
955
+ strokeWidth ?: number | null;
956
+ };
957
+
958
+ export type ControlPosition = {
959
+ /**
960
+ * 距离地图的左边界多远
961
+ * @defaultValue 0
962
+ * @uniPlatform {
963
+ * "app": {
964
+ * "android": {
965
+ * "osVer": "4.4",
966
+ * "uniVer": "x",
967
+ * "unixVer": "4.31"
968
+ * },
969
+ * "ios": {
970
+ * "osVer": "12.0",
971
+ * "uniVer": "x",
972
+ * "unixVer": "4.31"
973
+ * },
974
+ * },
975
+ * }
976
+ *
977
+ */
978
+ left ?: number | null;
979
+ /**
980
+ * 距离地图的上边界多远
981
+ * @defaultValue 0
982
+ * @uniPlatform {
983
+ * "app": {
984
+ * "android": {
985
+ * "osVer": "4.4",
986
+ * "uniVer": "x",
987
+ * "unixVer": "4.31"
988
+ * },
989
+ * "ios": {
990
+ * "osVer": "12.0",
991
+ * "uniVer": "x",
992
+ * "unixVer": "4.31"
993
+ * },
994
+ * },
995
+ * }
996
+ *
997
+ */
998
+ top ?: number | null;
999
+ /**
1000
+ * 控件宽度
1001
+ * @defaultValue 0
1002
+ * @uniPlatform {
1003
+ * "app": {
1004
+ * "android": {
1005
+ * "osVer": "4.4",
1006
+ * "uniVer": "x",
1007
+ * "unixVer": "4.31"
1008
+ * },
1009
+ * "ios": {
1010
+ * "osVer": "12.0",
1011
+ * "uniVer": "x",
1012
+ * "unixVer": "4.31"
1013
+ * },
1014
+ * },
1015
+ * }
1016
+ *
1017
+ */
1018
+ width ?: number | null;
1019
+ /**
1020
+ * 控件高度
1021
+ * @defaultValue 0
1022
+ * @uniPlatform {
1023
+ * "app": {
1024
+ * "android": {
1025
+ * "osVer": "4.4",
1026
+ * "uniVer": "x",
1027
+ * "unixVer": "4.31"
1028
+ * },
1029
+ * "ios": {
1030
+ * "osVer": "12.0",
1031
+ * "uniVer": "x",
1032
+ * "unixVer": "4.31"
1033
+ * },
1034
+ * },
1035
+ * }
1036
+ *
1037
+ */
1038
+ height ?: number | null;
1039
+ };
1040
+
1041
+ export type Control = {
1042
+ /**
1043
+ * 控件相对地图位置
1044
+ * @uniPlatform {
1045
+ * "app": {
1046
+ * "android": {
1047
+ * "osVer": "4.4",
1048
+ * "uniVer": "x",
1049
+ * "unixVer": "4.31"
1050
+ * },
1051
+ * "ios": {
1052
+ * "osVer": "12.0",
1053
+ * "uniVer": "x",
1054
+ * "unixVer": "4.31"
1055
+ * },
1056
+ * },
1057
+ * }
1058
+ *
1059
+ */
1060
+ position : ControlPosition;
1061
+ /**
1062
+ * 项目目录下的图片路径,支持相对路径写法,以'/'开头则表示相对项目根目录;也支持临时路径
1063
+ * @uniPlatform {
1064
+ * "app": {
1065
+ * "android": {
1066
+ * "osVer": "4.4",
1067
+ * "uniVer": "x",
1068
+ * "unixVer": "4.31"
1069
+ * },
1070
+ * "ios": {
1071
+ * "osVer": "12.0",
1072
+ * "uniVer": "x",
1073
+ * "unixVer": "4.31"
1074
+ * },
1075
+ * },
1076
+ * }
1077
+ *
1078
+ */
1079
+ iconPath : string;
1080
+ /**
1081
+ * 在控件点击事件回调会返回此id
1082
+ * @defaultValue null
1083
+ * @uniPlatform {
1084
+ * "app": {
1085
+ * "android": {
1086
+ * "osVer": "4.4",
1087
+ * "uniVer": "x",
1088
+ * "unixVer": "4.31"
1089
+ * },
1090
+ * "ios": {
1091
+ * "osVer": "12.0",
1092
+ * "uniVer": "x",
1093
+ * "unixVer": "4.31"
1094
+ * },
1095
+ * },
1096
+ * }
1097
+ *
1098
+ */
1099
+ id ?: number | null;
1100
+ /**
1101
+ * 默认不可点击
1102
+ * @defaultValue false
1103
+ * @uniPlatform {
1104
+ * "app": {
1105
+ * "android": {
1106
+ * "osVer": "4.4",
1107
+ * "uniVer": "x",
1108
+ * "unixVer": "4.31"
1109
+ * },
1110
+ * "ios": {
1111
+ * "osVer": "12.0",
1112
+ * "uniVer": "x",
1113
+ * "unixVer": "4.31"
1114
+ * },
1115
+ * },
1116
+ * }
1117
+ *
1118
+ */
1119
+ clickable ?: boolean | null;
1120
+ };
1121
+
1122
+ export type Bounds = {
1123
+ /**
1124
+ * 西南角的经纬度
1125
+ * @uniPlatform {
1126
+ * "app": {
1127
+ * "android": {
1128
+ * "osVer": "4.4",
1129
+ * "uniVer": "x",
1130
+ * "unixVer": "4.31"
1131
+ * },
1132
+ * "ios": {
1133
+ * "osVer": "12.0",
1134
+ * "uniVer": "x",
1135
+ * "unixVer": "4.31"
1136
+ * },
1137
+ * },
1138
+ * }
1139
+ *
1140
+ */
1141
+ southwest : LocationObject;
1142
+ /**
1143
+ * 东北角的经纬度
1144
+ * @uniPlatform {
1145
+ * "app": {
1146
+ * "android": {
1147
+ * "osVer": "4.4",
1148
+ * "uniVer": "x",
1149
+ * "unixVer": "4.31"
1150
+ * },
1151
+ * "ios": {
1152
+ * "osVer": "12.0",
1153
+ * "uniVer": "x",
1154
+ * "unixVer": "4.31"
1155
+ * },
1156
+ * },
1157
+ * }
1158
+ *
1159
+ */
1160
+ northeast : LocationObject;
1161
+ };
1162
+
1163
+ export type CreateMapContext = (
1164
+ mapId : string,
1165
+ component ?: ComponentPublicInstance | null
1166
+ ) => MapContext | null;
1167
+
1168
+ export type MapContextGetCenterLocationOptions = {
1169
+ /**
1170
+ * 接口调用成功的回调函数
1171
+ */
1172
+ success ?: ((result : LocationObject) => void) | null;
1173
+ /**
1174
+ * 接口调用失败的回调函数
1175
+ * @defaultValue null
1176
+ */
1177
+ fail ?: ((result : MapContextFail) => void) | null;
1178
+ /**
1179
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1180
+ * @defaultValue null
1181
+ */
1182
+ complete ?: ((result : any) => void) | null;
1183
+ };
1184
+
1185
+ export type MapContextMoveToLocationOptions = {
1186
+ /**
1187
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
1188
+ * @defaultValue null
1189
+ * @uniPlatform {
1190
+ * "app": {
1191
+ * "android": {
1192
+ * "osVer": "4.4",
1193
+ * "uniVer": "x",
1194
+ * "unixVer": "4.31"
1195
+ * },
1196
+ * "ios": {
1197
+ * "osVer": "12.0",
1198
+ * "uniVer": "x",
1199
+ * "unixVer": "4.31"
1200
+ * },
1201
+ * },
1202
+ * }
1203
+ *
1204
+ */
1205
+ latitude ?: number | null;
1206
+ /**
1207
+ * 经度,范围为-180~180,负数表示西经
1208
+ * @defaultValue null
1209
+ * @uniPlatform {
1210
+ * "app": {
1211
+ * "android": {
1212
+ * "osVer": "4.4",
1213
+ * "uniVer": "x",
1214
+ * "unixVer": "4.31"
1215
+ * },
1216
+ * "ios": {
1217
+ * "osVer": "12.0",
1218
+ * "uniVer": "x",
1219
+ * "unixVer": "4.31"
1220
+ * },
1221
+ * },
1222
+ * }
1223
+ *
1224
+ */
1225
+ longitude ?: number | null;
1226
+ /**
1227
+ * 接口调用成功的回调函数
1228
+ * @defaultValue null
1229
+ */
1230
+ success ?: ((result : any) => void) | null;
1231
+ /**
1232
+ * 接口调用失败的回调函数
1233
+ * @defaultValue null
1234
+ */
1235
+ fail ?: ((result : MapContextFail) => void) | null;
1236
+ /**
1237
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1238
+ * @defaultValue null
1239
+ */
1240
+ complete ?: ((result : any) => void) | null;
1241
+ };
1242
+
1243
+ export type MapContextTranslateMarkerOptions = {
1244
+ /**
1245
+ * 指定marker
1246
+ * @uniPlatform {
1247
+ * "app": {
1248
+ * "android": {
1249
+ * "osVer": "4.4",
1250
+ * "uniVer": "x",
1251
+ * "unixVer": "4.31"
1252
+ * },
1253
+ * "ios": {
1254
+ * "osVer": "12.0",
1255
+ * "uniVer": "x",
1256
+ * "unixVer": "4.31"
1257
+ * },
1258
+ * },
1259
+ * }
1260
+ *
1261
+ */
1262
+ markerId : number;
1263
+ /**
1264
+ * 指定marker移动到的目标点
1265
+ * @uniPlatform {
1266
+ * "app": {
1267
+ * "android": {
1268
+ * "osVer": "4.4",
1269
+ * "uniVer": "x",
1270
+ * "unixVer": "4.31"
1271
+ * },
1272
+ * "ios": {
1273
+ * "osVer": "12.0",
1274
+ * "uniVer": "x",
1275
+ * "unixVer": "4.31"
1276
+ * },
1277
+ * },
1278
+ * }
1279
+ *
1280
+ */
1281
+ destination : LocationObject;
1282
+ /**
1283
+ * 移动过程中是否自动旋转marker
1284
+ * @uniPlatform {
1285
+ * "app": {
1286
+ * "android": {
1287
+ * "osVer": "4.4",
1288
+ * "uniVer": "x",
1289
+ * "unixVer": "x"
1290
+ * },
1291
+ * "ios": {
1292
+ * "osVer": "12.0",
1293
+ * "uniVer": "x",
1294
+ * "unixVer": "x"
1295
+ * },
1296
+ * },
1297
+ * }
1298
+ *
1299
+ */
1300
+ autoRotate ?: boolean | null;
1301
+ /**
1302
+ * marker的旋转角度
1303
+ * @defaultValue 0
1304
+ * @uniPlatform {
1305
+ * "app": {
1306
+ * "android": {
1307
+ * "osVer": "4.4",
1308
+ * "uniVer": "x",
1309
+ * "unixVer": "4.31"
1310
+ * },
1311
+ * "ios": {
1312
+ * "osVer": "12.0",
1313
+ * "uniVer": "x",
1314
+ * "unixVer": "4.31"
1315
+ * },
1316
+ * },
1317
+ * }
1318
+ *
1319
+ */
1320
+ rotate ?: number | null;
1321
+ /**
1322
+ * 平移和旋转同时进行
1323
+ * @defaultValue false
1324
+ * @uniPlatform {
1325
+ * "app": {
1326
+ * "android": {
1327
+ * "osVer": "4.4",
1328
+ * "uniVer": "x",
1329
+ * "unixVer": "4.31"
1330
+ * },
1331
+ * "ios": {
1332
+ * "osVer": "12.0",
1333
+ * "uniVer": "x",
1334
+ * "unixVer": "4.31"
1335
+ * },
1336
+ * },
1337
+ * }
1338
+ *
1339
+ */
1340
+ moveWithRotate ?: boolean | null;
1341
+ /**
1342
+ * 动画持续时长,平移与旋转分别计算
1343
+ * @defaultValue 1000
1344
+ * @uniPlatform {
1345
+ * "app": {
1346
+ * "android": {
1347
+ * "osVer": "4.4",
1348
+ * "uniVer": "x",
1349
+ * "unixVer": "4.31"
1350
+ * },
1351
+ * "ios": {
1352
+ * "osVer": "12.0",
1353
+ * "uniVer": "x",
1354
+ * "unixVer": "4.31"
1355
+ * },
1356
+ * },
1357
+ * }
1358
+ *
1359
+ */
1360
+ duration ?: number | null;
1361
+ /**
1362
+ * 接口调用成功的回调函数
1363
+ * @defaultValue null
1364
+ */
1365
+ success ?: ((result : any) => void) | null;
1366
+ /**
1367
+ * 接口调用失败的回调函数
1368
+ * @defaultValue null
1369
+ */
1370
+ fail ?: ((result : MapContextFail) => void) | null;
1371
+ /**
1372
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1373
+ * @defaultValue null
1374
+ */
1375
+ complete ?: ((result : any) => void) | null;
1376
+ };
1377
+
1378
+ export type MapContextIncludePointsOptions = {
1379
+ /**
1380
+ * 要显示在可视区域内的坐标点列表,[{latitude, longitude}]
1381
+ * @uniPlatform {
1382
+ * "app": {
1383
+ * "android": {
1384
+ * "osVer": "4.4",
1385
+ * "uniVer": "x",
1386
+ * "unixVer": "4.31"
1387
+ * },
1388
+ * "ios": {
1389
+ * "osVer": "12.0",
1390
+ * "uniVer": "x",
1391
+ * "unixVer": "4.31"
1392
+ * },
1393
+ * },
1394
+ * }
1395
+ *
1396
+ */
1397
+ points : LocationObject[];
1398
+ /**
1399
+ * 接口调用成功的回调函数
1400
+ * @defaultValue null
1401
+ */
1402
+ success ?: ((result : any) => void) | null;
1403
+ /**
1404
+ * 接口调用失败的回调函数
1405
+ * @defaultValue null
1406
+ */
1407
+ fail ?: ((result : MapContextFail) => void) | null;
1408
+ /**
1409
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1410
+ * @defaultValue null
1411
+ */
1412
+ complete ?: ((result : any) => void) | null;
1413
+ };
1414
+
1415
+ export type MapContextGetRegionResult = {
1416
+ /**
1417
+ * 西南角的经纬度
1418
+ * @uniPlatform {
1419
+ * "app": {
1420
+ * "android": {
1421
+ * "osVer": "4.4",
1422
+ * "uniVer": "x",
1423
+ * "unixVer": "4.31"
1424
+ * },
1425
+ * "ios": {
1426
+ * "osVer": "12.0",
1427
+ * "uniVer": "x",
1428
+ * "unixVer": "4.31"
1429
+ * },
1430
+ * },
1431
+ * }
1432
+ *
1433
+ */
1434
+ southwest : LocationObject;
1435
+ /**
1436
+ * 东北角的经纬度
1437
+ * @uniPlatform {
1438
+ * "app": {
1439
+ * "android": {
1440
+ * "osVer": "4.4",
1441
+ * "uniVer": "x",
1442
+ * "unixVer": "4.31"
1443
+ * },
1444
+ * "ios": {
1445
+ * "osVer": "12.0",
1446
+ * "uniVer": "x",
1447
+ * "unixVer": "4.31"
1448
+ * },
1449
+ * },
1450
+ * }
1451
+ *
1452
+ */
1453
+ northeast : LocationObject;
1454
+ };
1455
+
1456
+ export type MapContextGetRegionOptions = {
1457
+ /**
1458
+ * 接口调用成功的回调函数
1459
+ * @defaultValue null
1460
+ */
1461
+ success ?: ((result : MapContextGetRegionResult) => void) | null;
1462
+ /**
1463
+ * 接口调用失败的回调函数
1464
+ * @defaultValue null
1465
+ */
1466
+ fail ?: ((result : MapContextFail) => void) | null;
1467
+ /**
1468
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1469
+ * @defaultValue null
1470
+ */
1471
+ complete ?: ((result : any) => void) | null;
1472
+ };
1473
+
1474
+ export type MapContextGetScaleResult = {
1475
+ /**
1476
+ * 地图缩放级别
1477
+ * @uniPlatform {
1478
+ * "app": {
1479
+ * "android": {
1480
+ * "osVer": "4.4",
1481
+ * "uniVer": "x",
1482
+ * "unixVer": "4.31"
1483
+ * },
1484
+ * "ios": {
1485
+ * "osVer": "12.0",
1486
+ * "uniVer": "x",
1487
+ * "unixVer": "4.31"
1488
+ * },
1489
+ * },
1490
+ * }
1491
+ *
1492
+ */
1493
+ scale : number;
1494
+ };
1495
+
1496
+ export type MapContextGetScaleOptions = {
1497
+ /**
1498
+ * 接口调用成功的回调函数
1499
+ * @defaultValue null
1500
+ */
1501
+ success ?: ((result : MapContextGetScaleResult) => void) | null;
1502
+ /**
1503
+ * 接口调用失败的回调函数
1504
+ * @defaultValue null
1505
+ */
1506
+ fail ?: ((result : MapContextFail) => void) | null;
1507
+ /**
1508
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1509
+ * @defaultValue null
1510
+ */
1511
+ complete ?: ((result : any) => void) | null;
1512
+ };
1513
+
1514
+ export type MapContextAddGroundOverlayOptions = {
1515
+ /**
1516
+ * 图片图层 id
1517
+ * @uniPlatform {
1518
+ * "app": {
1519
+ * "android": {
1520
+ * "osVer": "4.4",
1521
+ * "uniVer": "x",
1522
+ * "unixVer": "4.31"
1523
+ * },
1524
+ * "ios": {
1525
+ * "osVer": "12.0",
1526
+ * "uniVer": "x",
1527
+ * "unixVer": "4.31"
1528
+ * },
1529
+ * },
1530
+ * }
1531
+ *
1532
+ */
1533
+ id : string;
1534
+ /**
1535
+ * 图片路径,支持网络图片、临时路径、代码包路径
1536
+ * @uniPlatform {
1537
+ * "app": {
1538
+ * "android": {
1539
+ * "osVer": "4.4",
1540
+ * "uniVer": "x",
1541
+ * "unixVer": "4.31"
1542
+ * },
1543
+ * "ios": {
1544
+ * "osVer": "12.0",
1545
+ * "uniVer": "x",
1546
+ * "unixVer": "4.31"
1547
+ * },
1548
+ * },
1549
+ * }
1550
+ *
1551
+ */
1552
+ src : string;
1553
+ /**
1554
+ * 图片覆盖的经纬度范围
1555
+ * @uniPlatform {
1556
+ * "app": {
1557
+ * "android": {
1558
+ * "osVer": "4.4",
1559
+ * "uniVer": "x",
1560
+ * "unixVer": "4.31"
1561
+ * },
1562
+ * "ios": {
1563
+ * "osVer": "12.0",
1564
+ * "uniVer": "x",
1565
+ * "unixVer": "4.31"
1566
+ * },
1567
+ * },
1568
+ * }
1569
+ *
1570
+ */
1571
+ bounds : Bounds;
1572
+ /**
1573
+ * 是否可见
1574
+ * @defaultValue false
1575
+ * @uniPlatform {
1576
+ * "app": {
1577
+ * "android": {
1578
+ * "osVer": "4.4",
1579
+ * "uniVer": "x",
1580
+ * "unixVer": "4.31"
1581
+ * },
1582
+ * "ios": {
1583
+ * "osVer": "12.0",
1584
+ * "uniVer": "x",
1585
+ * "unixVer": "4.31"
1586
+ * },
1587
+ * },
1588
+ * }
1589
+ *
1590
+ */
1591
+ visible ?: boolean | null;
1592
+ /**
1593
+ * 图层绘制顺序
1594
+ * @defaultValue 0
1595
+ * @uniPlatform {
1596
+ * "app": {
1597
+ * "android": {
1598
+ * "osVer": "4.4",
1599
+ * "uniVer": "x",
1600
+ * "unixVer": "4.31"
1601
+ * },
1602
+ * "ios": {
1603
+ * "osVer": "12.0",
1604
+ * "uniVer": "x",
1605
+ * "unixVer": "4.31"
1606
+ * },
1607
+ * },
1608
+ * }
1609
+ *
1610
+ */
1611
+ zIndex ?: number | null;
1612
+ /**
1613
+ * 图层透明度
1614
+ * @defaultValue 1
1615
+ * @uniPlatform {
1616
+ * "app": {
1617
+ * "android": {
1618
+ * "osVer": "4.4",
1619
+ * "uniVer": "x",
1620
+ * "unixVer": "4.31"
1621
+ * },
1622
+ * "ios": {
1623
+ * "osVer": "12.0",
1624
+ * "uniVer": "x",
1625
+ * "unixVer": "4.31"
1626
+ * },
1627
+ * },
1628
+ * }
1629
+ *
1630
+ */
1631
+ opacity ?: number | null;
1632
+
1633
+ /**
1634
+ * 接口调用成功的回调函数
1635
+ * @defaultValue null
1636
+ */
1637
+ success ?: ((result : any) => void) | null;
1638
+ /**
1639
+ * 接口调用失败的回调函数
1640
+ * @defaultValue null
1641
+ */
1642
+ fail ?: ((result : MapContextFail) => void) | null;
1643
+ /**
1644
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1645
+ * @defaultValue null
1646
+ */
1647
+ complete ?: ((result : any) => void) | null;
1648
+ };
1649
+
1650
+ export type MapContextAddMarkersOptions = {
1651
+ /**
1652
+ * 同传入 map 组件的 marker 属性
1653
+ * @uniPlatform {
1654
+ * "app": {
1655
+ * "android": {
1656
+ * "osVer": "4.4",
1657
+ * "uniVer": "x",
1658
+ * "unixVer": "4.31"
1659
+ * },
1660
+ * "ios": {
1661
+ * "osVer": "12.0",
1662
+ * "uniVer": "x",
1663
+ * "unixVer": "4.31"
1664
+ * },
1665
+ * },
1666
+ * }
1667
+ *
1668
+ */
1669
+ markers : Marker[];
1670
+ /**
1671
+ * 是否先清空地图上所有 marker
1672
+ * @uniPlatform {
1673
+ * "app": {
1674
+ * "android": {
1675
+ * "osVer": "4.4",
1676
+ * "uniVer": "x",
1677
+ * "unixVer": "4.31"
1678
+ * },
1679
+ * "ios": {
1680
+ * "osVer": "12.0",
1681
+ * "uniVer": "x",
1682
+ * "unixVer": "4.31"
1683
+ * },
1684
+ * },
1685
+ * }
1686
+ *
1687
+ */
1688
+ clear : boolean;
1689
+ /**
1690
+ * 接口调用成功的回调函数
1691
+ * @defaultValue null
1692
+ */
1693
+ success ?: ((result : any) => void) | null;
1694
+ /**
1695
+ * 接口调用失败的回调函数
1696
+ * @defaultValue null
1697
+ */
1698
+ fail ?: ((result : MapContextFail) => void) | null;
1699
+ /**
1700
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1701
+ * @defaultValue null
1702
+ */
1703
+ complete ?: ((result : any) => void) | null;
1704
+ };
1705
+
1706
+ export type MapContextMoveAlongOptions = {
1707
+ /**
1708
+ * 指定marker
1709
+ * @uniPlatform {
1710
+ * "app": {
1711
+ * "android": {
1712
+ * "osVer": "4.4",
1713
+ * "uniVer": "x",
1714
+ * "unixVer": "4.31"
1715
+ * },
1716
+ * "ios": {
1717
+ * "osVer": "12.0",
1718
+ * "uniVer": "x",
1719
+ * "unixVer": "4.31"
1720
+ * },
1721
+ * },
1722
+ * }
1723
+ *
1724
+ */
1725
+ markerId : number;
1726
+ /**
1727
+ * 移动路径的坐标串,坐标点格式 {longitude, latitude}
1728
+ * @uniPlatform {
1729
+ * "app": {
1730
+ * "android": {
1731
+ * "osVer": "4.4",
1732
+ * "uniVer": "x",
1733
+ * "unixVer": "4.31"
1734
+ * },
1735
+ * "ios": {
1736
+ * "osVer": "12.0",
1737
+ * "uniVer": "x",
1738
+ * "unixVer": "4.31"
1739
+ * },
1740
+ * },
1741
+ * }
1742
+ *
1743
+ */
1744
+ path : LocationObject[];
1745
+ /**
1746
+ * 平滑移动的时间
1747
+ * @defaultValue 1000
1748
+ * @uniPlatform {
1749
+ * "app": {
1750
+ * "android": {
1751
+ * "osVer": "4.4",
1752
+ * "uniVer": "x",
1753
+ * "unixVer": "4.31"
1754
+ * },
1755
+ * "ios": {
1756
+ * "osVer": "12.0",
1757
+ * "uniVer": "x",
1758
+ * "unixVer": "4.31"
1759
+ * },
1760
+ * },
1761
+ * }
1762
+ *
1763
+ */
1764
+ duration ?: number | null;
1765
+ /**
1766
+ * 接口调用成功的回调函数
1767
+ * @defaultValue null
1768
+ */
1769
+ success ?: ((result : any) => void) | null;
1770
+ /**
1771
+ * 接口调用失败的回调函数
1772
+ * @defaultValue null
1773
+ */
1774
+ fail ?: ((result : MapContextFail) => void) | null;
1775
+ /**
1776
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1777
+ * @defaultValue null
1778
+ */
1779
+ complete ?: ((result : any) => void) | null;
1780
+ };
1781
+
1782
+ export type MapContextRemoveGroundOverlayOptions = {
1783
+ /**
1784
+ * 图片图层 id
1785
+ * @uniPlatform {
1786
+ * "app": {
1787
+ * "android": {
1788
+ * "osVer": "4.4",
1789
+ * "uniVer": "x",
1790
+ * "unixVer": "4.31"
1791
+ * },
1792
+ * "ios": {
1793
+ * "osVer": "12.0",
1794
+ * "uniVer": "x",
1795
+ * "unixVer": "4.31"
1796
+ * },
1797
+ * },
1798
+ * }
1799
+ *
1800
+ */
1801
+ id : string;
1802
+ /**
1803
+ * 接口调用成功的回调函数
1804
+ * @defaultValue null
1805
+ */
1806
+ success ?: ((result : any) => void) | null;
1807
+ /**
1808
+ * 接口调用失败的回调函数
1809
+ * @defaultValue null
1810
+ */
1811
+ fail ?: ((result : MapContextFail) => void) | null;
1812
+ /**
1813
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1814
+ * @defaultValue null
1815
+ */
1816
+ complete ?: ((result : any) => void) | null;
1817
+ };
1818
+
1819
+ export type MapContextRemoveMarkersOptions = {
1820
+ /**
1821
+ * 要被删除的marker的id属性组成的数组
1822
+ * @uniPlatform {
1823
+ * "app": {
1824
+ * "android": {
1825
+ * "osVer": "4.4",
1826
+ * "uniVer": "x",
1827
+ * "unixVer": "4.31"
1828
+ * },
1829
+ * "ios": {
1830
+ * "osVer": "12.0",
1831
+ * "uniVer": "x",
1832
+ * "unixVer": "4.31"
1833
+ * },
1834
+ * },
1835
+ * }
1836
+ *
1837
+ */
1838
+ markerIds : number[];
1839
+ /**
1840
+ * 接口调用成功的回调函数
1841
+ * @defaultValue null
1842
+ */
1843
+ success ?: ((result : any) => void) | null;
1844
+ /**
1845
+ * 接口调用失败的回调函数
1846
+ * @defaultValue null
1847
+ */
1848
+ fail ?: ((result : MapContextFail) => void) | null;
1849
+ /**
1850
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1851
+ * @defaultValue null
1852
+ */
1853
+ complete ?: ((result : any) => void) | null;
1854
+ };
1855
+
1856
+ export type MapContextUpdateGroundOverlayOptions = {
1857
+ /**
1858
+ * 图片图层 id
1859
+ * @uniPlatform {
1860
+ * "app": {
1861
+ * "android": {
1862
+ * "osVer": "4.4",
1863
+ * "uniVer": "x",
1864
+ * "unixVer": "4.31"
1865
+ * },
1866
+ * "ios": {
1867
+ * "osVer": "12.0",
1868
+ * "uniVer": "x",
1869
+ * "unixVer": "4.31"
1870
+ * },
1871
+ * },
1872
+ * }
1873
+ *
1874
+ */
1875
+ id : string;
1876
+ /**
1877
+ * 图片路径,支持网络图片、临时路径、代码包路径
1878
+ * @uniPlatform {
1879
+ * "app": {
1880
+ * "android": {
1881
+ * "osVer": "4.4",
1882
+ * "uniVer": "x",
1883
+ * "unixVer": "4.31"
1884
+ * },
1885
+ * "ios": {
1886
+ * "osVer": "12.0",
1887
+ * "uniVer": "x",
1888
+ * "unixVer": "4.31"
1889
+ * },
1890
+ * },
1891
+ * }
1892
+ *
1893
+ */
1894
+ src : string;
1895
+ /**
1896
+ * 图片覆盖的经纬度范围
1897
+ * @uniPlatform {
1898
+ * "app": {
1899
+ * "android": {
1900
+ * "osVer": "4.4",
1901
+ * "uniVer": "x",
1902
+ * "unixVer": "4.31"
1903
+ * },
1904
+ * "ios": {
1905
+ * "osVer": "12.0",
1906
+ * "uniVer": "x",
1907
+ * "unixVer": "4.31"
1908
+ * },
1909
+ * },
1910
+ * }
1911
+ *
1912
+ */
1913
+ bounds : Bounds;
1914
+ /**
1915
+ * 是否可见
1916
+ * @defaultValue true
1917
+ * @uniPlatform {
1918
+ * "app": {
1919
+ * "android": {
1920
+ * "osVer": "4.4",
1921
+ * "uniVer": "x",
1922
+ * "unixVer": "4.31"
1923
+ * },
1924
+ * "ios": {
1925
+ * "osVer": "12.0",
1926
+ * "uniVer": "x",
1927
+ * "unixVer": "4.31"
1928
+ * },
1929
+ * },
1930
+ * }
1931
+ *
1932
+ */
1933
+ visible ?: boolean | null;
1934
+ /**
1935
+ * 图层绘制顺序
1936
+ * @defaultValue 0
1937
+ * @uniPlatform {
1938
+ * "app": {
1939
+ * "android": {
1940
+ * "osVer": "4.4",
1941
+ * "uniVer": "x",
1942
+ * "unixVer": "4.31"
1943
+ * },
1944
+ * "ios": {
1945
+ * "osVer": "12.0",
1946
+ * "uniVer": "x",
1947
+ * "unixVer": "4.31"
1948
+ * },
1949
+ * },
1950
+ * }
1951
+ *
1952
+ */
1953
+ zIndex ?: number | null;
1954
+ /**
1955
+ * 图层透明度
1956
+ * @defaultValue 1
1957
+ * @uniPlatform {
1958
+ * "app": {
1959
+ * "android": {
1960
+ * "osVer": "4.4",
1961
+ * "uniVer": "x",
1962
+ * "unixVer": "4.31"
1963
+ * },
1964
+ * "ios": {
1965
+ * "osVer": "12.0",
1966
+ * "uniVer": "x",
1967
+ * "unixVer": "4.31"
1968
+ * },
1969
+ * },
1970
+ * }
1971
+ *
1972
+ */
1973
+ opacity ?: number | null;
1974
+
1975
+ /**
1976
+ * 接口调用成功的回调函数
1977
+ * @defaultValue null
1978
+ */
1979
+ success ?: ((result : any) => void) | null;
1980
+ /**
1981
+ * 接口调用失败的回调函数
1982
+ * @defaultValue null
1983
+ */
1984
+ fail ?: ((result : MapContextFail) => void) | null;
1985
+ /**
1986
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1987
+ * @defaultValue null
1988
+ */
1989
+ complete ?: ((result : any) => void) | null;
1990
+ };
1991
+
1992
+
1993
+ /**
1994
+ * 错误码
1995
+ */
1996
+ export type MapErrorCode =
1997
+ /**
1998
+ * 获取当前地图中心的经纬度失败
1999
+ */
2000
+ 500001 |
2001
+ /**
2002
+ * 未找到当前定位位置
2003
+ */
2004
+ 500002 |
2005
+ /**
2006
+ * 未找到marker
2007
+ */
2008
+ 500003 |
2009
+ /**
2010
+ * 创建自定义图片图层失败
2011
+ */
2012
+ 500004 |
2013
+ /**
2014
+ * 未找到自定义图层id
2015
+ */
2016
+ 500005 |
2017
+ /**
2018
+ * 网络图片加载失败
2019
+ */
2020
+ 500006 |
2021
+ /**
2022
+ * 地图内部错误
2023
+ */
2024
+ 500012;
2025
+
2026
+ /**
2027
+ * MapContext API调用失败
2028
+ */
2029
+ export interface MapContextFail extends IUniError {
2030
+ errCode : MapErrorCode
2031
+ };
2032
+
2033
+ export interface MapContext {
2034
+ /**
2035
+ * 获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 uni.openLocation
2036
+ * @uniPlatform {
2037
+ * "app": {
2038
+ * "android": {
2039
+ * "osVer": "4.4",
2040
+ * "uniVer": "x",
2041
+ * "unixVer": "4.31"
2042
+ * },
2043
+ * "ios": {
2044
+ * "osVer": "12.0",
2045
+ * "uniVer": "x",
2046
+ * "unixVer": "4.31"
2047
+ * },
2048
+ * },
2049
+ * }
2050
+ *
2051
+ */
2052
+ getCenterLocation(options : MapContextGetCenterLocationOptions) : void;
2053
+
2054
+ /**
2055
+ * 将地图中心移动到当前定位点,需要配合map组件的show-location使用
2056
+ * @uniPlatform {
2057
+ * "app": {
2058
+ * "android": {
2059
+ * "osVer": "4.4",
2060
+ * "uniVer": "x",
2061
+ * "unixVer": "4.31"
2062
+ * },
2063
+ * "ios": {
2064
+ * "osVer": "12.0",
2065
+ * "uniVer": "x",
2066
+ * "unixVer": "4.31"
2067
+ * },
2068
+ * },
2069
+ * }
2070
+ *
2071
+ */
2072
+ moveToLocation(options : MapContextMoveToLocationOptions) : void;
2073
+
2074
+ /**
2075
+ * 平移marker,带动画
2076
+ * @uniPlatform {
2077
+ * "app": {
2078
+ * "android": {
2079
+ * "osVer": "4.4",
2080
+ * "uniVer": "x",
2081
+ * "unixVer": "4.31"
2082
+ * },
2083
+ * "ios": {
2084
+ * "osVer": "12.0",
2085
+ * "uniVer": "x",
2086
+ * "unixVer": "4.31"
2087
+ * },
2088
+ * },
2089
+ * }
2090
+ *
2091
+ */
2092
+ translateMarker(options : MapContextTranslateMarkerOptions) : void;
2093
+
2094
+ /**
2095
+ * 缩放视野展示所有经纬度
2096
+ * @uniPlatform {
2097
+ * "app": {
2098
+ * "android": {
2099
+ * "osVer": "4.4",
2100
+ * "uniVer": "x",
2101
+ * "unixVer": "4.31"
2102
+ * },
2103
+ * "ios": {
2104
+ * "osVer": "12.0",
2105
+ * "uniVer": "x",
2106
+ * "unixVer": "4.31"
2107
+ * },
2108
+ * },
2109
+ * }
2110
+ *
2111
+ */
2112
+ includePoints(options : MapContextIncludePointsOptions) : void;
2113
+
2114
+ /**
2115
+ * 获取当前地图的视野范围
2116
+ * @uniPlatform {
2117
+ * "app": {
2118
+ * "android": {
2119
+ * "osVer": "4.4",
2120
+ * "uniVer": "x",
2121
+ * "unixVer": "4.31"
2122
+ * },
2123
+ * "ios": {
2124
+ * "osVer": "12.0",
2125
+ * "uniVer": "x",
2126
+ * "unixVer": "4.31"
2127
+ * },
2128
+ * },
2129
+ * }
2130
+ *
2131
+ */
2132
+ getRegion(options : MapContextGetRegionOptions) : void;
2133
+
2134
+ /**
2135
+ * 获取当前地图的缩放级别
2136
+ * @uniPlatform {
2137
+ * "app": {
2138
+ * "android": {
2139
+ * "osVer": "4.4",
2140
+ * "uniVer": "x",
2141
+ * "unixVer": "4.31"
2142
+ * },
2143
+ * "ios": {
2144
+ * "osVer": "12.0",
2145
+ * "uniVer": "x",
2146
+ * "unixVer": "4.31"
2147
+ * },
2148
+ * },
2149
+ * }
2150
+ *
2151
+ */
2152
+ getScale(options : MapContextGetScaleOptions) : void;
2153
+
2154
+ /**
2155
+ * 创建自定义图片图层,图片会随着地图缩放而缩放
2156
+ * @uniPlatform {
2157
+ * "app": {
2158
+ * "android": {
2159
+ * "osVer": "4.4",
2160
+ * "uniVer": "x",
2161
+ * "unixVer": "4.31"
2162
+ * },
2163
+ * "ios": {
2164
+ * "osVer": "12.0",
2165
+ * "uniVer": "x",
2166
+ * "unixVer": "4.31"
2167
+ * },
2168
+ * },
2169
+ * }
2170
+ *
2171
+ */
2172
+ addGroundOverlay(options : MapContextAddGroundOverlayOptions) : void;
2173
+
2174
+ /**
2175
+ * 添加 marker
2176
+ * @uniPlatform {
2177
+ * "app": {
2178
+ * "android": {
2179
+ * "osVer": "4.4",
2180
+ * "uniVer": "x",
2181
+ * "unixVer": "4.31"
2182
+ * },
2183
+ * "ios": {
2184
+ * "osVer": "12.0",
2185
+ * "uniVer": "x",
2186
+ * "unixVer": "4.31"
2187
+ * },
2188
+ * },
2189
+ * }
2190
+ *
2191
+ */
2192
+ addMarkers(options : MapContextAddMarkersOptions) : void;
2193
+
2194
+ // initMarkerCluster(options: MapContextInitMarkerClusterOptions): void;
2195
+
2196
+ /**
2197
+ * 沿指定路径移动 marker,用于轨迹回放等场景。动画完成时触发回调事件,若动画进行中,对同一 marker 再次调用 moveAlong 方法,前一次的动画将被打断。
2198
+ * @uniPlatform {
2199
+ * "app": {
2200
+ * "android": {
2201
+ * "osVer": "4.4",
2202
+ * "uniVer": "x",
2203
+ * "unixVer": "4.31"
2204
+ * },
2205
+ * "ios": {
2206
+ * "osVer": "12.0",
2207
+ * "uniVer": "x",
2208
+ * "unixVer": "4.31"
2209
+ * },
2210
+ * },
2211
+ * }
2212
+ *
2213
+ */
2214
+ moveAlong(options : MapContextMoveAlongOptions) : void;
2215
+
2216
+ // openMapApp(options: MapContextOpenMapAppOptions): void;
2217
+
2218
+ /**
2219
+ * 移除自定义图片图层
2220
+ * @uniPlatform {
2221
+ * "app": {
2222
+ * "android": {
2223
+ * "osVer": "4.4",
2224
+ * "uniVer": "x",
2225
+ * "unixVer": "4.31"
2226
+ * },
2227
+ * "ios": {
2228
+ * "osVer": "12.0",
2229
+ * "uniVer": "x",
2230
+ * "unixVer": "4.31"
2231
+ * },
2232
+ * },
2233
+ * }
2234
+ *
2235
+ */
2236
+ removeGroundOverlay(options : MapContextRemoveGroundOverlayOptions) : void;
2237
+
2238
+ /**
2239
+ * 移除 marker
2240
+ * @uniPlatform {
2241
+ * "app": {
2242
+ * "android": {
2243
+ * "osVer": "4.4",
2244
+ * "uniVer": "x",
2245
+ * "unixVer": "4.31"
2246
+ * },
2247
+ * "ios": {
2248
+ * "osVer": "12.0",
2249
+ * "uniVer": "x",
2250
+ * "unixVer": "4.31"
2251
+ * },
2252
+ * },
2253
+ * }
2254
+ *
2255
+ */
2256
+ removeMarkers(options : MapContextRemoveMarkersOptions) : void;
2257
+
2258
+ /**
2259
+ * 更新自定义图片图层。
2260
+ * @uniPlatform {
2261
+ * "app": {
2262
+ * "android": {
2263
+ * "osVer": "4.4",
2264
+ * "uniVer": "x",
2265
+ * "unixVer": "4.31"
2266
+ * },
2267
+ * "ios": {
2268
+ * "osVer": "12.0",
2269
+ * "uniVer": "x",
2270
+ * "unixVer": "4.31"
2271
+ * },
2272
+ * },
2273
+ * }
2274
+ *
2275
+ */
2276
+ updateGroundOverlay(options : MapContextUpdateGroundOverlayOptions) : void;
2277
+
2278
+ // on(event: 'markerClusterCreate' | 'markerClusterClick', callback: (...args: any[]) => any): void;
2279
+ }
2280
+
2281
+ export interface Uni {
2282
+ /**
2283
+ * 创建并返回 map 上下文 mapContext 对象
2284
+ * @uniPlatform {
2285
+ * "app": {
2286
+ * "android": {
2287
+ * "osVer": "4.4",
2288
+ * "uniVer": {
2289
+ * "vue": "√",
2290
+ * "nvue": "2.2.5"
2291
+ * },
2292
+ * "unixVer": "4.31"
2293
+ * },
2294
+ * "ios": {
2295
+ * "osVer": "12.0",
2296
+ * "uniVer": {
2297
+ * "vue": "√",
2298
+ * "nvue": "2.2.5"
2299
+ * },
2300
+ * "unixVer": "4.31"
2301
+ * },
2302
+ * },
2303
+ * "mp": {
2304
+ * "weixin": {
2305
+ * "hostVer": "√",
2306
+ * "uniVer": "√",
2307
+ * "unixVer": "4.41"
2308
+ * },
2309
+ * "alipay": {
2310
+ * "hostVer": "√",
2311
+ * "uniVer": "√",
2312
+ * "unixVer": "x"
2313
+ * },
2314
+ * "baidu": {
2315
+ * "hostVer": "√",
2316
+ * "uniVer": "√",
2317
+ * "unixVer": "x"
2318
+ * },
2319
+ * "toutiao": {
2320
+ * "hostVer": "√",
2321
+ * "uniVer": "√",
2322
+ * "unixVer": "x"
2323
+ * },
2324
+ * "lark": {
2325
+ * "hostVer": "√",
2326
+ * "uniVer": "√",
2327
+ * "unixVer": "x"
2328
+ * },
2329
+ * "qq": {
2330
+ * "hostVer": "1.9.0",
2331
+ * "uniVer": "√",
2332
+ * "unixVer": "x"
2333
+ * },
2334
+ * "kuaishou": {
2335
+ * "hostVer": "√",
2336
+ * "uniVer": "√",
2337
+ * "unixVer": "x"
2338
+ * },
2339
+ * "jd": {
2340
+ * "hostVer": "√",
2341
+ * "uniVer": "√",
2342
+ * "unixVer": "x"
2343
+ * }
2344
+ * },
2345
+ * "web": {
2346
+ * "uniVer": "√",
2347
+ * "unixVer": "4.0"
2348
+ * }
2349
+ * }
2350
+ * @uniVueVersion 2,3
2351
+ * @return {MapContext} map组件上下文对象
2352
+ *
2353
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/location/map.html#createmapcontext
2354
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/create-map-context.html
2355
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/create-map-context.html
2356
+ *
2357
+ */
2358
+ createMapContext: (mapId: string, component?: ComponentPublicInstance | null) => MapContext | null;
2359
+ }