@antv/l7-map 2.21.11-beta.4 → 2.21.11-beta.6

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 (358) hide show
  1. package/README.md +27 -6
  2. package/es/index.d.ts +3 -4
  3. package/es/index.js +2 -4
  4. package/es/map/camera.d.ts +690 -0
  5. package/es/map/camera.js +1138 -0
  6. package/{lib → es/map}/css/l7.css +41 -7
  7. package/es/map/events.d.ts +384 -0
  8. package/es/map/events.js +222 -0
  9. package/es/map/geo/edge_insets.d.ts +97 -0
  10. package/es/{geo → map/geo}/edge_insets.js +55 -33
  11. package/es/map/geo/lng_lat.d.ts +116 -0
  12. package/es/map/geo/lng_lat.js +159 -0
  13. package/es/map/geo/lng_lat_bounds.d.ts +217 -0
  14. package/es/map/geo/lng_lat_bounds.js +334 -0
  15. package/es/map/geo/mercator_coordinate.d.ts +113 -0
  16. package/es/map/geo/mercator_coordinate.js +142 -0
  17. package/es/map/geo/transform.d.ts +262 -0
  18. package/es/map/geo/transform.js +736 -0
  19. package/{lib → es/map}/handler/box_zoom.d.ts +30 -24
  20. package/es/map/handler/box_zoom.js +145 -0
  21. package/es/map/handler/click_zoom.d.ts +24 -0
  22. package/es/map/handler/click_zoom.js +47 -0
  23. package/es/map/handler/cooperative_gestures.d.ts +40 -0
  24. package/es/map/handler/cooperative_gestures.js +94 -0
  25. package/es/map/handler/drag_handler.d.ts +88 -0
  26. package/es/map/handler/drag_handler.js +89 -0
  27. package/es/map/handler/drag_move_state_manager.d.ts +30 -0
  28. package/es/map/handler/drag_move_state_manager.js +94 -0
  29. package/es/map/handler/handler_util.d.ts +3 -0
  30. package/es/{handler → map/handler}/handler_util.js +1 -2
  31. package/es/map/handler/keyboard.d.ts +88 -0
  32. package/es/map/handler/keyboard.js +197 -0
  33. package/es/map/handler/map_event.d.ts +46 -0
  34. package/es/map/handler/map_event.js +131 -0
  35. package/es/map/handler/mouse.d.ts +30 -0
  36. package/es/map/handler/mouse.js +85 -0
  37. package/es/map/handler/one_finger_touch_drag.d.ts +15 -0
  38. package/es/map/handler/one_finger_touch_drag.js +39 -0
  39. package/es/map/handler/scroll_zoom.d.ts +102 -0
  40. package/es/map/handler/scroll_zoom.js +312 -0
  41. package/es/{handler → map/handler}/shim/dblclick_zoom.d.ts +14 -10
  42. package/es/{handler → map/handler}/shim/dblclick_zoom.js +20 -16
  43. package/es/map/handler/shim/drag_pan.d.ts +79 -0
  44. package/es/map/handler/shim/drag_pan.js +77 -0
  45. package/es/{handler → map/handler}/shim/drag_rotate.d.ts +24 -16
  46. package/es/map/handler/shim/drag_rotate.js +66 -0
  47. package/es/map/handler/shim/two_fingers_touch.d.ts +74 -0
  48. package/es/map/handler/shim/two_fingers_touch.js +106 -0
  49. package/es/map/handler/tap_drag_zoom.d.ts +28 -0
  50. package/es/map/handler/tap_drag_zoom.js +92 -0
  51. package/es/map/handler/tap_recognizer.d.ts +35 -0
  52. package/es/map/handler/tap_recognizer.js +107 -0
  53. package/es/map/handler/tap_zoom.d.ts +28 -0
  54. package/es/map/handler/tap_zoom.js +87 -0
  55. package/es/map/handler/touch_pan.d.ts +40 -0
  56. package/es/map/handler/touch_pan.js +85 -0
  57. package/es/map/handler/transform-provider.d.ts +23 -0
  58. package/es/map/handler/transform-provider.js +35 -0
  59. package/es/map/handler/two_fingers_touch.d.ts +107 -0
  60. package/es/map/handler/two_fingers_touch.js +289 -0
  61. package/es/map/handler_inertia.d.ts +20 -0
  62. package/es/{handler → map}/handler_inertia.js +36 -50
  63. package/es/map/handler_manager.d.ts +154 -0
  64. package/es/map/handler_manager.js +466 -0
  65. package/es/map/map.d.ts +625 -0
  66. package/es/map/map.js +972 -0
  67. package/es/map/util/abort_error.d.ts +15 -0
  68. package/es/map/util/abort_error.js +21 -0
  69. package/es/map/util/browser.d.ts +10 -0
  70. package/es/map/util/browser.js +30 -0
  71. package/es/map/util/dom.d.ts +30 -0
  72. package/es/map/util/dom.js +105 -0
  73. package/es/map/util/evented.d.ts +75 -0
  74. package/es/map/util/evented.js +158 -0
  75. package/es/map/util/task_queue.d.ts +18 -0
  76. package/es/map/util/task_queue.js +54 -0
  77. package/es/map/util/util.d.ts +104 -0
  78. package/es/map/util/util.js +155 -0
  79. package/lib/index.d.ts +3 -4
  80. package/lib/index.js +12 -42
  81. package/lib/map/camera.d.ts +690 -0
  82. package/lib/map/camera.js +1145 -0
  83. package/{es → lib/map}/css/l7.css +41 -7
  84. package/lib/map/events.d.ts +384 -0
  85. package/lib/map/events.js +231 -0
  86. package/lib/map/geo/edge_insets.d.ts +97 -0
  87. package/lib/{geo → map/geo}/edge_insets.js +56 -35
  88. package/lib/map/geo/lng_lat.d.ts +116 -0
  89. package/lib/map/geo/lng_lat.js +166 -0
  90. package/lib/map/geo/lng_lat_bounds.d.ts +217 -0
  91. package/lib/map/geo/lng_lat_bounds.js +341 -0
  92. package/lib/map/geo/mercator_coordinate.d.ts +113 -0
  93. package/lib/map/geo/mercator_coordinate.js +157 -0
  94. package/lib/map/geo/transform.d.ts +262 -0
  95. package/lib/map/geo/transform.js +744 -0
  96. package/{es → lib/map}/handler/box_zoom.d.ts +30 -24
  97. package/lib/map/handler/box_zoom.js +153 -0
  98. package/lib/map/handler/click_zoom.d.ts +24 -0
  99. package/lib/map/handler/click_zoom.js +54 -0
  100. package/lib/map/handler/cooperative_gestures.d.ts +40 -0
  101. package/lib/map/handler/cooperative_gestures.js +101 -0
  102. package/lib/map/handler/drag_handler.d.ts +88 -0
  103. package/lib/map/handler/drag_handler.js +97 -0
  104. package/lib/map/handler/drag_move_state_manager.d.ts +30 -0
  105. package/lib/map/handler/drag_move_state_manager.js +103 -0
  106. package/lib/map/handler/handler_util.d.ts +3 -0
  107. package/lib/{handler → map/handler}/handler_util.js +1 -2
  108. package/lib/map/handler/keyboard.d.ts +88 -0
  109. package/lib/map/handler/keyboard.js +205 -0
  110. package/lib/map/handler/map_event.d.ts +46 -0
  111. package/lib/map/handler/map_event.js +140 -0
  112. package/lib/map/handler/mouse.d.ts +30 -0
  113. package/lib/map/handler/mouse.js +93 -0
  114. package/lib/map/handler/one_finger_touch_drag.d.ts +15 -0
  115. package/lib/map/handler/one_finger_touch_drag.js +47 -0
  116. package/lib/map/handler/scroll_zoom.d.ts +102 -0
  117. package/lib/map/handler/scroll_zoom.js +320 -0
  118. package/lib/{handler → map/handler}/shim/dblclick_zoom.d.ts +14 -10
  119. package/lib/{handler → map/handler}/shim/dblclick_zoom.js +21 -17
  120. package/lib/map/handler/shim/drag_pan.d.ts +79 -0
  121. package/lib/map/handler/shim/drag_pan.js +85 -0
  122. package/lib/{handler → map/handler}/shim/drag_rotate.d.ts +24 -16
  123. package/lib/map/handler/shim/drag_rotate.js +74 -0
  124. package/lib/map/handler/shim/two_fingers_touch.d.ts +74 -0
  125. package/lib/map/handler/shim/two_fingers_touch.js +114 -0
  126. package/lib/map/handler/tap_drag_zoom.d.ts +28 -0
  127. package/lib/map/handler/tap_drag_zoom.js +99 -0
  128. package/lib/map/handler/tap_recognizer.d.ts +35 -0
  129. package/lib/map/handler/tap_recognizer.js +116 -0
  130. package/lib/map/handler/tap_zoom.d.ts +28 -0
  131. package/lib/map/handler/tap_zoom.js +94 -0
  132. package/lib/map/handler/touch_pan.d.ts +40 -0
  133. package/lib/map/handler/touch_pan.js +92 -0
  134. package/lib/map/handler/transform-provider.d.ts +23 -0
  135. package/lib/map/handler/transform-provider.js +43 -0
  136. package/lib/map/handler/two_fingers_touch.d.ts +107 -0
  137. package/lib/map/handler/two_fingers_touch.js +296 -0
  138. package/lib/map/handler_inertia.d.ts +20 -0
  139. package/lib/{handler → map}/handler_inertia.js +38 -53
  140. package/lib/map/handler_manager.d.ts +154 -0
  141. package/lib/map/handler_manager.js +474 -0
  142. package/lib/map/map.d.ts +625 -0
  143. package/lib/map/map.js +979 -0
  144. package/lib/map/util/abort_error.d.ts +15 -0
  145. package/lib/map/util/abort_error.js +29 -0
  146. package/lib/map/util/browser.d.ts +10 -0
  147. package/lib/map/util/browser.js +36 -0
  148. package/lib/map/util/dom.d.ts +30 -0
  149. package/lib/map/util/dom.js +113 -0
  150. package/lib/map/util/evented.d.ts +75 -0
  151. package/lib/map/util/evented.js +167 -0
  152. package/lib/map/util/task_queue.d.ts +18 -0
  153. package/lib/map/util/task_queue.js +62 -0
  154. package/lib/map/util/util.d.ts +104 -0
  155. package/lib/map/util/util.js +171 -0
  156. package/package.json +6 -3
  157. package/es/camera.d.ts +0 -86
  158. package/es/camera.js +0 -639
  159. package/es/earthmap.d.ts +0 -69
  160. package/es/earthmap.js +0 -445
  161. package/es/geo/edge_insets.d.ts +0 -54
  162. package/es/geo/lng_lat.d.ts +0 -18
  163. package/es/geo/lng_lat.js +0 -59
  164. package/es/geo/lng_lat_bounds.d.ts +0 -25
  165. package/es/geo/lng_lat_bounds.js +0 -118
  166. package/es/geo/mercator.d.ts +0 -30
  167. package/es/geo/mercator.js +0 -72
  168. package/es/geo/point.d.ts +0 -40
  169. package/es/geo/point.js +0 -153
  170. package/es/geo/simple.d.ts +0 -30
  171. package/es/geo/simple.js +0 -75
  172. package/es/geo/transform.d.ts +0 -198
  173. package/es/geo/transform.js +0 -895
  174. package/es/handler/IHandler.d.ts +0 -34
  175. package/es/handler/IHandler.js +0 -1
  176. package/es/handler/blockable_map_event.d.ts +0 -17
  177. package/es/handler/blockable_map_event.js +0 -58
  178. package/es/handler/box_zoom.js +0 -162
  179. package/es/handler/click_zoom.d.ts +0 -16
  180. package/es/handler/click_zoom.js +0 -40
  181. package/es/handler/events/event.d.ts +0 -4
  182. package/es/handler/events/event.js +0 -12
  183. package/es/handler/events/index.d.ts +0 -4
  184. package/es/handler/events/index.js +0 -4
  185. package/es/handler/events/map_mouse_event.d.ts +0 -34
  186. package/es/handler/events/map_mouse_event.js +0 -45
  187. package/es/handler/events/map_touch_event.d.ts +0 -57
  188. package/es/handler/events/map_touch_event.js +0 -75
  189. package/es/handler/events/map_wheel_event.d.ts +0 -33
  190. package/es/handler/events/map_wheel_event.js +0 -33
  191. package/es/handler/events/render_event.d.ts +0 -6
  192. package/es/handler/events/render_event.js +0 -10
  193. package/es/handler/handler_inertia.d.ts +0 -23
  194. package/es/handler/handler_manager.d.ts +0 -61
  195. package/es/handler/handler_manager.js +0 -487
  196. package/es/handler/handler_util.d.ts +0 -4
  197. package/es/handler/keyboard.d.ts +0 -36
  198. package/es/handler/keyboard.js +0 -131
  199. package/es/handler/map_event.d.ts +0 -29
  200. package/es/handler/map_event.js +0 -89
  201. package/es/handler/mouse/index.d.ts +0 -4
  202. package/es/handler/mouse/index.js +0 -4
  203. package/es/handler/mouse/mouse_handler.d.ts +0 -22
  204. package/es/handler/mouse/mouse_handler.js +0 -99
  205. package/es/handler/mouse/mousepan_handler.d.ts +0 -10
  206. package/es/handler/mouse/mousepan_handler.js +0 -21
  207. package/es/handler/mouse/mousepitch_hander.d.ts +0 -9
  208. package/es/handler/mouse/mousepitch_hander.js +0 -24
  209. package/es/handler/mouse/mouserotate_hander.d.ts +0 -9
  210. package/es/handler/mouse/mouserotate_hander.js +0 -24
  211. package/es/handler/mouse/util.d.ts +0 -6
  212. package/es/handler/mouse/util.js +0 -12
  213. package/es/handler/scroll_zoom.d.ts +0 -93
  214. package/es/handler/scroll_zoom.js +0 -315
  215. package/es/handler/shim/drag_pan.d.ts +0 -61
  216. package/es/handler/shim/drag_pan.js +0 -75
  217. package/es/handler/shim/drag_rotate.js +0 -64
  218. package/es/handler/shim/touch_zoom_rotate.d.ts +0 -70
  219. package/es/handler/shim/touch_zoom_rotate.js +0 -104
  220. package/es/handler/tap/single_tap_recognizer.d.ts +0 -20
  221. package/es/handler/tap/single_tap_recognizer.js +0 -77
  222. package/es/handler/tap/tap_drag_zoom.d.ts +0 -22
  223. package/es/handler/tap/tap_drag_zoom.js +0 -89
  224. package/es/handler/tap/tap_recognizer.d.ts +0 -17
  225. package/es/handler/tap/tap_recognizer.js +0 -46
  226. package/es/handler/tap/tap_zoom.d.ts +0 -22
  227. package/es/handler/tap/tap_zoom.js +0 -81
  228. package/es/handler/touch/index.d.ts +0 -5
  229. package/es/handler/touch/index.js +0 -5
  230. package/es/handler/touch/touch_pan.d.ts +0 -30
  231. package/es/handler/touch/touch_pan.js +0 -91
  232. package/es/handler/touch/touch_pitch.d.ts +0 -13
  233. package/es/handler/touch/touch_pitch.js +0 -75
  234. package/es/handler/touch/touch_rotate.d.ts +0 -12
  235. package/es/handler/touch/touch_rotate.js +0 -57
  236. package/es/handler/touch/touch_zoom.d.ts +0 -12
  237. package/es/handler/touch/touch_zoom.js +0 -37
  238. package/es/handler/touch/two_touch.d.ts +0 -23
  239. package/es/handler/touch/two_touch.js +0 -98
  240. package/es/hash.d.ts +0 -14
  241. package/es/hash.js +0 -121
  242. package/es/interface.d.ts +0 -34
  243. package/es/interface.js +0 -1
  244. package/es/map.d.ts +0 -70
  245. package/es/map.js +0 -472
  246. package/es/util.d.ts +0 -25
  247. package/es/util.js +0 -70
  248. package/es/utils/Aabb.d.ts +0 -12
  249. package/es/utils/Aabb.js +0 -72
  250. package/es/utils/dom.d.ts +0 -4
  251. package/es/utils/dom.js +0 -117
  252. package/es/utils/performance.d.ts +0 -17
  253. package/es/utils/performance.js +0 -58
  254. package/es/utils/primitives.d.ts +0 -6
  255. package/es/utils/primitives.js +0 -37
  256. package/es/utils/task_queue.d.ts +0 -13
  257. package/es/utils/task_queue.js +0 -60
  258. package/lib/camera.d.ts +0 -86
  259. package/lib/camera.js +0 -648
  260. package/lib/earthmap.d.ts +0 -69
  261. package/lib/earthmap.js +0 -451
  262. package/lib/geo/edge_insets.d.ts +0 -54
  263. package/lib/geo/lng_lat.d.ts +0 -18
  264. package/lib/geo/lng_lat.js +0 -67
  265. package/lib/geo/lng_lat_bounds.d.ts +0 -25
  266. package/lib/geo/lng_lat_bounds.js +0 -126
  267. package/lib/geo/mercator.d.ts +0 -30
  268. package/lib/geo/mercator.js +0 -88
  269. package/lib/geo/point.d.ts +0 -40
  270. package/lib/geo/point.js +0 -161
  271. package/lib/geo/simple.d.ts +0 -30
  272. package/lib/geo/simple.js +0 -92
  273. package/lib/geo/transform.d.ts +0 -198
  274. package/lib/geo/transform.js +0 -906
  275. package/lib/handler/IHandler.d.ts +0 -34
  276. package/lib/handler/IHandler.js +0 -5
  277. package/lib/handler/blockable_map_event.d.ts +0 -17
  278. package/lib/handler/blockable_map_event.js +0 -66
  279. package/lib/handler/box_zoom.js +0 -168
  280. package/lib/handler/click_zoom.d.ts +0 -16
  281. package/lib/handler/click_zoom.js +0 -48
  282. package/lib/handler/events/event.d.ts +0 -4
  283. package/lib/handler/events/event.js +0 -20
  284. package/lib/handler/events/index.d.ts +0 -4
  285. package/lib/handler/events/index.js +0 -27
  286. package/lib/handler/events/map_mouse_event.d.ts +0 -34
  287. package/lib/handler/events/map_mouse_event.js +0 -53
  288. package/lib/handler/events/map_touch_event.d.ts +0 -57
  289. package/lib/handler/events/map_touch_event.js +0 -83
  290. package/lib/handler/events/map_wheel_event.d.ts +0 -33
  291. package/lib/handler/events/map_wheel_event.js +0 -41
  292. package/lib/handler/events/render_event.d.ts +0 -6
  293. package/lib/handler/events/render_event.js +0 -18
  294. package/lib/handler/handler_inertia.d.ts +0 -23
  295. package/lib/handler/handler_manager.d.ts +0 -61
  296. package/lib/handler/handler_manager.js +0 -495
  297. package/lib/handler/handler_util.d.ts +0 -4
  298. package/lib/handler/keyboard.d.ts +0 -36
  299. package/lib/handler/keyboard.js +0 -138
  300. package/lib/handler/map_event.d.ts +0 -29
  301. package/lib/handler/map_event.js +0 -97
  302. package/lib/handler/mouse/index.d.ts +0 -4
  303. package/lib/handler/mouse/index.js +0 -27
  304. package/lib/handler/mouse/mouse_handler.d.ts +0 -22
  305. package/lib/handler/mouse/mouse_handler.js +0 -107
  306. package/lib/handler/mouse/mousepan_handler.d.ts +0 -10
  307. package/lib/handler/mouse/mousepan_handler.js +0 -29
  308. package/lib/handler/mouse/mousepitch_hander.d.ts +0 -9
  309. package/lib/handler/mouse/mousepitch_hander.js +0 -32
  310. package/lib/handler/mouse/mouserotate_hander.d.ts +0 -9
  311. package/lib/handler/mouse/mouserotate_hander.js +0 -32
  312. package/lib/handler/mouse/util.d.ts +0 -6
  313. package/lib/handler/mouse/util.js +0 -19
  314. package/lib/handler/scroll_zoom.d.ts +0 -93
  315. package/lib/handler/scroll_zoom.js +0 -322
  316. package/lib/handler/shim/drag_pan.d.ts +0 -61
  317. package/lib/handler/shim/drag_pan.js +0 -83
  318. package/lib/handler/shim/drag_rotate.js +0 -72
  319. package/lib/handler/shim/touch_zoom_rotate.d.ts +0 -70
  320. package/lib/handler/shim/touch_zoom_rotate.js +0 -112
  321. package/lib/handler/tap/single_tap_recognizer.d.ts +0 -20
  322. package/lib/handler/tap/single_tap_recognizer.js +0 -86
  323. package/lib/handler/tap/tap_drag_zoom.d.ts +0 -22
  324. package/lib/handler/tap/tap_drag_zoom.js +0 -97
  325. package/lib/handler/tap/tap_recognizer.d.ts +0 -17
  326. package/lib/handler/tap/tap_recognizer.js +0 -56
  327. package/lib/handler/tap/tap_zoom.d.ts +0 -22
  328. package/lib/handler/tap/tap_zoom.js +0 -89
  329. package/lib/handler/touch/index.d.ts +0 -5
  330. package/lib/handler/touch/index.js +0 -34
  331. package/lib/handler/touch/touch_pan.d.ts +0 -30
  332. package/lib/handler/touch/touch_pan.js +0 -100
  333. package/lib/handler/touch/touch_pitch.d.ts +0 -13
  334. package/lib/handler/touch/touch_pitch.js +0 -83
  335. package/lib/handler/touch/touch_rotate.d.ts +0 -12
  336. package/lib/handler/touch/touch_rotate.js +0 -65
  337. package/lib/handler/touch/touch_zoom.d.ts +0 -12
  338. package/lib/handler/touch/touch_zoom.js +0 -45
  339. package/lib/handler/touch/two_touch.d.ts +0 -23
  340. package/lib/handler/touch/two_touch.js +0 -106
  341. package/lib/hash.d.ts +0 -14
  342. package/lib/hash.js +0 -129
  343. package/lib/interface.d.ts +0 -34
  344. package/lib/interface.js +0 -5
  345. package/lib/map.d.ts +0 -70
  346. package/lib/map.js +0 -478
  347. package/lib/util.d.ts +0 -25
  348. package/lib/util.js +0 -89
  349. package/lib/utils/Aabb.d.ts +0 -12
  350. package/lib/utils/Aabb.js +0 -80
  351. package/lib/utils/dom.d.ts +0 -4
  352. package/lib/utils/dom.js +0 -125
  353. package/lib/utils/performance.d.ts +0 -17
  354. package/lib/utils/performance.js +0 -64
  355. package/lib/utils/primitives.d.ts +0 -6
  356. package/lib/utils/primitives.js +0 -45
  357. package/lib/utils/task_queue.d.ts +0 -13
  358. package/lib/utils/task_queue.js +0 -67
