@tarojs/components 4.0.0-beta.82 → 4.0.0-beta.83

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 (554) hide show
  1. package/LICENSE +1 -8
  2. package/README.md +1 -1
  3. package/dist/cjs/{index-f6805218.js → index-b873e40f.js} +45 -27
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  7. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-button-core.cjs.entry.js +2 -2
  14. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-components.cjs.js +2 -2
  22. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  24. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  25. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-draggable-sheet-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-grid-builder-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-icon-core.cjs.entry.js +2 -2
  34. package/dist/cjs/taro-image-core.cjs.entry.js +2 -2
  35. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  36. package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
  37. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-list-builder-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-map-core.cjs.entry.js +1325 -6
  48. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  52. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  53. package/dist/cjs/taro-nested-scroll-body-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +1 -1
  55. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-open-container-core.cjs.entry.js +1 -1
  57. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  58. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  59. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-picker-core_2.cjs.entry.js +2 -2
  61. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  62. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  63. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +2 -2
  64. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  66. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  67. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +2 -2
  70. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  71. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  72. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
  74. package/dist/cjs/taro-span-core.cjs.entry.js +1 -1
  75. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  76. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  77. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +2 -2
  78. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  80. package/dist/cjs/taro-tabbar.cjs.entry.js +2 -2
  81. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  82. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  83. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  84. package/dist/cjs/taro-video-control_3.cjs.entry.js +2 -2
  85. package/dist/cjs/taro-view-core.cjs.entry.js +2 -2
  86. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  87. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  88. package/dist/collection/components/map/map.js +1806 -4
  89. package/dist/collection/components/map/style/map.css +1 -0
  90. package/dist/components/index2.js +45 -27
  91. package/dist/components/taro-map-core.js +1349 -6
  92. package/dist/esm/{index-c3e4004b.js → index-b9522531.js} +45 -27
  93. package/dist/esm/loader.js +3 -3
  94. package/dist/esm/taro-ad-core.entry.js +1 -1
  95. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  96. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  97. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  98. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  99. package/dist/esm/taro-audio-core.entry.js +1 -1
  100. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  101. package/dist/esm/taro-block-core.entry.js +1 -1
  102. package/dist/esm/taro-button-core.entry.js +2 -2
  103. package/dist/esm/taro-camera-core.entry.js +1 -1
  104. package/dist/esm/taro-canvas-core.entry.js +1 -1
  105. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  106. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  107. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  108. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  109. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  110. package/dist/esm/taro-components.js +3 -3
  111. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  112. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  113. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  114. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  115. package/dist/esm/taro-draggable-sheet-core.entry.js +1 -1
  116. package/dist/esm/taro-editor-core.entry.js +1 -1
  117. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  118. package/dist/esm/taro-form-core.entry.js +1 -1
  119. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  120. package/dist/esm/taro-grid-builder-core.entry.js +1 -1
  121. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  122. package/dist/esm/taro-icon-core.entry.js +2 -2
  123. package/dist/esm/taro-image-core.entry.js +2 -2
  124. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  125. package/dist/esm/taro-input-core.entry.js +1 -1
  126. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  127. package/dist/esm/taro-label-core.entry.js +1 -1
  128. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  129. package/dist/esm/taro-like-core.entry.js +1 -1
  130. package/dist/esm/taro-list-builder-core.entry.js +1 -1
  131. package/dist/esm/taro-list-view-core.entry.js +1 -1
  132. package/dist/esm/taro-live-player-core.entry.js +1 -1
  133. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  134. package/dist/esm/taro-login-core.entry.js +1 -1
  135. package/dist/esm/taro-lottie-core.entry.js +1 -1
  136. package/dist/esm/taro-map-core.entry.js +1321 -6
  137. package/dist/esm/taro-match-media-core.entry.js +1 -1
  138. package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
  139. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  140. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  141. package/dist/esm/taro-navigator-core.entry.js +2 -2
  142. package/dist/esm/taro-nested-scroll-body-core.entry.js +1 -1
  143. package/dist/esm/taro-nested-scroll-header-core.entry.js +1 -1
  144. package/dist/esm/taro-official-account-core.entry.js +1 -1
  145. package/dist/esm/taro-open-container-core.entry.js +1 -1
  146. package/dist/esm/taro-open-data-core.entry.js +1 -1
  147. package/dist/esm/taro-page-container-core.entry.js +1 -1
  148. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  149. package/dist/esm/taro-picker-core_2.entry.js +2 -2
  150. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  151. package/dist/esm/taro-progress-core.entry.js +1 -1
  152. package/dist/esm/taro-pull-to-refresh-core.entry.js +2 -2
  153. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  154. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  155. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  156. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  157. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  158. package/dist/esm/taro-scroll-view-core.entry.js +2 -2
  159. package/dist/esm/taro-share-element-core.entry.js +1 -1
  160. package/dist/esm/taro-slider-core.entry.js +1 -1
  161. package/dist/esm/taro-slot-core.entry.js +1 -1
  162. package/dist/esm/taro-snapshot-core.entry.js +1 -1
  163. package/dist/esm/taro-span-core.entry.js +1 -1
  164. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  165. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  166. package/dist/esm/taro-swiper-core_2.entry.js +2 -2
  167. package/dist/esm/taro-switch-core.entry.js +1 -1
  168. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  169. package/dist/esm/taro-tabbar.entry.js +2 -2
  170. package/dist/esm/taro-tabs-core.entry.js +1 -1
  171. package/dist/esm/taro-text-core.entry.js +1 -1
  172. package/dist/esm/taro-textarea-core.entry.js +1 -1
  173. package/dist/esm/taro-video-control_3.entry.js +2 -2
  174. package/dist/esm/taro-view-core.entry.js +2 -2
  175. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  176. package/dist/esm/taro-web-view-core.entry.js +1 -1
  177. package/dist/esm-es5/index-b9522531.js +7 -0
  178. package/dist/esm-es5/loader.js +1 -1
  179. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  180. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  181. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  182. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  183. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  184. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  185. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  186. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  187. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  188. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  189. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  190. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  191. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  192. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  193. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  194. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  195. package/dist/esm-es5/taro-components.js +1 -1
  196. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  197. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  198. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  199. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  200. package/dist/esm-es5/taro-draggable-sheet-core.entry.js +1 -1
  201. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  202. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  203. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  204. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  205. package/dist/esm-es5/taro-grid-builder-core.entry.js +1 -1
  206. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  207. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  208. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  209. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  210. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  211. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  212. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  213. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  214. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  215. package/dist/esm-es5/taro-list-builder-core.entry.js +1 -1
  216. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  217. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  218. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  219. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  220. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  221. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  222. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  223. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  224. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  225. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  226. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  227. package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +1 -1
  228. package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -1
  229. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  230. package/dist/esm-es5/taro-open-container-core.entry.js +1 -1
  231. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  232. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  233. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  234. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  235. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  236. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  237. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
  238. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  239. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  240. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  241. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  242. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  243. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  244. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  245. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  246. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  247. package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
  248. package/dist/esm-es5/taro-span-core.entry.js +1 -1
  249. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  250. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  251. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  252. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  253. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  254. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  255. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  256. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  257. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  258. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  259. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  260. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  261. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  262. package/dist/hydrate/index.js +1396 -33
  263. package/dist/taro-components/{p-7b3ce3af.system.entry.js → p-02465454.system.entry.js} +1 -1
  264. package/dist/taro-components/{p-62df5526.entry.js → p-02d4d104.entry.js} +1 -1
  265. package/dist/taro-components/{p-0f95be56.entry.js → p-03dc0283.entry.js} +1 -1
  266. package/dist/taro-components/{p-7f3d9184.entry.js → p-047e4bfe.entry.js} +1 -1
  267. package/dist/taro-components/{p-0044961f.system.entry.js → p-06adeb65.system.entry.js} +1 -1
  268. package/dist/taro-components/{p-ead6e57b.entry.js → p-078cb65e.entry.js} +1 -1
  269. package/dist/taro-components/{p-194ace03.system.entry.js → p-07ae6678.system.entry.js} +1 -1
  270. package/dist/taro-components/{p-7bc6aa36.entry.js → p-07f27474.entry.js} +1 -1
  271. package/dist/taro-components/{p-a997cf7c.system.entry.js → p-083c3147.system.entry.js} +1 -1
  272. package/dist/taro-components/{p-3430d520.system.entry.js → p-0a64f78c.system.entry.js} +1 -1
  273. package/dist/taro-components/p-0f2c1ecc.entry.js +1 -0
  274. package/dist/taro-components/{p-8b7e37c9.system.entry.js → p-0f480c38.system.entry.js} +1 -1
  275. package/dist/taro-components/{p-b655e854.system.entry.js → p-0fc790c0.system.entry.js} +1 -1
  276. package/dist/taro-components/{p-370cc947.entry.js → p-0ff5a55b.entry.js} +1 -1
  277. package/dist/taro-components/{p-19b04eb7.entry.js → p-12582166.entry.js} +1 -1
  278. package/dist/taro-components/{p-2f8ebd28.system.entry.js → p-12beb90a.system.entry.js} +1 -1
  279. package/dist/taro-components/{p-1d102ddb.system.entry.js → p-156e9634.system.entry.js} +1 -1
  280. package/dist/taro-components/p-160d710a.js +7 -0
  281. package/dist/taro-components/{p-46ccb393.system.entry.js → p-17938fa0.system.entry.js} +1 -1
  282. package/dist/taro-components/{p-e6a2f1bd.system.entry.js → p-17b9f865.system.entry.js} +1 -1
  283. package/dist/taro-components/{p-43932446.entry.js → p-17e72555.entry.js} +1 -1
  284. package/dist/taro-components/{p-e41ed824.system.entry.js → p-1bd4da3b.system.entry.js} +1 -1
  285. package/dist/taro-components/{p-f470ce9f.system.entry.js → p-1c37143a.system.entry.js} +1 -1
  286. package/dist/taro-components/{p-3e4b5391.system.entry.js → p-1eac5291.system.entry.js} +1 -1
  287. package/dist/taro-components/{p-5bfdb5f3.entry.js → p-1eea2828.entry.js} +1 -1
  288. package/dist/taro-components/{p-1acf7537.entry.js → p-204996e7.entry.js} +1 -1
  289. package/dist/taro-components/{p-d29a59cd.entry.js → p-26eb2f3f.entry.js} +1 -1
  290. package/dist/taro-components/{p-aed23034.system.entry.js → p-27041d86.system.entry.js} +1 -1
  291. package/dist/taro-components/{p-f0056aca.system.entry.js → p-27d372b4.system.entry.js} +1 -1
  292. package/dist/taro-components/{p-a6790f39.entry.js → p-280795f2.entry.js} +1 -1
  293. package/dist/taro-components/{p-16705ca9.entry.js → p-292470e5.entry.js} +1 -1
  294. package/dist/taro-components/{p-2ebc3182.entry.js → p-2d537212.entry.js} +1 -1
  295. package/dist/taro-components/{p-87b0d22f.entry.js → p-2f177716.entry.js} +1 -1
  296. package/dist/taro-components/{p-fe1dd94f.system.entry.js → p-3293c5d9.system.entry.js} +1 -1
  297. package/dist/taro-components/{p-12b967fd.entry.js → p-32c0f326.entry.js} +1 -1
  298. package/dist/taro-components/{p-80228985.entry.js → p-35dec732.entry.js} +1 -1
  299. package/dist/taro-components/{p-ae99551a.entry.js → p-38b29261.entry.js} +1 -1
  300. package/dist/taro-components/{p-756aa971.entry.js → p-3a180dc7.entry.js} +1 -1
  301. package/dist/taro-components/{p-970a4199.system.entry.js → p-3b36196b.system.entry.js} +1 -1
  302. package/dist/taro-components/{p-dc366f18.entry.js → p-3cf08137.entry.js} +1 -1
  303. package/dist/taro-components/{p-28bc8a48.entry.js → p-402c7f93.entry.js} +1 -1
  304. package/dist/taro-components/{p-4a748c0d.entry.js → p-425d1d69.entry.js} +1 -1
  305. package/dist/taro-components/{p-c0d93f74.entry.js → p-43367dd1.entry.js} +1 -1
  306. package/dist/taro-components/p-443b9a72.system.js +7 -0
  307. package/dist/taro-components/{p-cc993977.system.entry.js → p-443e31ab.system.entry.js} +1 -1
  308. package/dist/taro-components/{p-77e030e9.system.entry.js → p-450f7b39.system.entry.js} +1 -1
  309. package/dist/taro-components/{p-e23769c4.entry.js → p-4523b1c7.entry.js} +1 -1
  310. package/dist/taro-components/{p-4824cc94.entry.js → p-46a66c43.entry.js} +1 -1
  311. package/dist/taro-components/{p-ffaac078.system.entry.js → p-47790dc0.system.entry.js} +1 -1
  312. package/dist/taro-components/{p-618ee593.system.entry.js → p-4979e93c.system.entry.js} +1 -1
  313. package/dist/taro-components/{p-bdafd94c.system.entry.js → p-4a8b4d58.system.entry.js} +1 -1
  314. package/dist/taro-components/{p-eda34d91.system.entry.js → p-4ac48df1.system.entry.js} +1 -1
  315. package/dist/taro-components/{p-f782ee74.system.entry.js → p-4fad4beb.system.entry.js} +1 -1
  316. package/dist/taro-components/{p-e2694a79.system.entry.js → p-50849470.system.entry.js} +1 -1
  317. package/dist/taro-components/{p-4e63d3bd.entry.js → p-55e12654.entry.js} +1 -1
  318. package/dist/taro-components/{p-6f8926e3.entry.js → p-56552c9e.entry.js} +1 -1
  319. package/dist/taro-components/{p-c58627f4.entry.js → p-56a82bf3.entry.js} +1 -1
  320. package/dist/taro-components/{p-7b80637e.system.entry.js → p-57911e2c.system.entry.js} +1 -1
  321. package/dist/taro-components/{p-3eedb8d7.system.entry.js → p-57b77f17.system.entry.js} +1 -1
  322. package/dist/taro-components/{p-04f97133.system.entry.js → p-5884c108.system.entry.js} +1 -1
  323. package/dist/taro-components/{p-55934653.system.entry.js → p-5b9aa4b0.system.entry.js} +1 -1
  324. package/dist/taro-components/{p-5b86e66b.system.entry.js → p-5c156db3.system.entry.js} +1 -1
  325. package/dist/taro-components/{p-342a2594.entry.js → p-5c98f478.entry.js} +1 -1
  326. package/dist/taro-components/{p-829157b1.system.entry.js → p-61a325d2.system.entry.js} +1 -1
  327. package/dist/taro-components/{p-9f3e0019.system.entry.js → p-6282bdee.system.entry.js} +1 -1
  328. package/dist/taro-components/{p-fbb789a4.system.entry.js → p-65d11e99.system.entry.js} +1 -1
  329. package/dist/taro-components/{p-66029061.system.entry.js → p-6654374e.system.entry.js} +1 -1
  330. package/dist/taro-components/{p-aa11b00c.system.entry.js → p-6664a2ca.system.entry.js} +1 -1
  331. package/dist/taro-components/{p-0d8a0733.entry.js → p-68197378.entry.js} +1 -1
  332. package/dist/taro-components/p-6989c232.entry.js +1 -0
  333. package/dist/taro-components/{p-6c06b440.system.entry.js → p-6b83388c.system.entry.js} +1 -1
  334. package/dist/taro-components/{p-4621b303.system.entry.js → p-6ba08ce0.system.entry.js} +1 -1
  335. package/dist/taro-components/{p-0fe4660a.entry.js → p-6cc0bcb9.entry.js} +1 -1
  336. package/dist/taro-components/p-7163d09e.system.js +1 -0
  337. package/dist/taro-components/{p-e5b43c80.system.entry.js → p-75b4c1fc.system.entry.js} +1 -1
  338. package/dist/taro-components/{p-069ae782.system.entry.js → p-75ded8a0.system.entry.js} +1 -1
  339. package/dist/taro-components/{p-da4c4cad.entry.js → p-77e82dfa.entry.js} +1 -1
  340. package/dist/taro-components/{p-dde26531.entry.js → p-79cad66b.entry.js} +1 -1
  341. package/dist/taro-components/{p-f94c0445.system.entry.js → p-7ca2d075.system.entry.js} +1 -1
  342. package/dist/taro-components/{p-5a78fbdf.system.entry.js → p-7e054ae7.system.entry.js} +1 -1
  343. package/dist/taro-components/{p-b4047b11.entry.js → p-7e564b00.entry.js} +1 -1
  344. package/dist/taro-components/p-7e692c70.entry.js +1 -0
  345. package/dist/taro-components/{p-baea6a63.entry.js → p-7ebd4310.entry.js} +1 -1
  346. package/dist/taro-components/p-7fdbcf4d.entry.js +1 -0
  347. package/dist/taro-components/{p-11c0dc59.system.entry.js → p-8179438b.system.entry.js} +1 -1
  348. package/dist/taro-components/{p-3d423adc.entry.js → p-84998109.entry.js} +1 -1
  349. package/dist/taro-components/{p-3a3d40de.system.entry.js → p-855619b6.system.entry.js} +1 -1
  350. package/dist/taro-components/{p-e2a22cd1.entry.js → p-8b0c9d3f.entry.js} +1 -1
  351. package/dist/taro-components/{p-d12b6a84.system.entry.js → p-91ee1f8a.system.entry.js} +1 -1
  352. package/dist/taro-components/{p-8a6e93ed.entry.js → p-937a6c36.entry.js} +1 -1
  353. package/dist/taro-components/{p-90ee19f8.system.entry.js → p-938f9036.system.entry.js} +1 -1
  354. package/dist/taro-components/{p-4fcb258a.entry.js → p-93a2b2e9.entry.js} +1 -1
  355. package/dist/taro-components/p-93b02321.entry.js +1 -0
  356. package/dist/taro-components/p-9571836f.entry.js +1 -0
  357. package/dist/taro-components/{p-923aa1c8.system.entry.js → p-97b09fb4.system.entry.js} +1 -1
  358. package/dist/taro-components/{p-34ba9330.system.entry.js → p-9b6b17c4.system.entry.js} +1 -1
  359. package/dist/taro-components/{p-37bc198d.entry.js → p-9c8bb0e6.entry.js} +1 -1
  360. package/dist/taro-components/{p-36ea0ac1.system.entry.js → p-9e359fff.system.entry.js} +1 -1
  361. package/dist/taro-components/{p-b3419d7f.system.entry.js → p-9f53e26c.system.entry.js} +1 -1
  362. package/dist/taro-components/{p-cee51d71.system.entry.js → p-a25aca16.system.entry.js} +1 -1
  363. package/dist/taro-components/{p-d184903b.entry.js → p-a50c6736.entry.js} +1 -1
  364. package/dist/taro-components/{p-1087c51a.system.entry.js → p-a96f8f60.system.entry.js} +1 -1
  365. package/dist/taro-components/{p-4b5f75b9.system.entry.js → p-a9ca8247.system.entry.js} +1 -1
  366. package/dist/taro-components/p-aabac550.entry.js +1 -0
  367. package/dist/taro-components/{p-48a84765.entry.js → p-ac2be5f3.entry.js} +1 -1
  368. package/dist/taro-components/{p-b0f12e64.system.entry.js → p-ac714300.system.entry.js} +1 -1
  369. package/dist/taro-components/{p-b66dfc82.system.entry.js → p-ac9fb309.system.entry.js} +1 -1
  370. package/dist/taro-components/p-acb113bd.entry.js +1 -0
  371. package/dist/taro-components/{p-6ffc9bda.system.entry.js → p-b087ad2a.system.entry.js} +1 -1
  372. package/dist/taro-components/{p-317c4cad.entry.js → p-b1f80b6b.entry.js} +1 -1
  373. package/dist/taro-components/{p-99440bcc.system.entry.js → p-b4577a12.system.entry.js} +1 -1
  374. package/dist/taro-components/{p-fe8ee676.entry.js → p-b4c7bb48.entry.js} +1 -1
  375. package/dist/taro-components/{p-ec00e517.entry.js → p-ba11ef7d.entry.js} +1 -1
  376. package/dist/taro-components/{p-97177863.system.entry.js → p-ba5e7ec4.system.entry.js} +1 -1
  377. package/dist/taro-components/{p-49e9b2ff.entry.js → p-bb67318d.entry.js} +1 -1
  378. package/dist/taro-components/{p-92b7b545.entry.js → p-bd57edcd.entry.js} +1 -1
  379. package/dist/taro-components/{p-5b4de079.entry.js → p-be055537.entry.js} +1 -1
  380. package/dist/taro-components/{p-c0f16127.entry.js → p-be1701b2.entry.js} +1 -1
  381. package/dist/taro-components/{p-ba241824.system.entry.js → p-c056d527.system.entry.js} +1 -1
  382. package/dist/taro-components/{p-3a0a05fd.system.entry.js → p-c0c567e5.system.entry.js} +1 -1
  383. package/dist/taro-components/{p-f662c928.entry.js → p-c3dc7072.entry.js} +1 -1
  384. package/dist/taro-components/{p-6f1034a6.system.entry.js → p-c677414d.system.entry.js} +1 -1
  385. package/dist/taro-components/{p-fa9dbb6f.system.entry.js → p-c71d5745.system.entry.js} +1 -1
  386. package/dist/taro-components/{p-50b21f94.entry.js → p-c7836e2b.entry.js} +1 -1
  387. package/dist/taro-components/{p-55e54f2a.system.entry.js → p-c7d8c076.system.entry.js} +1 -1
  388. package/dist/taro-components/{p-8bde1f48.entry.js → p-c8cd6e16.entry.js} +1 -1
  389. package/dist/taro-components/{p-2d382d0e.entry.js → p-c95d2b90.entry.js} +1 -1
  390. package/dist/taro-components/{p-c863ac7f.system.entry.js → p-ca6a5916.system.entry.js} +1 -1
  391. package/dist/taro-components/{p-5c0f97d3.system.entry.js → p-cae6c5d0.system.entry.js} +1 -1
  392. package/dist/taro-components/{p-80fa706c.system.entry.js → p-cafbb3d9.system.entry.js} +1 -1
  393. package/dist/taro-components/{p-5f4c6ca5.entry.js → p-ccbaba23.entry.js} +1 -1
  394. package/dist/taro-components/{p-69e70cd5.system.entry.js → p-d05eb105.system.entry.js} +1 -1
  395. package/dist/taro-components/{p-19b993d8.system.entry.js → p-d2203687.system.entry.js} +1 -1
  396. package/dist/taro-components/{p-5dbabb65.entry.js → p-d5603857.entry.js} +1 -1
  397. package/dist/taro-components/{p-82d52f00.system.entry.js → p-d73b3a94.system.entry.js} +1 -1
  398. package/dist/taro-components/p-d87a68f6.entry.js +1 -0
  399. package/dist/taro-components/{p-7e3f0837.entry.js → p-d973d536.entry.js} +1 -1
  400. package/dist/taro-components/{p-b3129dec.entry.js → p-d9884371.entry.js} +1 -1
  401. package/dist/taro-components/{p-82c5b9d3.entry.js → p-dc08715a.entry.js} +1 -1
  402. package/dist/taro-components/{p-13bf0192.entry.js → p-dc25fa81.entry.js} +1 -1
  403. package/dist/taro-components/{p-5186ab96.system.entry.js → p-dcf5747c.system.entry.js} +1 -1
  404. package/dist/taro-components/{p-de1d495a.system.entry.js → p-ddf75d6a.system.entry.js} +1 -1
  405. package/dist/taro-components/{p-562eace8.system.entry.js → p-ded98693.system.entry.js} +1 -1
  406. package/dist/taro-components/{p-4ffae31c.entry.js → p-dedf50a9.entry.js} +1 -1
  407. package/dist/taro-components/{p-ee9d6467.system.entry.js → p-df7c6216.system.entry.js} +1 -1
  408. package/dist/taro-components/{p-b4707cdd.entry.js → p-e1cce2f1.entry.js} +1 -1
  409. package/dist/taro-components/{p-895982a4.entry.js → p-e2e7bc16.entry.js} +1 -1
  410. package/dist/taro-components/p-e3d825d1.system.entry.js +1 -0
  411. package/dist/taro-components/{p-111fadd7.system.entry.js → p-e5ef41f2.system.entry.js} +1 -1
  412. package/dist/taro-components/{p-6f3187bc.entry.js → p-e681d764.entry.js} +1 -1
  413. package/dist/taro-components/{p-b259a558.system.entry.js → p-e853a2c8.system.entry.js} +1 -1
  414. package/dist/taro-components/{p-e5a80896.system.entry.js → p-ebad862a.system.entry.js} +1 -1
  415. package/dist/taro-components/{p-b43fa9b0.entry.js → p-ebb1ae64.entry.js} +1 -1
  416. package/dist/taro-components/{p-a2f848cc.entry.js → p-f034a433.entry.js} +1 -1
  417. package/dist/taro-components/{p-c253be9f.entry.js → p-f12feb2a.entry.js} +1 -1
  418. package/dist/taro-components/{p-39b3e34d.entry.js → p-f168fffc.entry.js} +1 -1
  419. package/dist/taro-components/p-f367a754.entry.js +1 -0
  420. package/dist/taro-components/{p-0132e803.entry.js → p-f43f26cf.entry.js} +1 -1
  421. package/dist/taro-components/{p-15c1ce79.entry.js → p-f5f3a111.entry.js} +1 -1
  422. package/dist/taro-components/{p-13e80cf7.entry.js → p-f8f2461f.entry.js} +1 -1
  423. package/dist/taro-components/p-f9935901.system.entry.js +1 -0
  424. package/dist/taro-components/{p-019124ae.system.entry.js → p-fa31b2de.system.entry.js} +1 -1
  425. package/dist/taro-components/p-fab63183.entry.js +1 -0
  426. package/dist/taro-components/{p-93b39a89.system.entry.js → p-fbf13159.system.entry.js} +1 -1
  427. package/dist/taro-components/{p-f7198b67.system.entry.js → p-fe5eefdc.system.entry.js} +1 -1
  428. package/dist/taro-components/{p-adee7f1b.system.entry.js → p-feb89474.system.entry.js} +1 -1
  429. package/dist/taro-components/{p-76c0f443.entry.js → p-ff772345.entry.js} +1 -1
  430. package/dist/taro-components/taro-components.esm.js +1 -1
  431. package/dist/taro-components/taro-components.js +1 -1
  432. package/dist/types/components/map/map.d.ts +145 -2
  433. package/dist/types/components.d.ts +214 -1
  434. package/lib/react/component-lib/index.d.ts +53 -53
  435. package/lib/react/component-lib/input.d.ts +1 -1
  436. package/lib/react/component-lib/input.js.map +1 -1
  437. package/lib/react/component-lib/reactify-wc.d.ts +1 -1
  438. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  439. package/lib/react/components.d.ts +92 -92
  440. package/lib/react/components.js +2 -0
  441. package/lib/react/components.js.map +1 -1
  442. package/lib/react/helper.d.ts +4 -2
  443. package/lib/react/helper.js.map +1 -1
  444. package/lib/react/index.d.ts +1 -1
  445. package/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5/node_modules/tslib/tslib.es6.js +373 -0
  446. package/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5/node_modules/tslib/tslib.es6.js.map +1 -0
  447. package/lib/react/react-component-lib/createComponent.d.ts +3 -3
  448. package/lib/react/react-component-lib/createComponent.js +1 -1
  449. package/lib/react/react-component-lib/createComponent.js.map +1 -1
  450. package/lib/react/react-component-lib/createOverlayComponent.d.ts +5 -5
  451. package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
  452. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
  453. package/lib/react/react-component-lib/index.d.ts +2 -2
  454. package/lib/react/{interfaces-f526f1a2.d.ts → react-component-lib/interfaces.d.ts} +4 -5
  455. package/lib/react/react-component-lib/utils/attachProps.d.ts +6 -6
  456. package/lib/react/react-component-lib/utils/attachProps.js +2 -2
  457. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  458. package/lib/react/react-component-lib/utils/case.d.ts +2 -3
  459. package/lib/react/react-component-lib/utils/dev.d.ts +6 -0
  460. package/lib/react/react-component-lib/utils/index.d.ts +9 -10
  461. package/lib/react/react-component-lib/utils/index.js.map +1 -1
  462. package/lib/vue3/component-lib/createComponent.d.ts +1 -2
  463. package/lib/vue3/component-lib/createFormsComponent.d.ts +1 -2
  464. package/lib/vue3/component-lib/createFormsComponent.js.map +1 -1
  465. package/lib/vue3/component-lib/forwardRef.d.ts +1 -2
  466. package/lib/vue3/component-lib/icon.d.ts +1 -1
  467. package/lib/vue3/component-lib/image.d.ts +1 -1
  468. package/lib/vue3/component-lib/index.d.ts +52 -53
  469. package/lib/vue3/component-lib/scroll-view.d.ts +1 -1
  470. package/lib/vue3/component-lib/scroll-view.js.map +1 -1
  471. package/lib/vue3/component-lib/text.d.ts +1 -1
  472. package/lib/vue3/components-loader.d.ts +1 -2
  473. package/lib/vue3/components-loader.js.map +1 -1
  474. package/lib/vue3/components.d.ts +91 -92
  475. package/lib/vue3/components.js +31 -1
  476. package/lib/vue3/components.js.map +1 -1
  477. package/lib/vue3/index.d.ts +1 -1
  478. package/lib/vue3/vue-component-lib/utils.d.ts +2 -3
  479. package/lib/vue3/vue-component-lib/utils.js.map +1 -1
  480. package/package.json +21 -14
  481. package/types/GridBuilder.d.ts +1 -1
  482. package/types/ListBuilder.d.ts +1 -1
  483. package/types/NestedScrollBody.d.ts +1 -1
  484. package/types/NestedScrollHeader.d.ts +1 -1
  485. package/types/OpenContainer.d.ts +3 -3
  486. package/dist/esm-es5/index-c3e4004b.js +0 -7
  487. package/dist/taro-components/p-25636983.entry.js +0 -1
  488. package/dist/taro-components/p-2ec68968.system.js +0 -7
  489. package/dist/taro-components/p-378b504c.entry.js +0 -1
  490. package/dist/taro-components/p-477f8fbd.system.js +0 -1
  491. package/dist/taro-components/p-4c30ea10.entry.js +0 -1
  492. package/dist/taro-components/p-518a9b73.entry.js +0 -1
  493. package/dist/taro-components/p-52ad5213.system.entry.js +0 -1
  494. package/dist/taro-components/p-6dd357b9.entry.js +0 -1
  495. package/dist/taro-components/p-751d42cb.entry.js +0 -1
  496. package/dist/taro-components/p-9f1b0ae1.entry.js +0 -1
  497. package/dist/taro-components/p-a0f42e7f.entry.js +0 -1
  498. package/dist/taro-components/p-d1a095bd.system.entry.js +0 -1
  499. package/dist/taro-components/p-d6bd1a5b.entry.js +0 -1
  500. package/dist/taro-components/p-de951a46.js +0 -7
  501. package/dist/taro-components/p-ed081b3d.entry.js +0 -1
  502. package/dist/taro-components/p-f9a13a5c.entry.js +0 -1
  503. package/lib/vue2/component-lib/components.d.ts +0 -111
  504. package/lib/vue2/component-lib/components.js +0 -74
  505. package/lib/vue2/component-lib/components.js.map +0 -1
  506. package/lib/vue2/component-lib/createComponent.d.ts +0 -14
  507. package/lib/vue2/component-lib/createComponent.js +0 -23
  508. package/lib/vue2/component-lib/createComponent.js.map +0 -1
  509. package/lib/vue2/component-lib/createFormsComponent.d.ts +0 -22
  510. package/lib/vue2/component-lib/createFormsComponent.js +0 -53
  511. package/lib/vue2/component-lib/createFormsComponent.js.map +0 -1
  512. package/lib/vue2/component-lib/icon.d.ts +0 -16
  513. package/lib/vue2/component-lib/icon.js +0 -23
  514. package/lib/vue2/component-lib/icon.js.map +0 -1
  515. package/lib/vue2/component-lib/image.d.ts +0 -16
  516. package/lib/vue2/component-lib/image.js +0 -24
  517. package/lib/vue2/component-lib/image.js.map +0 -1
  518. package/lib/vue2/component-lib/index.d.ts +0 -1
  519. package/lib/vue2/component-lib/index.js +0 -25
  520. package/lib/vue2/component-lib/index.js.map +0 -1
  521. package/lib/vue2/component-lib/mixins/listeners.d.ts +0 -6
  522. package/lib/vue2/component-lib/mixins/listeners.js +0 -14
  523. package/lib/vue2/component-lib/mixins/listeners.js.map +0 -1
  524. package/lib/vue2/component-lib/mixins/refs.d.ts +0 -5
  525. package/lib/vue2/component-lib/mixins/refs.js +0 -53
  526. package/lib/vue2/component-lib/mixins/refs.js.map +0 -1
  527. package/lib/vue2/component-lib/picker.d.ts +0 -25
  528. package/lib/vue2/component-lib/picker.js +0 -41
  529. package/lib/vue2/component-lib/picker.js.map +0 -1
  530. package/lib/vue2/component-lib/scroll-view.d.ts +0 -17
  531. package/lib/vue2/component-lib/scroll-view.js +0 -35
  532. package/lib/vue2/component-lib/scroll-view.js.map +0 -1
  533. package/lib/vue2/component-lib/text.d.ts +0 -16
  534. package/lib/vue2/component-lib/text.js +0 -24
  535. package/lib/vue2/component-lib/text.js.map +0 -1
  536. package/lib/vue2/components-loader.d.ts +0 -2
  537. package/lib/vue2/components-loader.js +0 -21
  538. package/lib/vue2/components-loader.js.map +0 -1
  539. package/lib/vue2/components.d.ts +0 -381
  540. package/lib/vue2/components.js +0 -605
  541. package/lib/vue2/components.js.map +0 -1
  542. package/lib/vue2/index.d.ts +0 -1
  543. package/lib/vue2/index.js +0 -2
  544. package/lib/vue2/index.js.map +0 -1
  545. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14/node_modules/vue-fragment/dist/vue-fragment.esm.js +0 -4
  546. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.7.14/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +0 -1
  547. package/lib/vue2/vue-component-lib/utils.d.ts +0 -10
  548. package/lib/vue2/vue-component-lib/utils.js +0 -51
  549. package/lib/vue2/vue-component-lib/utils.js.map +0 -1
  550. /package/dist/cjs/{index-5b029707.js → index-09efe07d.js} +0 -0
  551. /package/dist/esm/{index-ab3c86da.js → index-9924aee9.js} +0 -0
  552. /package/dist/esm-es5/{index-ab3c86da.js → index-9924aee9.js} +0 -0
  553. /package/dist/taro-components/{p-2b70c348.system.js → p-75d01c60.system.js} +0 -0
  554. /package/dist/taro-components/{p-dd7a128d.js → p-e62a1287.js} +0 -0
@@ -1,11 +1,1813 @@
1
1
  import { h, Host } from '@stencil/core';
2
- import { notSupport } from '../../utils';
2
+ import Hammer from 'hammerjs';
3
3
  export class Map {
4
- componentDidLoad() {
5
- notSupport('Map', this);
4
+ constructor() {
5
+ this.currentRotation = 0;
6
+ /* 获取当前地图中心的经纬度 */
7
+ this._getCenterLocation = (option) => {
8
+ // 遍历当前的覆盖物,找到之前添加的中心点图标并删除它
9
+ this.map.getOverlays().forEach((overlay) => {
10
+ if (overlay instanceof BMapGL.Marker && overlay.isCenterMarker) {
11
+ this.map.removeOverlay(overlay);
12
+ }
13
+ });
14
+ // 创建自定义图标并设置图标位置
15
+ option.iconPath = 'https://img0.baidu.com/it/u=2604176863,3349829508&fm=253&fmt=auto&app=138&f=PNG?w=243&h=243';
16
+ const icon = new BMapGL.Icon(option.iconPath, new BMapGL.Size(20, 30));
17
+ // 将经纬度从BD09转换为GCJ02
18
+ const gcj02Point = [this.longitude, this.latitude];
19
+ const marker = new BMapGL.Marker(new BMapGL.Point(this.longitude, this.latitude), { icon });
20
+ marker.isCenterMarker = true; // 标记该覆盖物是中心点图标
21
+ // 添加新的图标
22
+ this.map.addOverlay(marker);
23
+ return gcj02Point;
24
+ };
25
+ /* 设置定位点图标,支持网络路径、本地路径、代码包路径 */
26
+ this._setLocMarkerIcon = (option) => {
27
+ // 创建自定义图标
28
+ const icon = new BMapGL.Icon(option.iconPath, new BMapGL.Size(20, 30));
29
+ // 创建定位点并设置图标
30
+ const point = new BMapGL.Point(116.404, 39.915);
31
+ const marker = new BMapGL.Marker(point, { icon });
32
+ this.map.addOverlay(marker);
33
+ };
34
+ /* 平移marker,带动画 */
35
+ this._translateMarker = (option) => {
36
+ let latitude = option.destination.latitude;
37
+ const longitude = option.destination.longitude;
38
+ if (latitude < -80 && latitude >= -90) {
39
+ latitude = option.destination.latitude + 10;
40
+ }
41
+ const destinationPoint = new BMapGL.Point(longitude, latitude);
42
+ const obj = {
43
+ flagId: true,
44
+ flagCoordinate: true // 标记是否有有效经纬度
45
+ };
46
+ const animationEndResult = {
47
+ errMsg: 'animationEnd:ok',
48
+ };
49
+ // 获取所有覆盖物
50
+ const overlays = this.map.getOverlays();
51
+ // 查找指定 id 的 Marker 对象
52
+ const targetMarker = overlays.find((overlay) => overlay instanceof BMapGL.Marker && overlay.id === option.markerId);
53
+ if (!targetMarker) {
54
+ console.error(`Marker "${option.markerId}" not found.`);
55
+ obj.flagId = false;
56
+ return obj;
57
+ }
58
+ if (latitude > 90 || latitude < -90 || longitude > 180 || longitude < -180 || isNaN(latitude) || isNaN(longitude)) {
59
+ obj.flagCoordinate = false;
60
+ return obj;
61
+ }
62
+ // 计算平移步长
63
+ const startLngLat = targetMarker.getPosition();
64
+ const step = {
65
+ lng: (destinationPoint.lng - startLngLat.lng) / (option.duration / 16),
66
+ lat: (destinationPoint.lat - startLngLat.lat) / (option.duration / 16), // 每帧移动的纬度增量
67
+ };
68
+ // 计算旋转角度的步长
69
+ const startRotation = targetMarker.getRotation(); // 获取起始旋转角度
70
+ const targetRotation = option.rotate; // 设置目标旋转角度
71
+ if (!this.currentRotation) {
72
+ this.currentRotation = targetRotation;
73
+ }
74
+ else {
75
+ this.currentRotation += targetRotation;
76
+ }
77
+ const rotationStep = (this.currentRotation - startRotation) / (option.duration / 16);
78
+ // 执行平移动画
79
+ let currentLngLat = startLngLat;
80
+ let currentRotation = startRotation;
81
+ if (!option.moveWithRotate && option.autoRotate) {
82
+ let currentFrame = 0; // 用于平移动画的计数器
83
+ // 执行平移动画
84
+ const animationInterval = setInterval(() => {
85
+ currentLngLat = new BMapGL.Point(currentLngLat.lng + step.lng, currentLngLat.lat + step.lat);
86
+ targetMarker.setPosition(currentLngLat);
87
+ currentFrame++;
88
+ if (currentFrame >= option.duration / 16) {
89
+ clearInterval(animationInterval);
90
+ let rotationFrame = 0; // 用于旋转动画的计数器
91
+ // 在到达目的地后执行旋转动画
92
+ const rotationInterval = setInterval(() => {
93
+ currentRotation += rotationStep;
94
+ targetMarker.setRotation(currentRotation);
95
+ rotationFrame++;
96
+ if (rotationFrame >= option.duration / 16) {
97
+ clearInterval(rotationInterval); // 清除旋转动画的定时器
98
+ option === null || option === void 0 ? void 0 : option.animationEnd(animationEndResult);
99
+ }
100
+ }, 16);
101
+ }
102
+ }, 16);
103
+ }
104
+ else if (option.moveWithRotate && option.autoRotate) {
105
+ let currentFrame = 0; // 定义局部变量
106
+ const animationInterval = setInterval(() => {
107
+ currentLngLat = new BMapGL.Point(currentLngLat.lng + step.lng, currentLngLat.lat + step.lat);
108
+ targetMarker.setPosition(currentLngLat);
109
+ currentRotation += rotationStep;
110
+ targetMarker.setRotation(currentRotation);
111
+ currentFrame++;
112
+ if (currentFrame >= option.duration / 16) {
113
+ clearInterval(animationInterval);
114
+ option === null || option === void 0 ? void 0 : option.animationEnd(animationEndResult);
115
+ }
116
+ }, 16);
117
+ }
118
+ else if (option.moveWithRotate && !option.autoRotate) {
119
+ let currentFrame = 0; // 定义局部变量
120
+ const animationInterval = setInterval(() => {
121
+ currentLngLat = new BMapGL.Point(currentLngLat.lng + step.lng, currentLngLat.lat + step.lat);
122
+ targetMarker.setPosition(currentLngLat);
123
+ currentFrame++;
124
+ if (currentFrame >= option.duration / 16) {
125
+ clearInterval(animationInterval);
126
+ option === null || option === void 0 ? void 0 : option.animationEnd(animationEndResult);
127
+ }
128
+ }, 16);
129
+ }
130
+ return obj;
131
+ };
132
+ /* 缩放视野展示所有经纬度 */
133
+ this._includePoints = (option) => {
134
+ const bPoints = option.points.map((point) => new BMapGL.Point(point.longitude, point.latitude));
135
+ const originalZoom = this.map.getZoom();
136
+ const originalCenter = this.map.getCenter();
137
+ const view = this.map.getViewport(bPoints);
138
+ // 地图缩放后
139
+ this.map.centerAndZoom(view.center, view.zoom);
140
+ const bounds = this.map.getBounds();
141
+ let flag = true;
142
+ for (let i = 0; i < bPoints.length; i++) {
143
+ if (!bounds.containsPoint(bPoints[i])) {
144
+ this.map.centerAndZoom(originalCenter, originalZoom);
145
+ flag = false;
146
+ break;
147
+ }
148
+ }
149
+ return flag;
150
+ };
151
+ /* 获取当前地图的视野范围 */
152
+ this._getRegion = () => {
153
+ // 获取地图当前视野范围
154
+ const bounds = this.map.getBounds();
155
+ const sw = bounds.getSouthWest(); // 西南角坐标
156
+ const ne = bounds.getNorthEast(); // 东北角坐标
157
+ return {
158
+ southwest: { lat: sw.lat, lng: sw.lng },
159
+ northeast: { lat: ne.lat, lng: ne.lng },
160
+ };
161
+ };
162
+ /* 获取当前地图的旋转角 */
163
+ this._getRotate = () => {
164
+ // 获取地图当前旋转角度
165
+ let rotation = this.rotate;
166
+ if (rotation < 0 || rotation > 360) {
167
+ rotation = 0;
168
+ }
169
+ return rotation;
170
+ };
171
+ /* 获取当前地图的倾斜角 */
172
+ this._getSkew = () => {
173
+ let Skew = this.skew;
174
+ if (Skew < 0 || Skew > 40) {
175
+ Skew = 0;
176
+ }
177
+ return Skew;
178
+ };
179
+ /* 获取当前地图的缩放级别 */
180
+ this._getScale = () => {
181
+ const Scale = this.scale;
182
+ return Scale;
183
+ };
184
+ /* 设置地图中心点偏移,向后向下为增长 */
185
+ this._setCenterOffset = (option) => {
186
+ // 解构获取偏移量参数
187
+ const [x, y] = option.offset;
188
+ // 获取地图尺寸
189
+ const mapSize = this.map.getSize();
190
+ // 计算水平偏移量
191
+ const offsetX = Math.max(0.25 * mapSize.width, Math.min(0.75 * mapSize.width, x * mapSize.width));
192
+ // 计算垂直偏移量
193
+ const offsetY = Math.max(0.25 * mapSize.height, Math.min(0.75 * mapSize.height, y * mapSize.height));
194
+ // 创建像素坐标对象
195
+ const pixel = new BMapGL.Pixel(offsetX, offsetY);
196
+ // 将像素坐标转换为地理坐标
197
+ const center = this.map.pixelToPoint(pixel);
198
+ // 平移地图至指定中心点
199
+ this.map.panTo(center);
200
+ };
201
+ /* 添加 marker */
202
+ this._addMarkers = (option) => {
203
+ if (option.clear) {
204
+ // 清除地图上所有marker
205
+ this.map.clearOverlays(this.markers);
206
+ }
207
+ option.markers.forEach((marker) => {
208
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
209
+ if (marker.latitude && marker.longitude && marker.iconPath) {
210
+ const pt = new BMapGL.Point(marker.longitude, marker.latitude);
211
+ const markerObj = new BMapGL.Marker(pt, { enableClicking: true });
212
+ this.map.addOverlay(markerObj);
213
+ markerObj.id = marker.id; // 设置标记点的唯一标识符
214
+ markerObj.alpha = marker.alpha;
215
+ if (marker.zIndex) {
216
+ markerObj.setZIndex(marker.zIndex);
217
+ }
218
+ if (marker.width && marker.height && marker.iconPath) {
219
+ const icon = new BMapGL.Icon(marker.iconPath, new BMapGL.Size(marker.width, marker.height));
220
+ markerObj.setIcon(icon);
221
+ }
222
+ else if (marker.iconPath) {
223
+ const img = new Image();
224
+ img.src = marker.iconPath;
225
+ img.style.opacity = String(marker.alpha);
226
+ img.onload = () => {
227
+ const iconSize = new BMapGL.Size(img.width, img.height);
228
+ const icon = new BMapGL.Icon(img.src, iconSize);
229
+ icon.imageOffset = new BMapGL.Size(0, 0, marker.alpha || 1);
230
+ markerObj.setIcon(icon);
231
+ };
232
+ }
233
+ else {
234
+ console.error('没有找到iconPath图片路径');
235
+ return;
236
+ }
237
+ const rotate = marker.rotate ? marker.rotate : 0;
238
+ if (rotate) {
239
+ markerObj.setRotation(rotate);
240
+ }
241
+ if (marker.anchor) {
242
+ const offsetX = ((_b = (_a = marker.anchor) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : 0) * (marker.width || 0);
243
+ const offsetY = ((_d = (_c = marker.anchor) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : 0) * (marker.height || 0);
244
+ markerObj.setOffset(new BMapGL.Size(offsetX, offsetY));
245
+ }
246
+ // 创建title
247
+ if (!marker.callout && marker.title) {
248
+ const hammer = new Hammer(this.mapRef); // 创建Hammer对象,绑定到地图容器
249
+ hammer.on('tap', (e) => {
250
+ // 使用tap事件替代click事件
251
+ const touch = e.center;
252
+ const x = touch.x;
253
+ const y = touch.y;
254
+ // 假设阈值为 10,表示点击距离小于 10 个像素时认为是点击到了标记点
255
+ const threshold = 15;
256
+ // 遍历标记点数组,计算触摸位置与每个标记点的距离
257
+ option.markers.forEach((marker) => {
258
+ // 通过class名获取地图容器
259
+ const mapContainer = document.getElementsByClassName('bmap-container')[0];
260
+ // 获取地图容器在屏幕上的偏移量
261
+ const mapContainerRect = mapContainer.getBoundingClientRect();
262
+ const mapOffsetX = mapContainerRect.left;
263
+ const mapOffsetY = mapContainerRect.top;
264
+ const point = new BMapGL.Point(marker.longitude, marker.latitude);
265
+ const pixel = this.map.pointToPixel(point);
266
+ const markerX = pixel.x + mapOffsetX;
267
+ const markerY = pixel.y + mapOffsetY;
268
+ // 计算触摸位置与标记点的距离
269
+ const distance = Math.sqrt(Math.pow(x - markerX, 2) + Math.pow(y - markerY, 2));
270
+ if (distance < threshold && marker.id === markerObj.id) {
271
+ // 最近的标记点距离小于阈值,表示用户点击到了标记点
272
+ const content = `<div style="text-align:center">${marker.title}</div>`;
273
+ const infoWindow = new BMapGL.InfoWindow(content);
274
+ this.map.openInfoWindow(infoWindow, pt);
275
+ }
276
+ });
277
+ });
278
+ }
279
+ if (marker.callout) {
280
+ const offsetX = ((_e = marker.callout) === null || _e === void 0 ? void 0 : _e.anchorX) ? (_f = marker.callout) === null || _f === void 0 ? void 0 : _f.anchorX : 0; // 横向偏移量
281
+ const offsetY = ((_g = marker.callout) === null || _g === void 0 ? void 0 : _g.anchorY) ? (_h = marker.callout) === null || _h === void 0 ? void 0 : _h.anchorY : 0; // 纵向偏移量
282
+ // 创建气泡(callout)对象
283
+ const callout = new BMapGL.InfoWindow(`<div style="
284
+ padding: ${(_j = marker.callout) === null || _j === void 0 ? void 0 : _j.padding}px;
285
+ color:${(_k = marker.callout) === null || _k === void 0 ? void 0 : _k.color};
286
+ text-align:${(_l = marker.callout) === null || _l === void 0 ? void 0 : _l.textAlign};"
287
+ >
288
+ <p style="font-size:${(_m = marker.callout) === null || _m === void 0 ? void 0 : _m.fontSize}px">${((_o = marker.callout) === null || _o === void 0 ? void 0 : _o.content) || ''}</p>
289
+ </div>`, {
290
+ width: 200,
291
+ height: 100,
292
+ offset: new BMapGL.Size(offsetX - 24, offsetY - 20), // 设置偏移量
293
+ });
294
+ // 自定义属性存储气泡(callout)对象
295
+ markerObj.callout = callout;
296
+ // 将气泡(callout)对象绑定到标记(marker)对象上
297
+ this.map.addOverlay(markerObj);
298
+ if (((_p = marker.callout) === null || _p === void 0 ? void 0 : _p.display) === 'ALWAYS') {
299
+ markerObj.callout.disableCloseOnClick();
300
+ const point = markerObj.getPosition(); // 获取marker标记点的位置
301
+ markerObj.callout.addEventListener('open', function () {
302
+ var _a, _b, _c, _d;
303
+ console.log(markerObj.callout);
304
+ const infoWindowElement = document.querySelector('.BMap_bubble_pop');
305
+ if (infoWindowElement) {
306
+ let triangle = infoWindowElement.querySelector('.triangle');
307
+ if (!triangle) {
308
+ // 如果不存在,则创建并添加新的三角形 div
309
+ triangle = document.createElement('div');
310
+ triangle.className = 'triangle'; // 添加一个类名以便日后查找
311
+ infoWindowElement.appendChild(triangle);
312
+ }
313
+ const img = document.querySelector('.BMap_bubble_pop>img');
314
+ if (img) {
315
+ img.setAttribute('style', `position: absolute;transform: translate(-50%, 0); top: ${point.lat - 100}px; left: ${point.lng - 20}px;display:none`);
316
+ }
317
+ const backgroundcolor = (_a = marker.callout) === null || _a === void 0 ? void 0 : _a.bgColor;
318
+ let borderWidth = ((_b = marker.callout) === null || _b === void 0 ? void 0 : _b.borderWidth) || 5;
319
+ const borderColor = (_c = marker.callout) === null || _c === void 0 ? void 0 : _c.borderColor;
320
+ const borderRadius = (_d = marker.callout) === null || _d === void 0 ? void 0 : _d.borderRadius;
321
+ // 确保边框大小不超过15
322
+ borderWidth = Math.min(borderWidth, 15);
323
+ triangle.setAttribute('style', `width:0;height:0;border-left:${borderWidth}px solid transparent;border-right:${borderWidth}px solid transparent;border-top:${borderWidth}px solid ${borderColor};position:absolute;left:83px;bottom:-${2 * borderWidth}px`);
324
+ infoWindowElement.setAttribute('style', `background-color:${backgroundcolor};top:${point.lat - 120}px; left:${point.lng - 100}px;position: absolute;border: ${borderWidth}px solid ${borderColor};border-radius:${borderRadius}px; `);
325
+ }
326
+ });
327
+ this.map.openInfoWindow(markerObj.callout, pt);
328
+ }
329
+ else {
330
+ const hammer = new Hammer(this.mapRef); // 创建Hammer对象,绑定到地图容器
331
+ hammer.on('tap', (e) => {
332
+ // 使用tap事件替代click事件
333
+ const touch = e.center;
334
+ const x = touch.x;
335
+ const y = touch.y;
336
+ // 假设阈值为 10,表示点击距离小于 10 个像素时认为是点击到了标记点
337
+ const threshold = 15;
338
+ // 遍历标记点数组,计算触摸位置与每个标记点的距离
339
+ option.markers.forEach((marker) => {
340
+ // 通过class名获取地图容器
341
+ const mapContainer = document.getElementsByClassName('bmap-container')[0];
342
+ // 获取地图容器在屏幕上的偏移量
343
+ const mapContainerRect = mapContainer.getBoundingClientRect();
344
+ const mapOffsetX = mapContainerRect.left;
345
+ const mapOffsetY = mapContainerRect.top;
346
+ const point = new BMapGL.Point(marker.longitude, marker.latitude);
347
+ const pixel = this.map.pointToPixel(point);
348
+ const markerX = pixel.x + mapOffsetX;
349
+ const markerY = pixel.y + mapOffsetY;
350
+ // 计算触摸位置与标记点的距离
351
+ const distance = Math.sqrt(Math.pow(x - markerX, 2) + Math.pow(y - markerY, 2));
352
+ if (distance < threshold && marker.id === markerObj.id) {
353
+ const point = markerObj.getPosition(); // 获取marker标记点的位置
354
+ markerObj.callout.addEventListener('open', function () {
355
+ var _a, _b, _c, _d;
356
+ console.log(markerObj.callout);
357
+ const infoWindowElement = document.querySelector('.BMap_bubble_pop');
358
+ if (infoWindowElement) {
359
+ let triangle = infoWindowElement.querySelector('.triangle');
360
+ if (!triangle) {
361
+ // 如果不存在,则创建并添加新的三角形 div
362
+ triangle = document.createElement('div');
363
+ triangle.className = 'triangle'; // 添加一个类名以便日后查找
364
+ infoWindowElement.appendChild(triangle);
365
+ }
366
+ const img = document.querySelector('.BMap_bubble_pop>img');
367
+ if (img) {
368
+ img.setAttribute('style', `position: absolute;transform: translate(-50%, 0); top: ${point.lat - 100}px; left: ${point.lng - 20}px;display:none`);
369
+ }
370
+ const backgroundcolor = (_a = marker.callout) === null || _a === void 0 ? void 0 : _a.bgColor;
371
+ let borderWidth = ((_b = marker.callout) === null || _b === void 0 ? void 0 : _b.borderWidth) || 5;
372
+ const borderColor = (_c = marker.callout) === null || _c === void 0 ? void 0 : _c.borderColor;
373
+ const borderRadius = (_d = marker.callout) === null || _d === void 0 ? void 0 : _d.borderRadius;
374
+ // 确保边框大小不超过15
375
+ borderWidth = Math.min(borderWidth, 15);
376
+ triangle.setAttribute('style', `width:0;height:0;border-left:${borderWidth}px solid transparent;border-right:${borderWidth}px solid transparent;border-top:${borderWidth}px solid ${borderColor};position:absolute;left:83px;bottom:-${2 * borderWidth}px`);
377
+ infoWindowElement.setAttribute('style', `background-color:${backgroundcolor};top:${point.lat - 120}px; left:${point.lng - 100}px;position: absolute;border: ${borderWidth}px solid ${borderColor};border-radius:${borderRadius}px; `);
378
+ }
379
+ });
380
+ // 最近的标记点距离小于阈值,表示用户点击到了标记点
381
+ this.map.openInfoWindow(markerObj.callout, pt);
382
+ }
383
+ else {
384
+ markerObj.callout.enableCloseOnClick();
385
+ // 用户点击到了地图上的其他位置,不是标记点
386
+ }
387
+ });
388
+ });
389
+ }
390
+ }
391
+ // 判断是否有label属性
392
+ if (marker.label) {
393
+ const labelContent = marker.label.content || '';
394
+ const labelOpts = {
395
+ position: pt,
396
+ offset: new BMapGL.Size(marker.label.anchorX || 0, marker.label.anchorY || 0),
397
+ };
398
+ const label = new BMapGL.Label(labelContent, labelOpts);
399
+ // 设置标签样式
400
+ label.setStyle({
401
+ color: marker.label.color,
402
+ fontSize: marker.label.fontSize + 'px',
403
+ borderWidth: marker.label.borderWidth + 'px',
404
+ borderColor: marker.label.borderColor,
405
+ borderRadius: marker.label.borderRadius + 'px',
406
+ background: marker.label.bgColor,
407
+ padding: marker.label.padding + 'px',
408
+ });
409
+ markerObj.setLabel(label);
410
+ }
411
+ }
412
+ });
413
+ };
414
+ /* 移除 marker */
415
+ this._removeMarkers = (option) => {
416
+ // 获取所有覆盖物
417
+ const overlays = this.map.getOverlays();
418
+ let newTargetMarker = {};
419
+ option.markerIds.forEach((id) => {
420
+ // 查找指定 id 的 Marker 对象
421
+ const targetMarker = overlays.find((overlay) => overlay instanceof BMapGL.Marker && String(overlay.id) === id);
422
+ newTargetMarker = targetMarker;
423
+ this.map.removeOverlay(targetMarker);
424
+ });
425
+ return newTargetMarker;
426
+ };
427
+ /* 沿指定路径移动 marker,用于轨迹回放等场景。动画完成时触发回调事件,若动画进行中,对同一 marker 再次调用 moveAlong 方法,前一次的动画将被打断 */
428
+ this._moveAlong = (object) => {
429
+ const path = object.path;
430
+ const targetMarkerId = object.markerId;
431
+ const duration = object.duration;
432
+ const autoRotate = object.autoRotate;
433
+ const targetMarker = this.map.getOverlays().find((overlay) => overlay instanceof BMapGL.Marker && overlay.id === targetMarkerId);
434
+ const points = path.map((p) => new BMapGL.Point(p.longitude, p.latitude));
435
+ const obj = {
436
+ flagId: true,
437
+ flagCoordinate: true // 标记是否有有效经纬度
438
+ };
439
+ if (!targetMarker) {
440
+ console.error(`Marker "${targetMarkerId}" not found.`);
441
+ obj.flagId = false;
442
+ return obj;
443
+ }
444
+ for (let i = 0; i < points.length; i++) {
445
+ const point = points[i];
446
+ if (point.lat < -80 && point.lat >= -90) {
447
+ point.lat += 10;
448
+ }
449
+ if (point.lng < -180 || point.lng > 180 || point.lat < -90 || point.lat > 90 || isNaN(point.lng) || isNaN(point.lat)) {
450
+ obj.flagCoordinate = false;
451
+ return obj;
452
+ }
453
+ }
454
+ if (obj.flagId && obj.flagCoordinate) {
455
+ const startTime = performance.now();
456
+ const animate = (timestamp) => {
457
+ const elapsedTime = timestamp - startTime;
458
+ const progress = Math.min(elapsedTime / duration, 1);
459
+ const currentPoint = this.getPointOnPath(points, progress);
460
+ targetMarker.setPosition(currentPoint);
461
+ if (autoRotate && progress < 1) {
462
+ const nextPoint = this.getPointOnPath(points, Math.min(progress + 0.01, 1)); // 获取前进一点的点
463
+ const rotation = this.calculateRotation(currentPoint, nextPoint);
464
+ targetMarker.setRotation(rotation);
465
+ }
466
+ if (progress < 1) {
467
+ requestAnimationFrame(animate);
468
+ }
469
+ else {
470
+ // 动画结束
471
+ targetMarker.setPosition(points[points.length - 1]); // 设置 marker 位置为路径的最后一个点
472
+ targetMarker.setRotation(0); // 恢复旋转角度为0
473
+ }
474
+ };
475
+ requestAnimationFrame(animate);
476
+ }
477
+ return obj;
478
+ };
479
+ this.getPointOnPath = (points, progress) => {
480
+ const totalLength = this.calculateTotalLength(points);
481
+ const targetLength = totalLength * progress;
482
+ let currentLength = 0;
483
+ for (let i = 0; i < points.length - 1; i++) {
484
+ const segmentLength = this.map.getDistance(points[i], points[i + 1]);
485
+ if (currentLength + segmentLength >= targetLength) {
486
+ const ratio = (targetLength - currentLength) / segmentLength;
487
+ const deltaX = points[i + 1].lng - points[i].lng;
488
+ const deltaY = points[i + 1].lat - points[i].lat;
489
+ const newLng = points[i].lng + deltaX * ratio;
490
+ const newLat = points[i].lat + deltaY * ratio;
491
+ return new BMapGL.Point(newLng, newLat);
492
+ }
493
+ currentLength += segmentLength;
494
+ }
495
+ // 如果进度超出路径长度,返回路径的最后一个点
496
+ return points[points.length - 1];
497
+ };
498
+ this.calculateTotalLength = (points) => {
499
+ let totalLength = 0;
500
+ for (let i = 0; i < points.length - 1; i++) {
501
+ totalLength += this.map.getDistance(points[i], points[i + 1]);
502
+ }
503
+ return totalLength;
504
+ };
505
+ this.calculateRotation = (currentPoint, nextPoint) => {
506
+ const dx = nextPoint.lng - currentPoint.lng;
507
+ const dy = nextPoint.lat - currentPoint.lat;
508
+ let angle = Math.atan2(dy, dx) * (180 / Math.PI);
509
+ angle = 90 - angle;
510
+ return angle;
511
+ };
512
+ /* 创建自定义图片图层,图片会随着地图缩放而缩放 */
513
+ this._addGroundOverlay = (option) => {
514
+ const { src, opacity, bounds, visible, id, zIndex } = option;
515
+ let flag = true;
516
+ if (bounds.southwest.longitude >= bounds.northeast.longitude || bounds.southwest.latitude >= bounds.northeast.latitude) {
517
+ flag = false;
518
+ return;
519
+ }
520
+ if (bounds.southwest.latitude > 90 || bounds.southwest.latitude < -90 || bounds.southwest.longitude > 180 || bounds.southwest.longitude < -180 || isNaN(bounds.southwest.latitude) || isNaN(bounds.southwest.longitude)) {
521
+ flag = false;
522
+ return;
523
+ }
524
+ if (bounds.northeast.latitude > 90 || bounds.northeast.latitude < -90 || bounds.northeast.longitude > 180 || bounds.northeast.longitude < -180 || isNaN(bounds.northeast.latitude) || isNaN(bounds.northeast.longitude)) {
525
+ flag = false;
526
+ return;
527
+ }
528
+ // 创建覆盖物边界对象
529
+ const overlayBounds = new BMapGL.Bounds(new BMapGL.Point(bounds.southwest.longitude, bounds.southwest.latitude), new BMapGL.Point(bounds.northeast.longitude, bounds.northeast.latitude));
530
+ // 定义 GroundOverlay类
531
+ function GroundOverlay(bounds, imageUrl, map, visible, opacity, zIndex, id) {
532
+ this._bounds = bounds;
533
+ this._imageUrl = imageUrl;
534
+ this._map = map;
535
+ this._visible = visible;
536
+ this._opacity = opacity;
537
+ this._zIndex = zIndex;
538
+ this._id = id;
539
+ }
540
+ // 继承 BMapGL.Overlay
541
+ GroundOverlay.prototype = new BMapGL.Overlay();
542
+ // 初始化方法
543
+ GroundOverlay.prototype.initialize = function (map) {
544
+ // 移除已存在的元素
545
+ if (document.getElementById(this._id)) {
546
+ const element = document.getElementById(this._id);
547
+ element === null || element === void 0 ? void 0 : element.remove();
548
+ }
549
+ this._map = map;
550
+ if (!this._div) {
551
+ // 创建 div 元素并设置样式
552
+ const div = document.createElement('div');
553
+ div.id = this._id;
554
+ div.style.position = 'absolute';
555
+ div.style.border = 'none';
556
+ div.style.zIndex = this._zIndex;
557
+ // 创建 img 元素并设置样式
558
+ const img = document.createElement('img');
559
+ img.src = this._imageUrl;
560
+ // 确保opacity值在0到1之间
561
+ const validOpacity = (this._opacity < 0) ? '1' : this._opacity;
562
+ img.style.opacity = validOpacity;
563
+ div.appendChild(img);
564
+ this._div = div;
565
+ }
566
+ // 监听地图缩放事件,调整覆盖物尺寸
567
+ map.addEventListener('zoomend', () => {
568
+ const swPixel = map.pointToOverlayPixel(this._bounds.getSouthWest());
569
+ const nePixel = map.pointToOverlayPixel(this._bounds.getNorthEast());
570
+ const width = nePixel.x - swPixel.x;
571
+ const height = swPixel.y - nePixel.y;
572
+ this._div.style.width = width + 'px';
573
+ this._div.style.height = height + 'px';
574
+ const img = this._div.querySelector('img');
575
+ img.style.width = width + 'px';
576
+ img.style.height = height + 'px';
577
+ });
578
+ // 将 div 元素添加到地图覆盖物层
579
+ map.getPanes().labelPane.appendChild(this._div);
580
+ return this._div;
581
+ };
582
+ // 绘制方法
583
+ GroundOverlay.prototype.draw = function () {
584
+ // 设置 div 元素位置和尺寸
585
+ const _northeast = {
586
+ lat: option.bounds.northeast.latitude,
587
+ lng: option.bounds.southwest.longitude
588
+ };
589
+ const position = this._map.pointToOverlayPixel(_northeast);
590
+ this._div.style.left = position.x + 'px';
591
+ this._div.style.top = position.y + 'px';
592
+ const bounds = this._map.getBounds();
593
+ const sw = this._map.pointToPixel(bounds.getSouthWest());
594
+ const ne = this._map.pointToPixel(bounds.getNorthEast());
595
+ const width = ne.x - sw.x;
596
+ const height = ne.y - sw.y;
597
+ const zoom = this._map.getZoom();
598
+ const imageWidth = width * Math.pow(2, 18 - zoom);
599
+ const imageHeight = height * Math.pow(2, 18 - zoom);
600
+ this._div.style.width = imageWidth + 'px';
601
+ this._div.style.height = imageHeight + 'px';
602
+ this._div.style.display = this._visible ? 'block' : 'none';
603
+ const validOpacity = (this._opacity < 0) ? '1' : this._opacity;
604
+ this._div.getElementsByTagName('img')[0].style.opacity = validOpacity;
605
+ };
606
+ // 创建 GroundOverlay 实例
607
+ const overlay = new GroundOverlay(overlayBounds, src, this.map, visible, opacity, zIndex, id);
608
+ this.map.addOverlay(overlay);
609
+ // 对所有覆盖物进行排序
610
+ const overlays = this.map.getOverlays().sort((a, b) => a._zIndex - b._zIndex);
611
+ this.groundOverlay = overlay;
612
+ // 将所有覆盖物重新绘制
613
+ overlays.forEach((overlay) => overlay.draw());
614
+ const zoom = this.map.getZoom();
615
+ if (zoom < 20) {
616
+ this.map.setZoom(zoom + 1);
617
+ this.map.setZoom(zoom);
618
+ }
619
+ else {
620
+ this.map.setZoom(zoom - 1);
621
+ this.map.setZoom(zoom);
622
+ }
623
+ return flag;
624
+ };
625
+ /* 更新自定义图片图层 */
626
+ this._updateGroundOverlay = (option) => {
627
+ const { src, opacity, bounds, visible, id, zIndex } = option;
628
+ let obj;
629
+ let flagId = true; // 标记是否有id
630
+ let flagCoordinate = true; // 标记是否有有效经纬度
631
+ let flagObj = {};
632
+ // 获取所有图层
633
+ const overlays = this.map.getOverlays();
634
+ // 找到要更新的图层
635
+ const targetOverlay = overlays.find((overlay) => overlay._id === id);
636
+ if (!targetOverlay) {
637
+ flagId = false;
638
+ flagObj = {
639
+ flagId: flagId,
640
+ flagCoordinate: flagCoordinate
641
+ };
642
+ obj = Object.assign({}, flagObj);
643
+ return obj;
644
+ }
645
+ if (bounds.southwest.longitude >= bounds.northeast.longitude || bounds.southwest.latitude >= bounds.northeast.latitude) {
646
+ flagCoordinate = false;
647
+ flagObj = {
648
+ flagId: flagId,
649
+ flagCoordinate: flagCoordinate
650
+ };
651
+ obj = Object.assign({}, flagObj);
652
+ }
653
+ if (bounds.southwest.latitude > 90 || bounds.southwest.latitude < -90 || bounds.southwest.longitude > 180 || bounds.southwest.longitude < -180 || isNaN(bounds.southwest.latitude) || isNaN(bounds.southwest.longitude)) {
654
+ flagCoordinate = false;
655
+ flagObj = {
656
+ flagId: flagId,
657
+ flagCoordinate: flagCoordinate
658
+ };
659
+ obj = Object.assign({}, flagObj);
660
+ }
661
+ if (bounds.northeast.latitude > 90 || bounds.northeast.latitude < -90 || bounds.northeast.longitude > 180 || bounds.northeast.longitude < -180 || isNaN(bounds.northeast.latitude) || isNaN(bounds.northeast.longitude)) {
662
+ flagCoordinate = false;
663
+ flagObj = {
664
+ flagId: flagId,
665
+ flagCoordinate: flagCoordinate
666
+ };
667
+ obj = Object.assign({}, flagObj);
668
+ }
669
+ if (flagId && flagCoordinate) {
670
+ const targetBounds = new BMapGL.Bounds(new BMapGL.Point(bounds.southwest.longitude, bounds.southwest.latitude), new BMapGL.Point(bounds.northeast.longitude, bounds.northeast.latitude));
671
+ const zoom = this.map.getZoom();
672
+ if (targetOverlay) {
673
+ // 更新DOM元素
674
+ const element = document.getElementById(id);
675
+ if (element) {
676
+ const imgElement = element.querySelector('img');
677
+ if (imgElement) {
678
+ // 找到了对应的元素
679
+ const validOpacity = (opacity < 0) ? '1' : opacity;
680
+ element.style.opacity = validOpacity;
681
+ imgElement.style.display = visible ? 'block' : 'none';
682
+ element.style.zIndex = zIndex;
683
+ // 加载图片
684
+ const image = new Image();
685
+ image.onload = () => {
686
+ // 图片加载完成后执行
687
+ imgElement.src = src; // 设置图片的src
688
+ // 根据当前缩放级别设置图片宽高
689
+ const lngSpan = targetBounds.getNorthEast().lng - targetBounds.getSouthWest().lng;
690
+ const mapWidth = this.map.getSize().width; // 获取地图容器的宽度
691
+ const updatedImageWidth = (mapWidth / Math.pow(2, 18 - zoom)) * lngSpan;
692
+ const imageAspectRatio = image.naturalHeight / image.naturalWidth;
693
+ const updatedImageHeight = updatedImageWidth * imageAspectRatio;
694
+ imgElement.style.width = `${updatedImageWidth}px`;
695
+ imgElement.style.height = `${updatedImageHeight}px`;
696
+ // 重新绘制图层
697
+ targetOverlay._bounds = targetBounds;
698
+ targetOverlay.draw();
699
+ // 更新完图片后,立即重绘地图
700
+ this.map.panTo(this.map.getCenter());
701
+ targetOverlay.draw();
702
+ };
703
+ image.src = src;
704
+ }
705
+ }
706
+ }
707
+ else {
708
+ // 没有找到对应的元素
709
+ console.error(`未找到id为${id}的元素`);
710
+ }
711
+ flagObj = {
712
+ flagId: flagId,
713
+ flagCoordinate: flagCoordinate
714
+ };
715
+ obj = Object.assign({}, flagObj);
716
+ return obj;
717
+ }
718
+ else {
719
+ return obj;
720
+ }
721
+ };
722
+ /* 移除自定义图片图层 */
723
+ this._removeGroundOverlay = (option) => {
724
+ // 获取所有图层
725
+ const overlays = this.map.getOverlays();
726
+ let newTargetOverlay = '';
727
+ // 找到要更新的图层
728
+ const targetOverlay = overlays.find((overlay) => overlay._id === option.id);
729
+ newTargetOverlay = targetOverlay;
730
+ if (targetOverlay) {
731
+ // 如果找到了对应的图层,执行删除操作
732
+ this.map.removeOverlay(targetOverlay);
733
+ }
734
+ return newTargetOverlay;
735
+ };
736
+ /* 限制地图的显示范围。此接口同时会限制地图的最小缩放整数级别。 */
737
+ this._setBoundary = (option) => {
738
+ let nth = option.northeast.latitude;
739
+ let sth = option.southwest.latitude;
740
+ let flag = true;
741
+ if (option.northeast.latitude <= -80 && option.northeast.latitude >= -90) {
742
+ nth = option.northeast.latitude + 10;
743
+ }
744
+ if (option.southwest.latitude <= -80 && option.southwest.latitude >= -90) {
745
+ sth = option.southwest.latitude + 10;
746
+ }
747
+ if (option.northeast.latitude < -90 || option.northeast.latitude > 90 || option.northeast.longitude < -180 || option.northeast.longitude > 180 || isNaN(option.northeast.latitude) || isNaN(option.northeast.longitude) || option.northeast.longitude < option.southwest.longitude || option.northeast.latitude < option.southwest.latitude) {
748
+ flag = false;
749
+ return;
750
+ }
751
+ if (option.southwest.latitude < -90 || option.southwest.latitude > 90 || option.southwest.longitude < -180 || option.southwest.longitude > 180 || isNaN(option.southwest.latitude) || isNaN(option.southwest.longitude)) {
752
+ flag = false;
753
+ return;
754
+ }
755
+ const ne = new BMapGL.Point(option.northeast.longitude, nth);
756
+ const sw = new BMapGL.Point(option.southwest.longitude, sth);
757
+ const bounds = new BMapGL.Bounds(sw, ne);
758
+ const viewport = this.map.getViewport([ne, sw]);
759
+ this.map.centerAndZoom(new BMapGL.Point(viewport.center.lng, viewport.center.lat), viewport.zoom + 2);
760
+ this.map.addOverlay(new BMapGL.Polygon([
761
+ new BMapGL.Point(bounds.sw.lng, bounds.sw.lat),
762
+ new BMapGL.Point(bounds.sw.lng, bounds.ne.lat),
763
+ new BMapGL.Point(bounds.ne.lng, bounds.ne.lat),
764
+ new BMapGL.Point(bounds.ne.lng, bounds.sw.lat)
765
+ ], {
766
+ fillOpacity: 0
767
+ }));
768
+ BMapGLLib.AreaRestriction.setBounds(this.map, bounds);
769
+ return flag;
770
+ };
771
+ this.latitude = undefined;
772
+ this.longitude = undefined;
773
+ this.scale = undefined;
774
+ this.minScale = undefined;
775
+ this.maxScale = undefined;
776
+ this.markers = undefined;
777
+ this.polyline = undefined;
778
+ this.circles = undefined;
779
+ this.polygons = undefined;
780
+ this.subkey = undefined;
781
+ this.layerStyle = undefined;
782
+ this.rotate = undefined;
783
+ this.skew = undefined;
784
+ this.showCompass = undefined;
785
+ this.showScale = undefined;
786
+ this.enableOverlooking = undefined;
787
+ this.enableZoom = undefined;
788
+ this.enableScroll = undefined;
789
+ this.enableRotate = undefined;
790
+ this.enableSatellite = undefined;
791
+ this.enableTraffic = undefined;
792
+ this.enableBuilding = undefined;
793
+ this.enableAutoMaxOverlooking = undefined;
794
+ this.enable3D = undefined;
795
+ this.width = '100%';
796
+ this.height = '100%';
797
+ }
798
+ async componentDidLoad() {
799
+ // 加载地图脚本
800
+ await this.loadMapScript();
801
+ // 记载BmapLib工具库
802
+ await this.LoadBmapLibScript();
803
+ // 如果容器元素存在
804
+ if (this.mapRef) {
805
+ this.mapRef.addEventListener('touchmove', (e) => {
806
+ if (e.cancelable) {
807
+ e.preventDefault();
808
+ }
809
+ });
810
+ // 创建地图对象
811
+ this.map = new BMapGL.Map(this.mapRef);
812
+ // 移除百度地图版权信息
813
+ this.map.removeControl(this.map.getMapType());
814
+ // 创建中心点坐标对象
815
+ // 中心经纬度为必填值
816
+ if (this.latitude < -90 || this.latitude > 90 || this.longitude < -180 || this.longitude > 180 || isNaN(this.latitude) || isNaN(this.longitude)) {
817
+ console.error('请正确设置中心经纬度');
818
+ return;
819
+ }
820
+ let scale = isNaN(this.scale) ? 16 : this.scale;
821
+ let minScale = isNaN(this.minScale) ? 3 : this.minScale;
822
+ let maxScale = isNaN(this.maxScale) ? 16 : this.maxScale;
823
+ const point = new BMapGL.Point(this.longitude, this.latitude);
824
+ if (minScale < 3 || minScale > 20) {
825
+ minScale = 3;
826
+ this.map.setMinZoom(3);
827
+ }
828
+ else {
829
+ // 设置最小缩放级别
830
+ this.map.setMinZoom(minScale);
831
+ }
832
+ if (maxScale > 20 || maxScale < 3) {
833
+ maxScale = 20;
834
+ this.map.setMaxZoom(20);
835
+ }
836
+ else {
837
+ // 设置最大缩放级别
838
+ this.map.setMaxZoom(maxScale);
839
+ }
840
+ if (minScale > maxScale) {
841
+ minScale = 3;
842
+ this.map.setMinZoom(3);
843
+ maxScale = 20;
844
+ this.map.setMaxZoom(20);
845
+ }
846
+ // 设置地图中心和缩放级别
847
+ if (minScale <= 16 && maxScale >= 16) {
848
+ if (scale >= minScale && scale <= maxScale) {
849
+ // 使用this.scale来设置缩放级别
850
+ this.map.centerAndZoom(point, scale);
851
+ }
852
+ else {
853
+ scale = 16;
854
+ this.map.centerAndZoom(point, scale);
855
+ }
856
+ }
857
+ else {
858
+ if (scale >= minScale && scale <= maxScale) {
859
+ // 使用this.scale来设置缩放级别
860
+ this.map.centerAndZoom(point, scale);
861
+ }
862
+ else if (scale < minScale) {
863
+ scale = minScale;
864
+ this.map.centerAndZoom(point, minScale);
865
+ }
866
+ else {
867
+ scale = maxScale;
868
+ this.map.centerAndZoom(point, maxScale);
869
+ }
870
+ }
871
+ // 添加标记点markers
872
+ if (Array.isArray(this.markers)) {
873
+ this.addMarkers(this.markers);
874
+ }
875
+ // 创建polyline路线
876
+ if (Array.isArray(this.polyline)) {
877
+ this.polyline.forEach((line) => {
878
+ if (line.points) {
879
+ const points = line.points.map((point) => new BMapGL.Point(point.longitude, point.latitude));
880
+ const polyline = new BMapGL.Polyline(points, {
881
+ strokeColor: line.color,
882
+ strokeWeight: line.width,
883
+ strokeStyle: line.dottedLine ? 'dashed' : 'solid',
884
+ strokeOpacity: 1,
885
+ });
886
+ // 将polyline路线添加到地图上
887
+ this.map.addOverlay(polyline);
888
+ }
889
+ });
890
+ }
891
+ // 添加圆形覆盖物circles
892
+ if (Array.isArray(this.circles)) {
893
+ this.circles.forEach((circle) => {
894
+ if (circle.latitude && circle.longitude && circle.radius) {
895
+ const point = new BMapGL.Point(circle.longitude, circle.latitude);
896
+ const circleObj = new BMapGL.Circle(point, circle.radius, {
897
+ strokeColor: circle.color,
898
+ fillColor: circle.fillColor,
899
+ strokeWeight: circle.strokeWidth,
900
+ });
901
+ this.map.addOverlay(circleObj);
902
+ }
903
+ });
904
+ }
905
+ // 多边形
906
+ if (Array.isArray(this.polygons)) {
907
+ this.polygons.forEach((polygon) => {
908
+ // 创建多边形的点坐标数组
909
+ const points = polygon.points.map((point) => new BMapGL.Point(point.longitude, point.latitude));
910
+ // 创建多边形对象
911
+ const polygonObj = new BMapGL.Polygon(points, {
912
+ strokeColor: polygon.strokeColor,
913
+ fillColor: polygon.fillColor,
914
+ strokeWeight: polygon.strokeWidth,
915
+ });
916
+ // 将多边形添加到地图上
917
+ this.map.addOverlay(polygonObj);
918
+ });
919
+ }
920
+ if (this.layerStyle === 0) {
921
+ const layerStyle = this.layerStyle;
922
+ if (layerStyle) {
923
+ // 使用个性化地图样式
924
+ this.map.setMapStyleV2({ styleId: this.subkey });
925
+ }
926
+ }
927
+ else {
928
+ const layerStyle = this.layerStyle ? this.layerStyle : 1;
929
+ if (layerStyle === 1) {
930
+ // 使用个性化地图样式
931
+ this.map.setMapStyleV2({ styleId: this.subkey });
932
+ }
933
+ }
934
+ const enable3D = this.enable3D === true ? this.enable3D : false;
935
+ const enableOverlooking = this.enableOverlooking === true ? this.enableOverlooking : false;
936
+ const enableAutoMaxOverlooking = this.enableAutoMaxOverlooking === true ? this.enableAutoMaxOverlooking : false;
937
+ const skew = this.skew ? this.skew : 0;
938
+ if (enable3D === true) {
939
+ if (enableOverlooking === true) {
940
+ // /开启最大俯视角
941
+ if (enableAutoMaxOverlooking === true) {
942
+ this.map.setTilt(75);
943
+ }
944
+ else {
945
+ // 开启俯视角度
946
+ this.map.setTilt(45);
947
+ }
948
+ }
949
+ else if (skew >= 0 && skew <= 40) {
950
+ // 设置倾斜角度
951
+ this.map.setTilt(skew);
952
+ }
953
+ else {
954
+ this.map.setTilt(0);
955
+ }
956
+ }
957
+ else {
958
+ this.map.setTilt(0);
959
+ }
960
+ // 显示指南针
961
+ const showCompass = this.showCompass === true ? this.showCompass : false;
962
+ if (showCompass === true) {
963
+ const compassControl = new BMapGL.NavigationControl3D({
964
+ anchor: BMAP_ANCHOR_TOP_RIGHT,
965
+ type: 3, // 3代表显示指南针
966
+ });
967
+ this.map.addControl(compassControl);
968
+ }
969
+ // 显示比例尺
970
+ const showScale = this.showScale === true ? this.showScale : false;
971
+ if (showScale === true) {
972
+ const scaleControl = new BMapGL.ScaleControl({
973
+ anchor: BMAP_ANCHOR_BOTTOM_RIGHT,
974
+ });
975
+ this.map.addControl(scaleControl);
976
+ }
977
+ const enableZoom = this.enableZoom === false ? this.enableZoom : true;
978
+ if (enableZoom === true) {
979
+ // 启用缩放
980
+ this.map.enableScrollWheelZoom(this.enableZoom);
981
+ }
982
+ // 启用缩放
983
+ if (this.enableZoom === true && this.mapRef) {
984
+ this.map.enablePinchToZoom();
985
+ }
986
+ else {
987
+ this.map.disablePinchToZoom();
988
+ }
989
+ // 拖拽
990
+ const enableScroll = this.enableScroll === false ? this.enableScroll : true;
991
+ if (enableScroll === true) {
992
+ this.map.enableDragging();
993
+ }
994
+ else {
995
+ this.map.disableDragging();
996
+ }
997
+ const rotate = this.rotate ? this.rotate : 0;
998
+ if (rotate >= 0 && this.rotate <= 360) {
999
+ this.map.setHeading(this.rotate);
1000
+ }
1001
+ else {
1002
+ this.map.setHeading(0);
1003
+ }
1004
+ // 设置旋转角度
1005
+ if (this.enableRotate === true) {
1006
+ this.map.enableRotateGestures();
1007
+ }
1008
+ // 启用卫星图
1009
+ const enableSatellite = this.enableSatellite === true ? this.enableSatellite : false;
1010
+ if (enableSatellite === true && this.mapRef) {
1011
+ const mapTypeControl = new BMapGL.MapTypeControl({
1012
+ mapTypes: [BMAP_NORMAL_MAP, BMAP_SATELLITE_MAP],
1013
+ });
1014
+ this.map.addControl(mapTypeControl);
1015
+ }
1016
+ const enableTraffic = this.enableTraffic === true ? this.enableTraffic : false;
1017
+ if (enableTraffic === true && this.mapRef) {
1018
+ this.map.setTrafficOn();
1019
+ }
1020
+ // 是否开启建筑物
1021
+ const enableBuilding = this.enableBuilding === false ? this.enableBuilding : true;
1022
+ if (enableBuilding === false) {
1023
+ this.map.setDisplayOptions({ building: false });
1024
+ }
1025
+ }
1026
+ if (this.map) {
1027
+ // 创建Hammer对象,绑定到地图容器
1028
+ const hammer = new Hammer(this.mapRef);
1029
+ hammer.on('tap', (e) => {
1030
+ // 将Hammer事件对象中的坐标转换为百度地图坐标
1031
+ const point = this.map.pixelToPoint({ x: e.center.x, y: e.center.y });
1032
+ this.onTap.emit({
1033
+ longitude: point.lng,
1034
+ latitude: point.lat,
1035
+ });
1036
+ });
1037
+ }
1038
+ }
1039
+ disconnectedCallback() {
1040
+ if (this.map) {
1041
+ this.map.destroy();
1042
+ }
1043
+ }
1044
+ addMarkers(markers) {
1045
+ // 维护已存在的marker id 列表
1046
+ const existingIds = [];
1047
+ markers.forEach((marker) => {
1048
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1049
+ if (existingIds.includes(marker.id)) {
1050
+ // 如果id已存在,直接返回,不执行后续操作
1051
+ console.error('请输入不同的marker的id');
1052
+ return;
1053
+ }
1054
+ existingIds.push(marker.id);
1055
+ if (marker.latitude && marker.longitude && marker.iconPath && marker.id) {
1056
+ if (marker.latitude < -90 || marker.latitude > 90 || marker.longitude < -180 || marker.longitude > 180) {
1057
+ console.error('请正确设置marker的经纬度');
1058
+ return;
1059
+ }
1060
+ const pt = new BMapGL.Point(marker.longitude, marker.latitude);
1061
+ const markerObj = new BMapGL.Marker(pt, { enableClicking: true });
1062
+ markerObj.id = marker.id; // 设置标记点的唯一标识符
1063
+ markerObj.alpha = marker.alpha;
1064
+ if (marker.zIndex) {
1065
+ markerObj.setZIndex(marker.zIndex);
1066
+ }
1067
+ if (marker.width && marker.height) {
1068
+ const canvas = document.createElement('canvas');
1069
+ canvas.width = marker.width * 2;
1070
+ canvas.height = marker.height * 2;
1071
+ // 获取 Canvas 上下文
1072
+ const ctx = canvas.getContext('2d');
1073
+ // 创建一个新的图片对象
1074
+ const img = new Image();
1075
+ // 设置图片的跨域属性
1076
+ img.crossOrigin = 'Anonymous';
1077
+ img.src = marker.iconPath;
1078
+ // 当图片加载完成后,将其绘制到Canvas上
1079
+ img.onload = function () {
1080
+ ctx.drawImage(img, 0, 0, marker.width * 2, marker.height * 2);
1081
+ // 创建 BMapGL.Icon 对象,并将 Canvas 元素作为图标的内容
1082
+ // 设置锚点偏移量为(0, 0),表示图标的左上角将与经纬度对齐
1083
+ const icon = new BMapGL.Icon(canvas.toDataURL(), new BMapGL.Size(marker.width, marker.height), {
1084
+ anchor: new BMapGL.Size(0, 0)
1085
+ });
1086
+ markerObj.setIcon(icon);
1087
+ };
1088
+ }
1089
+ else {
1090
+ const img = new Image();
1091
+ img.src = marker.iconPath;
1092
+ img.style.opacity = String(marker.alpha);
1093
+ img.onload = () => {
1094
+ const iconSize = new BMapGL.Size(img.width, img.height);
1095
+ const icon = new BMapGL.Icon(img.src, iconSize);
1096
+ icon.imageOffset = new BMapGL.Size(0, 0, marker.alpha || 1);
1097
+ markerObj.setIcon(icon);
1098
+ };
1099
+ }
1100
+ const rotate = marker.rotate ? marker.rotate : 0;
1101
+ if (rotate >= 0 && rotate <= 360) {
1102
+ markerObj.setRotation(rotate);
1103
+ }
1104
+ // 如果anchor.x和anchor.y被定义,则使用它们的值,否则使用默认值
1105
+ const anchorX = (_b = (_a = marker.anchor) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : 0.5;
1106
+ const anchorY = (_d = (_c = marker.anchor) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : 1;
1107
+ if (anchorX >= 0 && anchorX <= 1 && anchorY >= 0 && anchorY <= 1) {
1108
+ // 锚点设置为图标宽度的负值乘以x,以向左移动
1109
+ const offsetX = -(anchorX) * (marker.width || 0);
1110
+ // 锚点设置为图标高度的负值乘以y,以向上移动
1111
+ const offsetY = -(anchorY) * (marker.height || 0);
1112
+ // 使用计算出的偏移量设置标注对象的偏移
1113
+ markerObj.setOffset(new BMapGL.Size(offsetX, offsetY));
1114
+ }
1115
+ else {
1116
+ const offsetX = -0.5 * (marker.width || 0);
1117
+ const offsetY = -1 * (marker.height || 0);
1118
+ markerObj.setOffset(new BMapGL.Size(offsetX, offsetY));
1119
+ }
1120
+ // 创建title
1121
+ if (!marker.callout && marker.title) {
1122
+ const hammer = new Hammer(this.mapRef); // 创建Hammer对象,绑定到地图容器
1123
+ hammer.on('tap', (e) => {
1124
+ // 使用tap事件替代click事件
1125
+ const touch = e.center;
1126
+ const x = touch.x;
1127
+ const y = touch.y;
1128
+ // 假设阈值为 10,表示点击距离小于 10 个像素时认为是点击到了标记点
1129
+ const threshold = 15;
1130
+ // 遍历标记点数组,计算触摸位置与每个标记点的距离
1131
+ this.markers.forEach((marker) => {
1132
+ // 通过class名获取地图容器
1133
+ const mapContainer = document.getElementsByClassName('bmap-container')[0];
1134
+ // 获取地图容器在屏幕上的偏移量
1135
+ const mapContainerRect = mapContainer.getBoundingClientRect();
1136
+ const mapOffsetX = mapContainerRect.left;
1137
+ const mapOffsetY = mapContainerRect.top;
1138
+ const point = new BMapGL.Point(marker.longitude, marker.latitude);
1139
+ const pixel = this.map.pointToPixel(point);
1140
+ const markerX = pixel.x + mapOffsetX;
1141
+ const markerY = pixel.y + mapOffsetY;
1142
+ // 计算触摸位置与标记点的距离
1143
+ const distance = Math.sqrt(Math.pow(x - markerX, 2) + Math.pow(y - markerY, 2));
1144
+ if (distance < threshold && marker.id === markerObj.id) {
1145
+ // 最近的标记点距离小于阈值,表示用户点击到了标记点
1146
+ const content = `<div style="text-align:center">${marker.title}</div>`;
1147
+ const infoWindow = new BMapGL.InfoWindow(content);
1148
+ this.map.openInfoWindow(infoWindow, pt);
1149
+ }
1150
+ });
1151
+ });
1152
+ }
1153
+ if (marker.callout) {
1154
+ const offsetX = ((_e = marker.callout) === null || _e === void 0 ? void 0 : _e.anchorX) ? (_f = marker.callout) === null || _f === void 0 ? void 0 : _f.anchorX : 0; // 横向偏移量
1155
+ const offsetY = ((_g = marker.callout) === null || _g === void 0 ? void 0 : _g.anchorY) ? (_h = marker.callout) === null || _h === void 0 ? void 0 : _h.anchorY : 0; // 纵向偏移量
1156
+ // 创建气泡(callout)对象
1157
+ const callout = new BMapGL.InfoWindow(`<div style="
1158
+ padding: ${(_j = marker.callout) === null || _j === void 0 ? void 0 : _j.padding}px;
1159
+ color:${(_k = marker.callout) === null || _k === void 0 ? void 0 : _k.color};
1160
+ text-align:${(_l = marker.callout) === null || _l === void 0 ? void 0 : _l.textAlign};"
1161
+ >
1162
+ <p style="font-size:${(_m = marker.callout) === null || _m === void 0 ? void 0 : _m.fontSize}px">${((_o = marker.callout) === null || _o === void 0 ? void 0 : _o.content) || ''}</p>
1163
+ </div>`, {
1164
+ width: 200,
1165
+ height: 100,
1166
+ offset: new BMapGL.Size(offsetX - 24, offsetY - 20), // 设置偏移量
1167
+ });
1168
+ // 自定义属性存储气泡(callout)对象
1169
+ markerObj.callout = callout;
1170
+ // 将气泡(callout)对象绑定到标记(marker)对象上
1171
+ this.map.addOverlay(markerObj);
1172
+ if (((_p = marker.callout) === null || _p === void 0 ? void 0 : _p.display) === 'ALWAYS') {
1173
+ markerObj.callout.disableCloseOnClick();
1174
+ const point = markerObj.getPosition(); // 获取marker标记点的位置
1175
+ markerObj.callout.addEventListener('open', function () {
1176
+ var _a, _b, _c, _d;
1177
+ const infoWindowElement = document.querySelector('.BMap_bubble_pop');
1178
+ if (infoWindowElement) {
1179
+ let triangle = infoWindowElement.querySelector('.triangle');
1180
+ if (!triangle) {
1181
+ // 如果不存在,则创建并添加新的三角形 div
1182
+ triangle = document.createElement('div');
1183
+ triangle.className = 'triangle'; // 添加一个类名以便日后查找
1184
+ infoWindowElement.appendChild(triangle);
1185
+ }
1186
+ const img = document.querySelector('.BMap_bubble_pop>img');
1187
+ if (img) {
1188
+ img.setAttribute('style', `position: absolute;transform: translate(-50%, 0); top: ${point.lat - 100}px; left: ${point.lng - 20}px;display:none`);
1189
+ }
1190
+ const backgroundcolor = (_a = marker.callout) === null || _a === void 0 ? void 0 : _a.bgColor;
1191
+ let borderWidth = ((_b = marker.callout) === null || _b === void 0 ? void 0 : _b.borderWidth) || 5;
1192
+ const borderColor = (_c = marker.callout) === null || _c === void 0 ? void 0 : _c.borderColor;
1193
+ const borderRadius = (_d = marker.callout) === null || _d === void 0 ? void 0 : _d.borderRadius;
1194
+ // 确保边框大小不超过15
1195
+ borderWidth = Math.min(borderWidth, 15);
1196
+ triangle.setAttribute('style', `width:0;height:0;borderLeft:${borderWidth}px solid transparent;borderRight:${borderWidth}px solid transparent;borderTop:${borderWidth}px solid ${borderColor};position:absolute;left:83px;bottom:-${2 * borderWidth}px`);
1197
+ infoWindowElement.setAttribute('style', `background-color:${backgroundcolor};top:${point.lat - 120}px; left:${point.lng - 100}px;position: absolute;border: ${borderWidth}px solid ${borderColor};border-radius:${borderRadius}px; `);
1198
+ }
1199
+ });
1200
+ this.map.openInfoWindow(markerObj.callout, pt);
1201
+ }
1202
+ else {
1203
+ const hammer = new Hammer(this.mapRef); // 创建Hammer对象,绑定到地图容器
1204
+ hammer.on('tap', (e) => {
1205
+ // 使用tap事件替代click事件
1206
+ const touch = e.center;
1207
+ const x = touch.x;
1208
+ const y = touch.y;
1209
+ // 假设阈值为 10,表示点击距离小于 10 个像素时认为是点击到了标记点
1210
+ const threshold = 15;
1211
+ // 遍历标记点数组,计算触摸位置与每个标记点的距离
1212
+ this.markers.forEach((marker) => {
1213
+ // 通过class名获取地图容器
1214
+ const mapContainer = document.getElementsByClassName('bmap-container')[0];
1215
+ // 获取地图容器在屏幕上的偏移量
1216
+ const mapContainerRect = mapContainer.getBoundingClientRect();
1217
+ const mapOffsetX = mapContainerRect.left;
1218
+ const mapOffsetY = mapContainerRect.top;
1219
+ const point = new BMapGL.Point(marker.longitude, marker.latitude);
1220
+ const pixel = this.map.pointToPixel(point);
1221
+ const markerX = pixel.x + mapOffsetX;
1222
+ const markerY = pixel.y + mapOffsetY;
1223
+ // 计算触摸位置与标记点的距离
1224
+ const distance = Math.sqrt(Math.pow(x - markerX, 2) + Math.pow(y - markerY, 2));
1225
+ if (distance < threshold && marker.id === markerObj.id) {
1226
+ const point = markerObj.getPosition(); // 获取marker标记点的位置
1227
+ markerObj.callout.addEventListener('open', function () {
1228
+ var _a, _b, _c, _d;
1229
+ const infoWindowElement = document.querySelector('.BMap_bubble_pop');
1230
+ if (infoWindowElement) {
1231
+ let triangle = infoWindowElement.querySelector('.triangle');
1232
+ if (!triangle) {
1233
+ // 如果不存在,则创建并添加新的三角形 div
1234
+ triangle = document.createElement('div');
1235
+ triangle.className = 'triangle'; // 添加一个类名以便日后查找
1236
+ infoWindowElement.appendChild(triangle);
1237
+ }
1238
+ const img = document.querySelector('.BMap_bubble_pop>img');
1239
+ if (img) {
1240
+ img.setAttribute('style', `position: absolute;transform: translate(-50%, 0); top: ${point.lat - 100}px; left: ${point.lng - 20}px;display:none`);
1241
+ }
1242
+ const backgroundcolor = (_a = marker.callout) === null || _a === void 0 ? void 0 : _a.bgColor;
1243
+ let borderWidth = ((_b = marker.callout) === null || _b === void 0 ? void 0 : _b.borderWidth) || 5;
1244
+ const borderColor = (_c = marker.callout) === null || _c === void 0 ? void 0 : _c.borderColor;
1245
+ const borderRadius = (_d = marker.callout) === null || _d === void 0 ? void 0 : _d.borderRadius;
1246
+ // 确保边框大小不超过15
1247
+ borderWidth = Math.min(borderWidth, 15);
1248
+ triangle.setAttribute('style', `width:0;height:0;border-left:${borderWidth}px solid transparent;border-right:${borderWidth}px solid transparent;border-top:${borderWidth}px solid ${borderColor};position:absolute;left:83px;bottom:-${2 * borderWidth}px`);
1249
+ infoWindowElement.setAttribute('style', `background-color:${backgroundcolor};top:${point.lat - 120}px; left:${point.lng - 100}px;position: absolute;border: ${borderWidth}px solid ${borderColor};border-radius:${borderRadius}px; `);
1250
+ }
1251
+ });
1252
+ // 最近的标记点距离小于阈值,表示用户点击到了标记点
1253
+ this.map.openInfoWindow(markerObj.callout, pt);
1254
+ }
1255
+ else {
1256
+ markerObj.callout.enableCloseOnClick();
1257
+ // 用户点击到了地图上的其他位置,不是标记点
1258
+ }
1259
+ });
1260
+ });
1261
+ }
1262
+ }
1263
+ // 判断是否有label属性
1264
+ if (marker.label) {
1265
+ const labelContent = marker.label.content || '';
1266
+ const labelOpts = {
1267
+ position: pt,
1268
+ offset: new BMapGL.Size(marker.label.anchorX || 0, marker.label.anchorY || 0),
1269
+ };
1270
+ const label = new BMapGL.Label(labelContent, labelOpts);
1271
+ const borderColor = marker.label.borderColor ? marker.label.borderColor : 'white';
1272
+ // 设置标签样式
1273
+ label.setStyle({
1274
+ color: marker.label.color,
1275
+ fontSize: marker.label.fontSize + 'px',
1276
+ borderWidth: marker.label.borderWidth + 'px',
1277
+ borderColor: borderColor,
1278
+ borderRadius: marker.label.borderRadius + 'px',
1279
+ background: marker.label.bgColor,
1280
+ padding: marker.label.padding + 'px',
1281
+ });
1282
+ markerObj.setLabel(label);
1283
+ }
1284
+ this.map.addOverlay(markerObj);
1285
+ }
1286
+ else {
1287
+ console.error('请检查marker经纬度和marker自定义图标路径和id值');
1288
+ }
1289
+ });
1290
+ }
1291
+ loadMapScript() {
1292
+ return new Promise((resolve, reject) => {
1293
+ const script = document.createElement('script');
1294
+ script.src = 'https://api.map.baidu.com/getscript?v=3.0&type=webgl&ak=Mb1FLBD3gfnY6bup4v6zEWh6MXwsZ9eo';
1295
+ script.defer = true;
1296
+ script.onload = () => resolve();
1297
+ script.onerror = reject;
1298
+ script.type = 'text/javascript';
1299
+ document.head.appendChild(script);
1300
+ });
1301
+ }
1302
+ async LoadBmapLibScript() {
1303
+ return new Promise((resolve, reject) => {
1304
+ // 地图加载完成后再加载BMapGLLib
1305
+ const bmapLibScript = document.createElement('script');
1306
+ bmapLibScript.src = '//mapopen.bj.bcebos.com/github/BMapGLLib/AreaRestriction/src/AreaRestriction.min.js';
1307
+ bmapLibScript.defer = true;
1308
+ bmapLibScript.type = 'text/javascript';
1309
+ bmapLibScript.onload = () => {
1310
+ resolve();
1311
+ };
1312
+ bmapLibScript.onerror = reject;
1313
+ document.head.appendChild(bmapLibScript);
1314
+ });
6
1315
  }
7
1316
  render() {
8
- return (h(Host, null));
1317
+ return (h(Host, null, h("div", { id: "mapContainer", ref: (dom) => {
1318
+ if (dom) {
1319
+ this.mapRef = dom;
1320
+ }
1321
+ }, style: { width: this.width, height: this.height } })));
9
1322
  }
10
1323
  static get is() { return "taro-map-core"; }
1324
+ static get originalStyleUrls() {
1325
+ return {
1326
+ "$": ["./style/map.scss"]
1327
+ };
1328
+ }
1329
+ static get styleUrls() {
1330
+ return {
1331
+ "$": ["./style/map.css"]
1332
+ };
1333
+ }
1334
+ static get properties() {
1335
+ return {
1336
+ "latitude": {
1337
+ "type": "number",
1338
+ "mutable": false,
1339
+ "complexType": {
1340
+ "original": "number",
1341
+ "resolved": "number",
1342
+ "references": {}
1343
+ },
1344
+ "required": false,
1345
+ "optional": false,
1346
+ "docs": {
1347
+ "tags": [],
1348
+ "text": "\u7EAC\u5EA6"
1349
+ },
1350
+ "attribute": "latitude",
1351
+ "reflect": false
1352
+ },
1353
+ "longitude": {
1354
+ "type": "number",
1355
+ "mutable": false,
1356
+ "complexType": {
1357
+ "original": "number",
1358
+ "resolved": "number",
1359
+ "references": {}
1360
+ },
1361
+ "required": false,
1362
+ "optional": false,
1363
+ "docs": {
1364
+ "tags": [],
1365
+ "text": "\u7ECF\u5EA6"
1366
+ },
1367
+ "attribute": "longitude",
1368
+ "reflect": false
1369
+ },
1370
+ "scale": {
1371
+ "type": "number",
1372
+ "mutable": false,
1373
+ "complexType": {
1374
+ "original": "number",
1375
+ "resolved": "number",
1376
+ "references": {}
1377
+ },
1378
+ "required": false,
1379
+ "optional": false,
1380
+ "docs": {
1381
+ "tags": [],
1382
+ "text": "\u7F29\u653E\u7EA7\u522B"
1383
+ },
1384
+ "attribute": "scale",
1385
+ "reflect": false
1386
+ },
1387
+ "minScale": {
1388
+ "type": "number",
1389
+ "mutable": false,
1390
+ "complexType": {
1391
+ "original": "number",
1392
+ "resolved": "number",
1393
+ "references": {}
1394
+ },
1395
+ "required": false,
1396
+ "optional": false,
1397
+ "docs": {
1398
+ "tags": [],
1399
+ "text": "\u6700\u5C0F\u7F29\u653E\u7EA7\u522B"
1400
+ },
1401
+ "attribute": "min-scale",
1402
+ "reflect": false
1403
+ },
1404
+ "maxScale": {
1405
+ "type": "number",
1406
+ "mutable": false,
1407
+ "complexType": {
1408
+ "original": "number",
1409
+ "resolved": "number",
1410
+ "references": {}
1411
+ },
1412
+ "required": false,
1413
+ "optional": false,
1414
+ "docs": {
1415
+ "tags": [],
1416
+ "text": "\u6700\u5927\u7F29\u653E\u7EA7\u522B"
1417
+ },
1418
+ "attribute": "max-scale",
1419
+ "reflect": false
1420
+ },
1421
+ "markers": {
1422
+ "type": "unknown",
1423
+ "mutable": false,
1424
+ "complexType": {
1425
+ "original": "MapProps.marker[]",
1426
+ "resolved": "marker[]",
1427
+ "references": {
1428
+ "MapProps": {
1429
+ "location": "import",
1430
+ "path": "types"
1431
+ }
1432
+ }
1433
+ },
1434
+ "required": false,
1435
+ "optional": false,
1436
+ "docs": {
1437
+ "tags": [],
1438
+ "text": "\u6807\u8BB0\u70B9"
1439
+ }
1440
+ },
1441
+ "polyline": {
1442
+ "type": "unknown",
1443
+ "mutable": false,
1444
+ "complexType": {
1445
+ "original": "MapProps.polyline[]",
1446
+ "resolved": "polyline[]",
1447
+ "references": {
1448
+ "MapProps": {
1449
+ "location": "import",
1450
+ "path": "types"
1451
+ }
1452
+ }
1453
+ },
1454
+ "required": false,
1455
+ "optional": false,
1456
+ "docs": {
1457
+ "tags": [],
1458
+ "text": "\u8DEF\u7EBF(\u95EE\u9898)"
1459
+ }
1460
+ },
1461
+ "circles": {
1462
+ "type": "unknown",
1463
+ "mutable": false,
1464
+ "complexType": {
1465
+ "original": "MapProps.circle[]",
1466
+ "resolved": "circle[]",
1467
+ "references": {
1468
+ "MapProps": {
1469
+ "location": "import",
1470
+ "path": "types"
1471
+ }
1472
+ }
1473
+ },
1474
+ "required": false,
1475
+ "optional": false,
1476
+ "docs": {
1477
+ "tags": [],
1478
+ "text": "\u5706(\u95EE\u9898)"
1479
+ }
1480
+ },
1481
+ "polygons": {
1482
+ "type": "unknown",
1483
+ "mutable": false,
1484
+ "complexType": {
1485
+ "original": "MapProps.polygon[]",
1486
+ "resolved": "polygon[]",
1487
+ "references": {
1488
+ "MapProps": {
1489
+ "location": "import",
1490
+ "path": "types"
1491
+ }
1492
+ }
1493
+ },
1494
+ "required": false,
1495
+ "optional": false,
1496
+ "docs": {
1497
+ "tags": [],
1498
+ "text": "\u591A\u8FB9\u5F62\uFF08\u53C2\u6570\u95EE\u9898\uFF09"
1499
+ }
1500
+ },
1501
+ "subkey": {
1502
+ "type": "string",
1503
+ "mutable": false,
1504
+ "complexType": {
1505
+ "original": "string",
1506
+ "resolved": "string",
1507
+ "references": {}
1508
+ },
1509
+ "required": false,
1510
+ "optional": false,
1511
+ "docs": {
1512
+ "tags": [],
1513
+ "text": "\u4E2A\u6027\u5316\u5730\u56FE\u3011\u4F7F\u7528\u7684key"
1514
+ },
1515
+ "attribute": "subkey",
1516
+ "reflect": false
1517
+ },
1518
+ "layerStyle": {
1519
+ "type": "number",
1520
+ "mutable": false,
1521
+ "complexType": {
1522
+ "original": "number",
1523
+ "resolved": "number",
1524
+ "references": {}
1525
+ },
1526
+ "required": false,
1527
+ "optional": false,
1528
+ "docs": {
1529
+ "tags": [],
1530
+ "text": "\u3010\u4E2A\u6027\u5316\u5730\u56FE\u3011\u914D\u7F6E\u7684 style"
1531
+ },
1532
+ "attribute": "layer-style",
1533
+ "reflect": false
1534
+ },
1535
+ "rotate": {
1536
+ "type": "number",
1537
+ "mutable": false,
1538
+ "complexType": {
1539
+ "original": "number",
1540
+ "resolved": "number",
1541
+ "references": {}
1542
+ },
1543
+ "required": false,
1544
+ "optional": false,
1545
+ "docs": {
1546
+ "tags": [],
1547
+ "text": "\u65CB\u8F6C"
1548
+ },
1549
+ "attribute": "rotate",
1550
+ "reflect": false
1551
+ },
1552
+ "skew": {
1553
+ "type": "number",
1554
+ "mutable": false,
1555
+ "complexType": {
1556
+ "original": "number",
1557
+ "resolved": "number",
1558
+ "references": {}
1559
+ },
1560
+ "required": false,
1561
+ "optional": false,
1562
+ "docs": {
1563
+ "tags": [],
1564
+ "text": "\u503E\u659C"
1565
+ },
1566
+ "attribute": "skew",
1567
+ "reflect": false
1568
+ },
1569
+ "showCompass": {
1570
+ "type": "boolean",
1571
+ "mutable": false,
1572
+ "complexType": {
1573
+ "original": "boolean",
1574
+ "resolved": "boolean",
1575
+ "references": {}
1576
+ },
1577
+ "required": false,
1578
+ "optional": false,
1579
+ "docs": {
1580
+ "tags": [],
1581
+ "text": "\u6307\u5357\u9488"
1582
+ },
1583
+ "attribute": "show-compass",
1584
+ "reflect": false
1585
+ },
1586
+ "showScale": {
1587
+ "type": "boolean",
1588
+ "mutable": false,
1589
+ "complexType": {
1590
+ "original": "boolean",
1591
+ "resolved": "boolean",
1592
+ "references": {}
1593
+ },
1594
+ "required": false,
1595
+ "optional": false,
1596
+ "docs": {
1597
+ "tags": [],
1598
+ "text": "\u6BD4\u4F8B\u5C3A"
1599
+ },
1600
+ "attribute": "show-scale",
1601
+ "reflect": false
1602
+ },
1603
+ "enableOverlooking": {
1604
+ "type": "boolean",
1605
+ "mutable": false,
1606
+ "complexType": {
1607
+ "original": "boolean",
1608
+ "resolved": "boolean",
1609
+ "references": {}
1610
+ },
1611
+ "required": false,
1612
+ "optional": false,
1613
+ "docs": {
1614
+ "tags": [],
1615
+ "text": "\u662F\u5426\u5F00\u542F\u4FEF\u89C6"
1616
+ },
1617
+ "attribute": "enable-overlooking",
1618
+ "reflect": false
1619
+ },
1620
+ "enableZoom": {
1621
+ "type": "boolean",
1622
+ "mutable": false,
1623
+ "complexType": {
1624
+ "original": "boolean",
1625
+ "resolved": "boolean",
1626
+ "references": {}
1627
+ },
1628
+ "required": false,
1629
+ "optional": false,
1630
+ "docs": {
1631
+ "tags": [],
1632
+ "text": "\u662F\u5426\u652F\u6301\u7F29\u653E"
1633
+ },
1634
+ "attribute": "enable-zoom",
1635
+ "reflect": false
1636
+ },
1637
+ "enableScroll": {
1638
+ "type": "boolean",
1639
+ "mutable": false,
1640
+ "complexType": {
1641
+ "original": "boolean",
1642
+ "resolved": "boolean",
1643
+ "references": {}
1644
+ },
1645
+ "required": false,
1646
+ "optional": false,
1647
+ "docs": {
1648
+ "tags": [],
1649
+ "text": "\u662F\u5426\u652F\u6301\u62D6\u52A8"
1650
+ },
1651
+ "attribute": "enable-scroll",
1652
+ "reflect": false
1653
+ },
1654
+ "enableRotate": {
1655
+ "type": "boolean",
1656
+ "mutable": false,
1657
+ "complexType": {
1658
+ "original": "boolean",
1659
+ "resolved": "boolean",
1660
+ "references": {}
1661
+ },
1662
+ "required": false,
1663
+ "optional": false,
1664
+ "docs": {
1665
+ "tags": [],
1666
+ "text": "\u662F\u5426\u652F\u6301\u65CB\u8F6C"
1667
+ },
1668
+ "attribute": "enable-rotate",
1669
+ "reflect": false
1670
+ },
1671
+ "enableSatellite": {
1672
+ "type": "boolean",
1673
+ "mutable": false,
1674
+ "complexType": {
1675
+ "original": "boolean",
1676
+ "resolved": "boolean",
1677
+ "references": {}
1678
+ },
1679
+ "required": false,
1680
+ "optional": false,
1681
+ "docs": {
1682
+ "tags": [],
1683
+ "text": "\u662F\u5426\u5F00\u542F\u536B\u661F\u56FE"
1684
+ },
1685
+ "attribute": "enable-satellite",
1686
+ "reflect": false
1687
+ },
1688
+ "enableTraffic": {
1689
+ "type": "boolean",
1690
+ "mutable": false,
1691
+ "complexType": {
1692
+ "original": "boolean",
1693
+ "resolved": "boolean",
1694
+ "references": {}
1695
+ },
1696
+ "required": false,
1697
+ "optional": false,
1698
+ "docs": {
1699
+ "tags": [],
1700
+ "text": "\u662F\u5426\u5F00\u542F\u5B9E\u65F6\u8DEF\u51B5"
1701
+ },
1702
+ "attribute": "enable-traffic",
1703
+ "reflect": false
1704
+ },
1705
+ "enableBuilding": {
1706
+ "type": "boolean",
1707
+ "mutable": false,
1708
+ "complexType": {
1709
+ "original": "boolean",
1710
+ "resolved": "boolean",
1711
+ "references": {}
1712
+ },
1713
+ "required": false,
1714
+ "optional": false,
1715
+ "docs": {
1716
+ "tags": [],
1717
+ "text": "\u662F\u5426\u5C55\u793A\u5EFA\u7B51"
1718
+ },
1719
+ "attribute": "enable-building",
1720
+ "reflect": false
1721
+ },
1722
+ "enableAutoMaxOverlooking": {
1723
+ "type": "boolean",
1724
+ "mutable": false,
1725
+ "complexType": {
1726
+ "original": "boolean",
1727
+ "resolved": "boolean",
1728
+ "references": {}
1729
+ },
1730
+ "required": false,
1731
+ "optional": false,
1732
+ "docs": {
1733
+ "tags": [],
1734
+ "text": "\u662F\u5426\u5F00\u542F\u6700\u5927\u4FEF\u89C6\u89D2"
1735
+ },
1736
+ "attribute": "enable-auto-max-overlooking",
1737
+ "reflect": false
1738
+ },
1739
+ "enable3D": {
1740
+ "type": "boolean",
1741
+ "mutable": false,
1742
+ "complexType": {
1743
+ "original": "boolean",
1744
+ "resolved": "boolean",
1745
+ "references": {}
1746
+ },
1747
+ "required": false,
1748
+ "optional": false,
1749
+ "docs": {
1750
+ "tags": [],
1751
+ "text": "3D\u697C\u5757"
1752
+ },
1753
+ "attribute": "enable-3-d",
1754
+ "reflect": false
1755
+ },
1756
+ "width": {
1757
+ "type": "string",
1758
+ "mutable": false,
1759
+ "complexType": {
1760
+ "original": "string",
1761
+ "resolved": "string",
1762
+ "references": {}
1763
+ },
1764
+ "required": false,
1765
+ "optional": false,
1766
+ "docs": {
1767
+ "tags": [],
1768
+ "text": "\u6DFB\u52A0\u5BBD\u5EA6\u5C5E\u6027"
1769
+ },
1770
+ "attribute": "width",
1771
+ "reflect": false,
1772
+ "defaultValue": "'100%'"
1773
+ },
1774
+ "height": {
1775
+ "type": "string",
1776
+ "mutable": false,
1777
+ "complexType": {
1778
+ "original": "string",
1779
+ "resolved": "string",
1780
+ "references": {}
1781
+ },
1782
+ "required": false,
1783
+ "optional": false,
1784
+ "docs": {
1785
+ "tags": [],
1786
+ "text": "\u6DFB\u52A0\u9AD8\u5EA6\u5C5E\u6027"
1787
+ },
1788
+ "attribute": "height",
1789
+ "reflect": false,
1790
+ "defaultValue": "'100%'"
1791
+ }
1792
+ };
1793
+ }
1794
+ static get events() {
1795
+ return [{
1796
+ "method": "onTap",
1797
+ "name": "tap",
1798
+ "bubbles": true,
1799
+ "cancelable": true,
1800
+ "composed": true,
1801
+ "docs": {
1802
+ "tags": [],
1803
+ "text": ""
1804
+ },
1805
+ "complexType": {
1806
+ "original": "any",
1807
+ "resolved": "any",
1808
+ "references": {}
1809
+ }
1810
+ }];
1811
+ }
1812
+ static get elementRef() { return "el"; }
11
1813
  }