package/lib/earthmap.d.ts DELETED
@@ -1,69 +0,0 @@
1
- import Camera from './camera';
2
- import './css/l7.css';
3
- import type { LngLatLike } from './geo/lng_lat';
4
- import LngLat from './geo/lng_lat';
5
- import type { LngLatBoundsLike } from './geo/lng_lat_bounds';
6
- import LngLatBounds from './geo/lng_lat_bounds';
7
- import type { PointLike } from './geo/point';
8
- import Point from './geo/point';
9
- import type BoxZoomHandler from './handler/box_zoom';
10
- import HandlerManager from './handler/handler_manager';
11
- import type KeyboardHandler from './handler/keyboard';
12
- import type ScrollZoomHandler from './handler/scroll_zoom';
13
- import type DoubleClickZoomHandler from './handler/shim/dblclick_zoom';
14
- import type DragPanHandler from './handler/shim/drag_pan';
15
- import type DragRotateHandler from './handler/shim/drag_rotate';
16
- import type TouchZoomRotateHandler from './handler/shim/touch_zoom_rotate';
17
- import type { TouchPitchHandler } from './handler/touch';
18
- import type { IMapOptions } from './interface';
19
- import type { TaskID } from './utils/task_queue';
20
- type CallBack = (_: number) => void;
21
- export declare class EarthMap extends Camera {
22
- doubleClickZoom: DoubleClickZoomHandler;
23
- dragRotate: DragRotateHandler;
24
- dragPan: DragPanHandler;
25
- touchZoomRotate: TouchZoomRotateHandler;
26
- scrollZoom: ScrollZoomHandler;
27
- keyboard: KeyboardHandler;
28
- touchPitch: TouchPitchHandler;
29
- boxZoom: BoxZoomHandler;
30
- handlers: HandlerManager;
31
- private container;
32
- private canvas;
33
- private canvasContainer;
34
- private renderTaskQueue;
35
- private frame;
36
- private trackResize;
37
- constructor(options: Partial<IMapOptions>);
38
- resize(eventData?: any): this;
39
- getContainer(): HTMLElement;
40
- getCanvas(): HTMLCanvasElement;
41
- getCanvasContainer(): HTMLElement;
42
- project(lngLat: LngLatLike): Point;
43
- unproject(point: PointLike): LngLat;
44
- getBounds(): LngLatBounds;
45
- getMaxBounds(): LngLatBounds | null;
46
- setMaxBounds(bounds: LngLatBoundsLike): void;
47
- setStyle(style: any): void;
48
- setMinZoom(minZoom?: number): this;
49
- getMinZoom(): number;
50
- setMaxZoom(maxZoom?: number): this;
51
- getMaxZoom(): number;
52
- setMinPitch(minPitch?: number): this;
53
- getMinPitch(): number;
54
- setMaxPitch(maxPitch?: number): this;
55
- getMaxPitch(): number;
56
- getRenderWorldCopies(): boolean;
57
- setRenderWorldCopies(renderWorldCopies?: boolean): void;
58
- remove(): void;
59
- requestRenderFrame(cb: CallBack): TaskID;
60
- cancelRenderFrame(id: TaskID): void;
61
- triggerRepaint(): void;
62
- update(time?: number): void;
63
- private initContainer;
64
- private containerDimensions;
65
- private resizeCanvas;
66
- private onWindowOnline;
67
- private onWindowResize;
68
- }
69
- export {};
package/lib/earthmap.js DELETED
@@ -1,451 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.EarthMap = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _l7Utils = require("@antv/l7-utils");
10
- var _camera = _interopRequireDefault(require("./camera"));
11
- var _lng_lat = _interopRequireDefault(require("./geo/lng_lat"));
12
- var _lng_lat_bounds = _interopRequireDefault(require("./geo/lng_lat_bounds"));
13
- var _point = _interopRequireDefault(require("./geo/point"));
14
- var _handler_manager = _interopRequireDefault(require("./handler/handler_manager"));
15
- var _util = require("./util");
16
- var _performance = require("./utils/performance");
17
- var _task_queue = _interopRequireDefault(require("./utils/task_queue"));
18
- function loadStyles(css, doc) {
19
- var isMiniAli = typeof my !== 'undefined' && !!my && typeof my.showToast === 'function' && my.isFRM !== true;
20
- var isWeChatMiniProgram = typeof wx !== 'undefined' && wx !== null && (typeof wx.request !== 'undefined' || typeof wx.miniProgram !== 'undefined');
21
- if (isMiniAli || isWeChatMiniProgram) {
22
- return;
23
- }
24
- if (!doc) doc = document;
25
- if (!doc) {
26
- return;
27
- }
28
- var head = doc.head || doc.getElementsByTagName('head')[0];
29
- if (!head) {
30
- head = doc.createElement('head');
31
- var body = doc.body || doc.getElementsByTagName('body')[0];
32
- if (body) {
33
- body.parentNode.insertBefore(head, body);
34
- } else {
35
- doc.documentElement.appendChild(head);
36
- }
37
- }
38
- var style = doc.createElement('style');
39
- style.type = 'text/css';
40
- if (style.styleSheet) {
41
- style.styleSheet.cssText = css;
42
- } else {
43
- style.appendChild(doc.createTextNode(css));
44
- }
45
- head.appendChild(style);
46
- return style;
47
- }
48
- loadStyles(`.l7-map {
49
- font:
50
- 12px/20px 'Helvetica Neue',
51
- Arial,
52
- Helvetica,
53
- sans-serif;
54
- overflow: hidden;
55
- position: relative;
56
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
57
- }
58
-
59
- .l7-canvas {
60
- position: absolute;
61
- left: 0;
62
- top: 0;
63
- }
64
-
65
- .l7-map:-webkit-full-screen {
66
- width: 100%;
67
- height: 100%;
68
- }
69
-
70
- .l7-canary {
71
- background-color: salmon;
72
- }
73
-
74
- .l7-canvas-container.l7-interactive,
75
- .l7-ctrl-group button.l7-ctrl-compass {
76
- cursor: grab;
77
- -moz-user-select: none;
78
- -webkit-user-select: none;
79
- -ms-user-select: none;
80
- user-select: none;
81
- }
82
-
83
- .l7-canvas-container.l7-interactive.l7-track-pointer {
84
- cursor: pointer;
85
- }
86
-
87
- .l7-canvas-container.l7-interactive:active,
88
- .l7-ctrl-group button.l7-ctrl-compass:active {
89
- cursor: grabbing;
90
- }
91
-
92
- .l7-canvas-container.l7-touch-zoom-rotate,
93
- .l7-canvas-container.l7-touch-zoom-rotate .l7-canvas {
94
- touch-action: pan-x pan-y;
95
- }
96
-
97
- .l7-canvas-container.l7-touch-drag-pan,
98
- .l7-canvas-container.l7-touch-drag-pan .l7-canvas {
99
- touch-action: pinch-zoom;
100
- }
101
-
102
- .l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan,
103
- .l7-canvas-container.l7-touch-zoom-rotate.l7-touch-drag-pan .l7-canvas {
104
- touch-action: none;
105
- }
106
-
107
- .l7-ctrl-top-left,
108
- .l7-ctrl-top-right,
109
- .l7-ctrl-bottom-left,
110
- .l7-ctrl-bottom-right {
111
- position: absolute;
112
- pointer-events: none;
113
- z-index: 2;
114
- }
115
- .l7-ctrl-top-left {
116
- top: 0;
117
- left: 0;
118
- }
119
- .l7-ctrl-top-right {
120
- top: 0;
121
- right: 0;
122
- }
123
- .l7-ctrl-bottom-left {
124
- bottom: 0;
125
- left: 0;
126
- }
127
- .l7-ctrl-bottom-right {
128
- right: 0;
129
- bottom: 0;
130
- }
131
-
132
- .l7-ctrl {
133
- clear: both;
134
- pointer-events: auto;
135
-
136
- /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */
137
- -webkit-transform: translate(0, 0);
138
- transform: translate(0, 0);
139
- }
140
- .l7-ctrl-top-left .l7-ctrl {
141
- margin: 10px 0 0 10px;
142
- float: left;
143
- }
144
- .l7-ctrl-top-right .l7-ctrl {
145
- margin: 10px 10px 0 0;
146
- float: right;
147
- }
148
- .l7-ctrl-bottom-left .l7-ctrl {
149
- margin: 0 0 10px 10px;
150
- float: left;
151
- }
152
- .l7-ctrl-bottom-right .l7-ctrl {
153
- margin: 0 10px 10px 0;
154
- float: right;
155
- }
156
-
157
- .l7-crosshair,
158
- .l7-crosshair .l7-interactive,
159
- .l7-crosshair .l7-interactive:active {
160
- cursor: crosshair;
161
- }
162
-
163
- .l7-boxzoom {
164
- position: absolute;
165
- top: 0;
166
- left: 0;
167
- width: 0;
168
- height: 0;
169
- background: #fff;
170
- border: 2px dotted #202020;
171
- opacity: 0.5;
172
- z-index: 10;
173
- }
174
- `); // @ts-ignore
175
- const defaultMinZoom = -2;
176
- const defaultMaxZoom = 22;
177
- const {
178
- merge
179
- } = _l7Utils.lodashUtil;
180
- // the default values, but also the valid range
181
- const defaultMinPitch = 0;
182
- const defaultMaxPitch = 60;
183
- const DefaultOptions = {
184
- hash: false,
185
- zoom: -1,
186
- center: [112, 32],
187
- pitch: 0,
188
- bearing: 0,
189
- interactive: true,
190
- minZoom: defaultMinZoom,
191
- maxZoom: defaultMaxZoom,
192
- minPitch: defaultMinPitch,
193
- maxPitch: defaultMaxPitch,
194
- scrollZoom: true,
195
- boxZoom: true,
196
- dragRotate: true,
197
- dragPan: true,
198
- keyboard: true,
199
- doubleClickZoom: true,
200
- touchZoomRotate: true,
201
- touchPitch: true,
202
- bearingSnap: 7,
203
- clickTolerance: 3,
204
- pitchWithRotate: true,
205
- trackResize: true,
206
- renderWorldCopies: true,
207
- pitchEnabled: true,
208
- rotateEnabled: true
209
- };
210
- class EarthMap extends _camera.default {
211
- constructor(options) {
212
- super(merge({}, DefaultOptions, options));
213
- (0, _defineProperty2.default)(this, "doubleClickZoom", void 0);
214
- (0, _defineProperty2.default)(this, "dragRotate", void 0);
215
- (0, _defineProperty2.default)(this, "dragPan", void 0);
216
- (0, _defineProperty2.default)(this, "touchZoomRotate", void 0);
217
- (0, _defineProperty2.default)(this, "scrollZoom", void 0);
218
- (0, _defineProperty2.default)(this, "keyboard", void 0);
219
- (0, _defineProperty2.default)(this, "touchPitch", void 0);
220
- (0, _defineProperty2.default)(this, "boxZoom", void 0);
221
- (0, _defineProperty2.default)(this, "handlers", void 0);
222
- (0, _defineProperty2.default)(this, "container", void 0);
223
- (0, _defineProperty2.default)(this, "canvas", void 0);
224
- (0, _defineProperty2.default)(this, "canvasContainer", void 0);
225
- (0, _defineProperty2.default)(this, "renderTaskQueue", new _task_queue.default());
226
- (0, _defineProperty2.default)(this, "frame", void 0);
227
- (0, _defineProperty2.default)(this, "trackResize", true);
228
- (0, _defineProperty2.default)(this, "onWindowOnline", () => {
229
- this.update();
230
- });
231
- (0, _defineProperty2.default)(this, "onWindowResize", event => {
232
- if (this.trackResize) {
233
- this.resize({
234
- originalEvent: event
235
- }).update();
236
- }
237
- });
238
- this.initContainer();
239
- this.resize();
240
- this.handlers = new _handler_manager.default(this, this.options);
241
- if (typeof window !== 'undefined') {
242
- window.addEventListener('online', this.onWindowOnline, false);
243
- window.addEventListener('resize', this.onWindowResize, false);
244
- window.addEventListener('orientationchange', this.onWindowResize, false);
245
- }
246
- }
247
- resize(eventData) {
248
- const dimensions = this.containerDimensions();
249
- const width = dimensions[0];
250
- const height = dimensions[1];
251
-
252
- // this.resizeCanvas(width, height);
253
- this.transform.resize(width, height);
254
- const fireMoving = !this.moving;
255
- if (fireMoving) {
256
- this.stop();
257
- this.emit('movestart', new Event('movestart', eventData));
258
- this.emit('move', new Event('move', eventData));
259
- }
260
- this.emit('resize', new Event('resize', eventData));
261
- if (fireMoving) {
262
- this.emit('moveend', new Event('moveend', eventData));
263
- }
264
- return this;
265
- }
266
- getContainer() {
267
- return this.container;
268
- }
269
- getCanvas() {
270
- return this.canvas;
271
- }
272
- getCanvasContainer() {
273
- return this.canvasContainer;
274
- }
275
- project(lngLat) {
276
- return this.transform.locationPoint(_lng_lat.default.convert(lngLat));
277
- }
278
- unproject(point) {
279
- return this.transform.pointLocation(_point.default.convert(point));
280
- }
281
- getBounds() {
282
- return this.transform.getBounds();
283
- }
284
- getMaxBounds() {
285
- return this.transform.getMaxBounds();
286
- }
287
- setMaxBounds(bounds) {
288
- this.transform.setMaxBounds(_lng_lat_bounds.default.convert(bounds));
289
- }
290
-
291
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
292
- setStyle(style) {
293
- return;
294
- }
295
- setMinZoom(minZoom) {
296
- minZoom = minZoom === null || minZoom === undefined ? defaultMinZoom : minZoom;
297
- if (minZoom >= defaultMinZoom && minZoom <= this.transform.maxZoom) {
298
- this.transform.minZoom = minZoom;
299
- if (this.getZoom() < minZoom) {
300
- this.setZoom(minZoom);
301
- }
302
- return this;
303
- } else {
304
- throw new Error(`minZoom must be between ${defaultMinZoom} and the current maxZoom, inclusive`);
305
- }
306
- }
307
- getMinZoom() {
308
- return this.transform.minZoom;
309
- }
310
- setMaxZoom(maxZoom) {
311
- maxZoom = maxZoom === null || maxZoom === undefined ? defaultMaxZoom : maxZoom;
312
- if (maxZoom >= this.transform.minZoom) {
313
- this.transform.maxZoom = maxZoom;
314
- if (this.getZoom() > maxZoom) {
315
- this.setZoom(maxZoom);
316
- }
317
- return this;
318
- } else {
319
- throw new Error('maxZoom must be greater than the current minZoom');
320
- }
321
- }
322
- getMaxZoom() {
323
- return this.transform.maxZoom;
324
- }
325
- setMinPitch(minPitch) {
326
- minPitch = minPitch === null || minPitch === undefined ? defaultMinPitch : minPitch;
327
- if (minPitch < defaultMinPitch) {
328
- throw new Error(`minPitch must be greater than or equal to ${defaultMinPitch}`);
329
- }
330
- if (minPitch >= defaultMinPitch && minPitch <= this.transform.maxPitch) {
331
- this.transform.minPitch = minPitch;
332
- if (this.getPitch() < minPitch) {
333
- this.setPitch(minPitch);
334
- }
335
- return this;
336
- } else {
337
- throw new Error(`minPitch must be between ${defaultMinPitch} and the current maxPitch, inclusive`);
338
- }
339
- }
340
- getMinPitch() {
341
- return this.transform.minPitch;
342
- }
343
- setMaxPitch(maxPitch) {
344
- maxPitch = maxPitch === null || maxPitch === undefined ? defaultMaxPitch : maxPitch;
345
- if (maxPitch > defaultMaxPitch) {
346
- throw new Error(`maxPitch must be less than or equal to ${defaultMaxPitch}`);
347
- }
348
- if (maxPitch >= this.transform.minPitch) {
349
- this.transform.maxPitch = maxPitch;
350
- if (this.getPitch() > maxPitch) {
351
- this.setPitch(maxPitch);
352
- }
353
- return this;
354
- } else {
355
- throw new Error('maxPitch must be greater than the current minPitch');
356
- }
357
- }
358
- getMaxPitch() {
359
- return this.transform.maxPitch;
360
- }
361
- getRenderWorldCopies() {
362
- return this.transform.renderWorldCopies;
363
- }
364
- setRenderWorldCopies(renderWorldCopies) {
365
- this.transform.renderWorldCopies = !!renderWorldCopies;
366
- }
367
- remove() {
368
- if (this.frame) {
369
- this.frame.cancel();
370
- this.frame = null;
371
- }
372
- this.renderTaskQueue.clear();
373
- //销毁事件
374
- this.handlers.destroy();
375
- if (typeof window !== 'undefined') {
376
- window.removeEventListener('online', this.onWindowOnline, false);
377
- window.removeEventListener('resize', this.onWindowResize, false);
378
- window.removeEventListener('orientationchange', this.onWindowResize, false);
379
- }
380
- }
381
- requestRenderFrame(cb) {
382
- this.update();
383
- return this.renderTaskQueue.add(cb);
384
- }
385
- cancelRenderFrame(id) {
386
- return this.renderTaskQueue.remove(id);
387
- }
388
- triggerRepaint() {
389
- if (!this.frame) {
390
- this.frame = (0, _util.renderframe)(paintStartTimeStamp => {
391
- _performance.PerformanceUtils.frame(paintStartTimeStamp);
392
- this.frame = null;
393
- this.update(paintStartTimeStamp);
394
- });
395
- }
396
- }
397
- update(time) {
398
- if (!this.frame) {
399
- this.frame = (0, _util.renderframe)(paintStartTimeStamp => {
400
- _performance.PerformanceUtils.frame(paintStartTimeStamp);
401
- this.frame = null;
402
- this.renderTaskQueue.run(time);
403
- });
404
- }
405
- }
406
- initContainer() {
407
- if (typeof this.options.container === 'string') {
408
- this.container = window.document.getElementById(this.options.container);
409
- if (!this.container) {
410
- throw new Error(`Container '${this.options.container}' not found.`);
411
- }
412
- } else if (this.options.container instanceof HTMLElement) {
413
- this.container = this.options.container;
414
- } else {
415
- throw new Error("Invalid type: 'container' must be a String or HTMLElement.");
416
- }
417
- const container = this.container;
418
- container.classList.add('l7-map');
419
- const canvasContainer = this.canvasContainer = _l7Utils.DOM.create('div', 'l7-canvas-container', container);
420
- if (this.options.interactive) {
421
- canvasContainer.classList.add('l7-interactive');
422
- }
423
-
424
- // this.canvas = DOM.create(
425
- // 'canvas',
426
- // 'l7-canvas',
427
- // canvasContainer,
428
- // ) as HTMLCanvasElement;
429
- // this.canvas.setAttribute('tabindex', '-');
430
- // this.canvas.setAttribute('aria-label', 'Map');
431
- }
432
- containerDimensions() {
433
- let width = 0;
434
- let height = 0;
435
- if (this.container) {
436
- width = this.container.clientWidth || 400;
437
- height = this.container.clientHeight || 300;
438
- }
439
- return [width, height];
440
- }
441
- resizeCanvas(width, height) {
442
- const pixelRatio = _l7Utils.DOM.DPR || 1;
443
- this.canvas.width = pixelRatio * width;
444
- this.canvas.height = pixelRatio * height;
445
-
446
- // Maintain the same canvas size, potentially downscaling it for HiDPI displays
447
- this.canvas.style.width = `${width}px`;
448
- this.canvas.style.height = `${height}px`;
449
- }
450
- }
451
- exports.EarthMap = EarthMap;
@@ -1,54 +0,0 @@
1
- import Point from './point';
2
- /**
3
- * An `EdgeInset` object represents screen space padding applied to the edges of the viewport.
4
- * This shifts the apprent center or the vanishing point of the map. This is useful for adding floating UI elements
5
- * on top of the map and having the vanishing point shift as UI elements resize.
6
- *
7
- * @param {number} [top=0]
8
- * @param {number} [bottom=0]
9
- * @param {number} [left=0]
10
- * @param {number} [right=0]
11
- */
12
- export default class EdgeInsets {
13
- top: number;
14
- bottom: number;
15
- left: number;
16
- right: number;
17
- constructor(top?: number, bottom?: number, left?: number, right?: number);
18
- /**
19
- * Interpolates the inset in-place.
20
- * This maintains the current inset value for any inset not present in `target`.
21
- *
22
- * @param {PaddingOptions} target
23
- * @param {number} t
24
- * @returns {EdgeInsets}
25
- * @memberof EdgeInsets
26
- */
27
- interpolate(start: IPaddingOptions | EdgeInsets, target: IPaddingOptions, t: number): EdgeInsets;
28
- /**
29
- * Utility method that computes the new apprent center or vanishing point after applying insets.
30
- * This is in pixels and with the top left being (0.0) and +y being downwards.
31
- *
32
- * @param {number} width
33
- * @param {number} height
34
- * @returns {Point}
35
- * @memberof EdgeInsets
36
- */
37
- getCenter(width: number, height: number): Point;
38
- equals(other: IPaddingOptions): boolean;
39
- clone(): EdgeInsets;
40
- /**
41
- * Returns the current sdtate as json, useful when you want to have a
42
- * read-only representation of the inset.
43
- *
44
- * @returns {PaddingOptions}
45
- * @memberof EdgeInsets
46
- */
47
- toJSON(): IPaddingOptions;
48
- }
49
- export interface IPaddingOptions {
50
- top?: number;
51
- bottom?: number;
52
- right?: number;
53
- left?: number;
54
- }
@@ -1,18 +0,0 @@
1
- export declare const earthRadius = 6371008.8;
2
- export type LngLatLike = LngLat | {
3
- lng: number;
4
- lat: number;
5
- } | {
6
- lon: number;
7
- lat: number;
8
- } | [number, number];
9
- export default class LngLat {
10
- static convert(input: LngLatLike): LngLat;
11
- lng: number;
12
- lat: number;
13
- constructor(lng: number, lat: number);
14
- wrap(): LngLat;
15
- toArray(): [number, number];
16
- toString(): string;
17
- distanceTo(lngLat: LngLat): number;
18
- }
@@ -1,67 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.earthRadius = exports.default = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _util = require("../util");
10
- const earthRadius = exports.earthRadius = 6371008.8;
11
- class LngLat {
12
- static convert(input) {
13
- if (input instanceof LngLat) {
14
- return input;
15
- }
16
- if (Array.isArray(input) && (input.length === 2 || input.length === 3)) {
17
- return new LngLat(Number(input[0]), Number(input[1]));
18
- }
19
- if (!Array.isArray(input) && typeof input === 'object' && input !== null) {
20
- const lng = 'lng' in input ? input.lng : input.lon;
21
- return new LngLat(
22
- // flow can't refine this to have one of lng or lat, so we have to cast to any
23
- Number(lng), Number(input.lat));
24
- }
25
- throw new Error('`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]');
26
- }
27
- constructor(lng, lat) {
28
- (0, _defineProperty2.default)(this, "lng", void 0);
29
- (0, _defineProperty2.default)(this, "lat", void 0);
30
- if (isNaN(lng) || isNaN(lat)) {
31
- throw new Error(`Invalid LngLat object: (${lng}, ${lat})`);
32
- }
33
- this.lng = +lng;
34
- this.lat = +lat;
35
- if (this.lat > 90 || this.lat < -90) {
36
- throw new Error('Invalid LngLat latitude value: must be between -90 and 90');
37
- }
38
- }
39
- wrap() {
40
- return new LngLat((0, _util.wrap)(this.lng, -180, 180), this.lat);
41
- }
42
- toArray() {
43
- return [this.lng, this.lat];
44
- }
45
- // public toBounds(radius: number = 0) {
46
- // const earthCircumferenceInMetersAtEquator = 40075017;
47
- // const latAccuracy = (360 * radius) / earthCircumferenceInMetersAtEquator;
48
- // const lngAccuracy = latAccuracy / Math.cos((Math.PI / 180) * this.lat);
49
-
50
- // return new LngLatBounds(
51
- // new LngLat(this.lng - lngAccuracy, this.lat - latAccuracy),
52
- // new LngLat(this.lng + lngAccuracy, this.lat + latAccuracy),
53
- // );
54
- // }
55
- toString() {
56
- return `LngLat(${this.lng}, ${this.lat})`;
57
- }
58
- distanceTo(lngLat) {
59
- const rad = Math.PI / 180;
60
- const lat1 = this.lat * rad;
61
- const lat2 = lngLat.lat * rad;
62
- const a = Math.sin(lat1) * Math.sin(lat2) + Math.cos(lat1) * Math.cos(lat2) * Math.cos((lngLat.lng - this.lng) * rad);
63
- const maxMeters = earthRadius * Math.acos(Math.min(a, 1));
64
- return maxMeters;
65
- }
66
- }
67
- exports.default = LngLat;
@@ -1,25 +0,0 @@
1
- import type { LngLatLike } from './lng_lat';
2
- import LngLat from './lng_lat';
3
- export type LngLatBoundsLike = LngLatBounds | [LngLatLike, LngLatLike] | [number, number, number, number];
4
- export default class LngLatBounds {
5
- static convert(input: LngLatBoundsLike): LngLatBounds;
6
- private ne;
7
- private sw;
8
- constructor(sw?: any, ne?: any);
9
- setNorthEast(ne: LngLatLike): this;
10
- setSouthWest(sw: LngLatLike): this;
11
- extend(obj: LngLatLike | LngLatBoundsLike): this;
12
- getCenter(): LngLat;
13
- getSouthWest(): LngLat;
14
- getNorthEast(): LngLat;
15
- getNorthWest(): LngLat;
16
- getSouthEast(): LngLat;
17
- getWest(): number;
18
- getSouth(): number;
19
- getEast(): number;
20
- getNorth(): number;
21
- toArray(): [[number, number], [number, number]];
22
- toString(): string;
23
- isEmpty(): boolean;
24
- contains(lnglat: LngLatLike): boolean;
25
- }