@antv/l7-map 2.21.11-beta.5 → 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
@@ -0,0 +1,625 @@
1
+ /// <reference types="mapbox__point-geometry" />
2
+ import Point from '@mapbox/point-geometry';
3
+ import { Camera } from './camera';
4
+ import type { MapEventType } from './events';
5
+ import { LngLat } from './geo/lng_lat';
6
+ import { LngLatBounds } from './geo/lng_lat_bounds';
7
+ import type { Listener } from './util/evented';
8
+ import { TaskQueue } from './util/task_queue';
9
+ import type { Complete } from './util/util';
10
+ import './css/l7.css';
11
+ import type { CameraOptions, FitBoundsOptions, PointLike } from './camera';
12
+ import type { LngLatLike } from './geo/lng_lat';
13
+ import type { LngLatBoundsLike } from './geo/lng_lat_bounds';
14
+ import type { BoxZoomHandler } from './handler/box_zoom';
15
+ import type { CooperativeGesturesHandler, GestureOptions } from './handler/cooperative_gestures';
16
+ import type { KeyboardHandler } from './handler/keyboard';
17
+ import type { ScrollZoomHandler } from './handler/scroll_zoom';
18
+ import type { DoubleClickZoomHandler } from './handler/shim/dblclick_zoom';
19
+ import type { DragPanHandler, DragPanOptions } from './handler/shim/drag_pan';
20
+ import type { DragRotateHandler } from './handler/shim/drag_rotate';
21
+ import type { TwoFingersTouchZoomRotateHandler } from './handler/shim/two_fingers_touch';
22
+ import type { AroundCenterOptions, TwoFingersTouchPitchHandler } from './handler/two_fingers_touch';
23
+ import type { TaskID } from './util/task_queue';
24
+ /**
25
+ * The {@link Map} options object.
26
+ */
27
+ export type MapOptions = {
28
+ /**
29
+ * If `false`, no mouse, touch, or keyboard listeners will be attached to the map, so it will not respond to interaction.
30
+ * @defaultValue true
31
+ */
32
+ interactive?: boolean;
33
+ /**
34
+ * The HTML element in which MapLibre GL JS will render the map, or the element's string `id`. The specified element must have no children.
35
+ */
36
+ container: HTMLElement | string;
37
+ /**
38
+ * The threshold, measured in degrees, that determines when the map's
39
+ * bearing will snap to north. For example, with a `bearingSnap` of 7, if the user rotates
40
+ * the map within 7 degrees of north, the map will automatically snap to exact north.
41
+ * @defaultValue 7
42
+ */
43
+ bearingSnap?: number;
44
+ /**
45
+ * If set, the map will be constrained to the given bounds.
46
+ */
47
+ maxBounds?: LngLatBoundsLike;
48
+ /**
49
+ * If `true`, the "scroll to zoom" interaction is enabled. {@link AroundCenterOptions} are passed as options to {@link ScrollZoomHandler#enable}.
50
+ * @defaultValue true
51
+ */
52
+ scrollZoom?: boolean | AroundCenterOptions;
53
+ /**
54
+ * The minimum zoom level of the map (0-24).
55
+ * @defaultValue 0
56
+ */
57
+ minZoom?: number | null;
58
+ /**
59
+ * The maximum zoom level of the map (0-24).
60
+ * @defaultValue 22
61
+ */
62
+ maxZoom?: number | null;
63
+ /**
64
+ * The minimum pitch of the map (0-85). Values greater than 60 degrees are experimental and may result in rendering issues. If you encounter any, please raise an issue with details in the MapLibre project.
65
+ * @defaultValue 0
66
+ */
67
+ minPitch?: number | null;
68
+ /**
69
+ * The maximum pitch of the map (0-85). Values greater than 60 degrees are experimental and may result in rendering issues. If you encounter any, please raise an issue with details in the MapLibre project.
70
+ * @defaultValue 60
71
+ */
72
+ maxPitch?: number | null;
73
+ /**
74
+ * If `true`, the "box zoom" interaction is enabled (see {@link BoxZoomHandler}).
75
+ * @defaultValue true
76
+ */
77
+ boxZoom?: boolean;
78
+ /**
79
+ * If `true`, the "drag to rotate" interaction is enabled (see {@link DragRotateHandler}).
80
+ * @defaultValue true
81
+ */
82
+ dragRotate?: boolean;
83
+ /**
84
+ * If `true`, the "drag to pan" interaction is enabled. An `Object` value is passed as options to {@link DragPanHandler#enable}.
85
+ * @defaultValue true
86
+ */
87
+ dragPan?: boolean | DragPanOptions;
88
+ /**
89
+ * If `true`, keyboard shortcuts are enabled (see {@link KeyboardHandler}).
90
+ * @defaultValue true
91
+ */
92
+ keyboard?: boolean;
93
+ /**
94
+ * If `true`, the "double click to zoom" interaction is enabled (see {@link DoubleClickZoomHandler}).
95
+ * @defaultValue true
96
+ */
97
+ doubleClickZoom?: boolean;
98
+ /**
99
+ * If `true`, the "pinch to rotate and zoom" interaction is enabled. An `Object` value is passed as options to {@link TwoFingersTouchZoomRotateHandler#enable}.
100
+ * @defaultValue true
101
+ */
102
+ touchZoomRotate?: boolean | AroundCenterOptions;
103
+ /**
104
+ * If `true`, the "drag to pitch" interaction is enabled. An `Object` value is passed as options to {@link TwoFingersTouchPitchHandler#enable}.
105
+ * @defaultValue true
106
+ */
107
+ touchPitch?: boolean | AroundCenterOptions;
108
+ /**
109
+ * If `true` or set to an options object, the map is only accessible on desktop while holding Command/Ctrl and only accessible on mobile with two fingers. Interacting with the map using normal gestures will trigger an informational screen. With this option enabled, "drag to pitch" requires a three-finger gesture. Cooperative gestures are disabled when a map enters fullscreen using {@link FullscreenControl}.
110
+ * @defaultValue false
111
+ */
112
+ cooperativeGestures?: GestureOptions;
113
+ /**
114
+ * If `true`, the map will automatically resize when the browser window resizes.
115
+ * @defaultValue true
116
+ */
117
+ trackResize?: boolean;
118
+ /**
119
+ * The initial geographical centerpoint of the map. If `center` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `[0, 0]` Note: MapLibre GL JS uses longitude, latitude coordinate order (as opposed to latitude, longitude) to match GeoJSON.
120
+ * @defaultValue [0, 0]
121
+ */
122
+ center?: LngLatLike;
123
+ /**
124
+ * The initial zoom level of the map. If `zoom` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`.
125
+ * @defaultValue 0
126
+ */
127
+ zoom?: number;
128
+ /**
129
+ * The initial bearing (rotation) of the map, measured in degrees counter-clockwise from north. If `bearing` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`.
130
+ * @defaultValue 0
131
+ */
132
+ bearing?: number;
133
+ /**
134
+ * The initial pitch (tilt) of the map, measured in degrees away from the plane of the screen (0-85). If `pitch` is not specified in the constructor options, MapLibre GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`. Values greater than 60 degrees are experimental and may result in rendering issues. If you encounter any, please raise an issue with details in the MapLibre project.
135
+ * @defaultValue 0
136
+ */
137
+ pitch?: number;
138
+ /**
139
+ * If `true`, multiple copies of the world will be rendered side by side beyond -180 and 180 degrees longitude. If set to `false`:
140
+ *
141
+ * - When the map is zoomed out far enough that a single representation of the world does not fill the map's entire
142
+ * container, there will be blank space beyond 180 and -180 degrees longitude.
143
+ * - Features that cross 180 and -180 degrees longitude will be cut in two (with one portion on the right edge of the
144
+ * map and the other on the left edge of the map) at every zoom level.
145
+ * @defaultValue true
146
+ */
147
+ renderWorldCopies?: boolean;
148
+ /**
149
+ * Controls the duration of the fade-in/fade-out animation for label collisions after initial map load, in milliseconds. This setting affects all symbol layers. This setting does not affect the duration of runtime styling transitions or raster tile cross-fading.
150
+ * @defaultValue 300
151
+ */
152
+ fadeDuration?: number;
153
+ /**
154
+ * The max number of pixels a user can shift the mouse pointer during a click for it to be considered a valid click (as opposed to a mouse drag).
155
+ * @defaultValue 3
156
+ */
157
+ clickTolerance?: number;
158
+ /**
159
+ * The initial bounds of the map. If `bounds` is specified, it overrides `center` and `zoom` constructor options.
160
+ */
161
+ bounds?: LngLatBoundsLike;
162
+ /**
163
+ * A {@link FitBoundsOptions} options object to use _only_ when fitting the initial `bounds` provided above.
164
+ */
165
+ fitBoundsOptions?: FitBoundsOptions;
166
+ /**
167
+ * If `false`, the map's pitch (tilt) control with "drag to rotate" interaction will be disabled.
168
+ * @defaultValue true
169
+ */
170
+ pitchWithRotate?: boolean;
171
+ };
172
+ export type CompleteMapOptions = Complete<MapOptions>;
173
+ /**
174
+ * The `Map` object represents the map on your page. It exposes methods
175
+ * and properties that enable you to programmatically change the map,
176
+ * and fires events as users interact with it.
177
+ *
178
+ * You create a `Map` by specifying a `container` and other options, see {@link MapOptions} for the full list.
179
+ * Then MapLibre GL JS initializes the map on the page and returns your `Map` object.
180
+ *
181
+ * @group Main
182
+ *
183
+ * @example
184
+ * ```ts
185
+ * let map = new Map({
186
+ * container: 'map',
187
+ * center: [-122.420679, 37.772537],
188
+ * zoom: 13,
189
+ * });
190
+ * ```
191
+ */
192
+ export declare class Map extends Camera {
193
+ _container: HTMLElement;
194
+ _canvasContainer: HTMLElement;
195
+ _interactive: boolean;
196
+ _frameRequest: AbortController;
197
+ _loaded: boolean;
198
+ _idleTriggered: boolean;
199
+ _fullyLoaded: boolean;
200
+ _trackResize: boolean;
201
+ _resizeObserver: ResizeObserver;
202
+ _preserveDrawingBuffer: boolean;
203
+ _failIfMajorPerformanceCaveat: boolean;
204
+ _fadeDuration: number;
205
+ _crossSourceCollisions: boolean;
206
+ _crossFadingFactor: number;
207
+ _collectResourceTiming: boolean;
208
+ _renderTaskQueue: TaskQueue;
209
+ _mapId: number;
210
+ _removed: boolean;
211
+ _clickTolerance: number;
212
+ /**
213
+ * The map's {@link ScrollZoomHandler}, which implements zooming in and out with a scroll wheel or trackpad.
214
+ * Find more details and examples using `scrollZoom` in the {@link ScrollZoomHandler} section.
215
+ */
216
+ scrollZoom: ScrollZoomHandler;
217
+ /**
218
+ * The map's {@link BoxZoomHandler}, which implements zooming using a drag gesture with the Shift key pressed.
219
+ * Find more details and examples using `boxZoom` in the {@link BoxZoomHandler} section.
220
+ */
221
+ boxZoom: BoxZoomHandler;
222
+ /**
223
+ * The map's {@link DragRotateHandler}, which implements rotating the map while dragging with the right
224
+ * mouse button or with the Control key pressed. Find more details and examples using `dragRotate`
225
+ * in the {@link DragRotateHandler} section.
226
+ */
227
+ dragRotate: DragRotateHandler;
228
+ /**
229
+ * The map's {@link DragPanHandler}, which implements dragging the map with a mouse or touch gesture.
230
+ * Find more details and examples using `dragPan` in the {@link DragPanHandler} section.
231
+ */
232
+ dragPan: DragPanHandler;
233
+ /**
234
+ * The map's {@link KeyboardHandler}, which allows the user to zoom, rotate, and pan the map using keyboard
235
+ * shortcuts. Find more details and examples using `keyboard` in the {@link KeyboardHandler} section.
236
+ */
237
+ keyboard: KeyboardHandler;
238
+ /**
239
+ * The map's {@link DoubleClickZoomHandler}, which allows the user to zoom by double clicking.
240
+ * Find more details and examples using `doubleClickZoom` in the {@link DoubleClickZoomHandler} section.
241
+ */
242
+ doubleClickZoom: DoubleClickZoomHandler;
243
+ /**
244
+ * The map's {@link TwoFingersTouchZoomRotateHandler}, which allows the user to zoom or rotate the map with touch gestures.
245
+ * Find more details and examples using `touchZoomRotate` in the {@link TwoFingersTouchZoomRotateHandler} section.
246
+ */
247
+ touchZoomRotate: TwoFingersTouchZoomRotateHandler;
248
+ /**
249
+ * The map's {@link TwoFingersTouchPitchHandler}, which allows the user to pitch the map with touch gestures.
250
+ * Find more details and examples using `touchPitch` in the {@link TwoFingersTouchPitchHandler} section.
251
+ */
252
+ touchPitch: TwoFingersTouchPitchHandler;
253
+ /**
254
+ * The map's {@link CooperativeGesturesHandler}, which allows the user to see cooperative gesture info when user tries to zoom in/out.
255
+ * Find more details and examples using `cooperativeGestures` in the {@link CooperativeGesturesHandler} section.
256
+ */
257
+ cooperativeGestures: CooperativeGesturesHandler;
258
+ constructor(options: MapOptions);
259
+ /**
260
+ * @internal
261
+ * Returns a unique number for this map instance which is used for the MapLoadEvent
262
+ * to make sure we only fire one event per instantiated map object.
263
+ * @returns the uniq map ID
264
+ */
265
+ _getMapId(): number;
266
+ calculateCameraOptionsFromTo(from: LngLat, altitudeFrom: number, to: LngLat, altitudeTo?: number): CameraOptions;
267
+ /**
268
+ * Resizes the map according to the dimensions of its
269
+ * `container` element.
270
+ *
271
+ * Checks if the map container size changed and updates the map if it has changed.
272
+ * This method must be called after the map's `container` is resized programmatically
273
+ * or when the map is shown after being initially hidden with CSS.
274
+ *
275
+ * Triggers the following events: `movestart`, `move`, `moveend`, and `resize`.
276
+ *
277
+ * @param eventData - Additional properties to be passed to `movestart`, `move`, `resize`, and `moveend`
278
+ * events that get triggered as a result of resize. This can be useful for differentiating the
279
+ * source of an event (for example, user-initiated or programmatically-triggered events).
280
+ * @example
281
+ * Resize the map when the map container is shown after being initially hidden with CSS.
282
+ * ```ts
283
+ * let mapDiv = document.getElementById('map');
284
+ * if (mapDiv.style.visibility === true) map.resize();
285
+ * ```
286
+ */
287
+ resize(eventData?: any): Map;
288
+ /**
289
+ * Returns the map's geographical bounds. When the bearing or pitch is non-zero, the visible region is not
290
+ * an axis-aligned rectangle, and the result is the smallest bounds that encompasses the visible region.
291
+ * @returns The geographical bounds of the map as {@link LngLatBounds}.
292
+ * @example
293
+ * ```ts
294
+ * let bounds = map.getBounds();
295
+ * ```
296
+ */
297
+ getBounds(): LngLatBounds;
298
+ /**
299
+ * Returns the maximum geographical bounds the map is constrained to, or `null` if none set.
300
+ * @returns The map object.
301
+ * @example
302
+ * ```ts
303
+ * let maxBounds = map.getMaxBounds();
304
+ * ```
305
+ */
306
+ getMaxBounds(): LngLatBounds | null;
307
+ /**
308
+ * Sets or clears the map's geographical bounds.
309
+ *
310
+ * Pan and zoom operations are constrained within these bounds.
311
+ * If a pan or zoom is performed that would
312
+ * display regions outside these bounds, the map will
313
+ * instead display a position and zoom level
314
+ * as close as possible to the operation's request while still
315
+ * remaining within the bounds.
316
+ *
317
+ * @param bounds - The maximum bounds to set. If `null` or `undefined` is provided, the function removes the map's maximum bounds.
318
+ * @example
319
+ * Define bounds that conform to the `LngLatBoundsLike` object as set the max bounds.
320
+ * ```ts
321
+ * let bounds = [
322
+ * [-74.04728, 40.68392], // [west, south]
323
+ * [-73.91058, 40.87764] // [east, north]
324
+ * ];
325
+ * map.setMaxBounds(bounds);
326
+ * ```
327
+ */
328
+ setMaxBounds(bounds?: LngLatBoundsLike | null): Map;
329
+ /**
330
+ * Sets or clears the map's minimum zoom level.
331
+ * If the map's current zoom level is lower than the new minimum,
332
+ * the map will zoom to the new minimum.
333
+ *
334
+ * It is not always possible to zoom out and reach the set `minZoom`.
335
+ * Other factors such as map height may restrict zooming. For example,
336
+ * if the map is 512px tall it will not be possible to zoom below zoom 0
337
+ * no matter what the `minZoom` is set to.
338
+ *
339
+ * A {@link ErrorEvent} event will be fired if minZoom is out of bounds.
340
+ *
341
+ * @param minZoom - The minimum zoom level to set (-2 - 24).
342
+ * If `null` or `undefined` is provided, the function removes the current minimum zoom (i.e. sets it to -2).
343
+ * @example
344
+ * ```ts
345
+ * map.setMinZoom(12.25);
346
+ * ```
347
+ */
348
+ setMinZoom(minZoom?: number | null): Map;
349
+ /**
350
+ * Returns the map's minimum allowable zoom level.
351
+ *
352
+ * @returns minZoom
353
+ * @example
354
+ * ```ts
355
+ * let minZoom = map.getMinZoom();
356
+ * ```
357
+ */
358
+ getMinZoom(): number;
359
+ /**
360
+ * Sets or clears the map's maximum zoom level.
361
+ * If the map's current zoom level is higher than the new maximum,
362
+ * the map will zoom to the new maximum.
363
+ *
364
+ * A {@link ErrorEvent} event will be fired if minZoom is out of bounds.
365
+ *
366
+ * @param maxZoom - The maximum zoom level to set.
367
+ * If `null` or `undefined` is provided, the function removes the current maximum zoom (sets it to 22).
368
+ * @example
369
+ * ```ts
370
+ * map.setMaxZoom(18.75);
371
+ * ```
372
+ */
373
+ setMaxZoom(maxZoom?: number | null): Map;
374
+ /**
375
+ * Returns the map's maximum allowable zoom level.
376
+ *
377
+ * @returns The maxZoom
378
+ * @example
379
+ * ```ts
380
+ * let maxZoom = map.getMaxZoom();
381
+ * ```
382
+ */
383
+ getMaxZoom(): number;
384
+ /**
385
+ * Sets or clears the map's minimum pitch.
386
+ * If the map's current pitch is lower than the new minimum,
387
+ * the map will pitch to the new minimum.
388
+ *
389
+ * A {@link ErrorEvent} event will be fired if minPitch is out of bounds.
390
+ *
391
+ * @param minPitch - The minimum pitch to set (0-85). Values greater than 60 degrees are experimental and may result in rendering issues. If you encounter any, please raise an issue with details in the MapLibre project.
392
+ * If `null` or `undefined` is provided, the function removes the current minimum pitch (i.e. sets it to 0).
393
+ */
394
+ setMinPitch(minPitch?: number | null): Map;
395
+ /**
396
+ * Returns the map's minimum allowable pitch.
397
+ *
398
+ * @returns The minPitch
399
+ */
400
+ getMinPitch(): number;
401
+ /**
402
+ * Sets or clears the map's maximum pitch.
403
+ * If the map's current pitch is higher than the new maximum,
404
+ * the map will pitch to the new maximum.
405
+ *
406
+ * A {@link ErrorEvent} event will be fired if maxPitch is out of bounds.
407
+ *
408
+ * @param maxPitch - The maximum pitch to set (0-85). Values greater than 60 degrees are experimental and may result in rendering issues. If you encounter any, please raise an issue with details in the MapLibre project.
409
+ * If `null` or `undefined` is provided, the function removes the current maximum pitch (sets it to 60).
410
+ */
411
+ setMaxPitch(maxPitch?: number | null): Map;
412
+ /**
413
+ * Returns the map's maximum allowable pitch.
414
+ *
415
+ * @returns The maxPitch
416
+ */
417
+ getMaxPitch(): number;
418
+ /**
419
+ * Returns the state of `renderWorldCopies`. If `true`, multiple copies of the world will be rendered side by side beyond -180 and 180 degrees longitude. If set to `false`:
420
+ *
421
+ * - When the map is zoomed out far enough that a single representation of the world does not fill the map's entire
422
+ * container, there will be blank space beyond 180 and -180 degrees longitude.
423
+ * - Features that cross 180 and -180 degrees longitude will be cut in two (with one portion on the right edge of the
424
+ * map and the other on the left edge of the map) at every zoom level.
425
+ * @returns The renderWorldCopies
426
+ * @example
427
+ * ```ts
428
+ * let worldCopiesRendered = map.getRenderWorldCopies();
429
+ * ```
430
+ * @see [Render world copies](https://maplibre.org/maplibre-gl-js/docs/examples/render-world-copies/)
431
+ */
432
+ getRenderWorldCopies(): boolean;
433
+ /**
434
+ * Sets the state of `renderWorldCopies`.
435
+ *
436
+ * @param renderWorldCopies - If `true`, multiple copies of the world will be rendered side by side beyond -180 and 180 degrees longitude. If set to `false`:
437
+ *
438
+ * - When the map is zoomed out far enough that a single representation of the world does not fill the map's entire
439
+ * container, there will be blank space beyond 180 and -180 degrees longitude.
440
+ * - Features that cross 180 and -180 degrees longitude will be cut in two (with one portion on the right edge of the
441
+ * map and the other on the left edge of the map) at every zoom level.
442
+ *
443
+ * `undefined` is treated as `true`, `null` is treated as `false`.
444
+ * @example
445
+ * ```ts
446
+ * map.setRenderWorldCopies(true);
447
+ * ```
448
+ */
449
+ setRenderWorldCopies(renderWorldCopies?: boolean | null): void;
450
+ /**
451
+ * Returns a [Point](https://github.com/mapbox/point-geometry) representing pixel coordinates, relative to the map's `container`,
452
+ * that correspond to the specified geographical location.
453
+ *
454
+ * @param lnglat - The geographical location to project.
455
+ * @returns The [Point](https://github.com/mapbox/point-geometry) corresponding to `lnglat`, relative to the map's `container`.
456
+ * @example
457
+ * ```ts
458
+ * let coordinate = [-122.420679, 37.772537];
459
+ * let point = map.project(coordinate);
460
+ * ```
461
+ */
462
+ project(lnglat: LngLatLike): Point;
463
+ /**
464
+ * Returns a {@link LngLat} representing geographical coordinates that correspond
465
+ * to the specified pixel coordinates.
466
+ *
467
+ * @param point - The pixel coordinates to unproject.
468
+ * @returns The {@link LngLat} corresponding to `point`.
469
+ * @example
470
+ * ```ts
471
+ * map.on('click', (e) => {
472
+ * // When the map is clicked, get the geographic coordinate.
473
+ * let coordinate = map.unproject(e.point);
474
+ * });
475
+ * ```
476
+ */
477
+ unproject(point: PointLike): LngLat;
478
+ /**
479
+ * Returns true if the map is panning, zooming, rotating, or pitching due to a camera animation or user gesture.
480
+ * @returns true if the map is moving.
481
+ * @example
482
+ * ```ts
483
+ * let isMoving = map.isMoving();
484
+ * ```
485
+ */
486
+ isMoving(): boolean;
487
+ /**
488
+ * Returns true if the map is zooming due to a camera animation or user gesture.
489
+ * @returns true if the map is zooming.
490
+ * @example
491
+ * ```ts
492
+ * let isZooming = map.isZooming();
493
+ * ```
494
+ */
495
+ isZooming(): boolean;
496
+ /**
497
+ * Returns true if the map is rotating due to a camera animation or user gesture.
498
+ * @returns true if the map is rotating.
499
+ * @example
500
+ * ```ts
501
+ * map.isRotating();
502
+ * ```
503
+ */
504
+ isRotating(): boolean;
505
+ /**
506
+ * Overload of the `on` method that allows to listen to events without specifying a layer.
507
+ * @event
508
+ * @param type - The type of the event.
509
+ * @param listener - The listener callback.
510
+ */
511
+ on<T extends keyof MapEventType>(type: T, listener: (ev: MapEventType[T] & Object) => void): this;
512
+ /**
513
+ * Overload of the `on` method that allows to listen to events without specifying a layer.
514
+ * @event
515
+ * @param type - The type of the event.
516
+ * @param listener - The listener callback.
517
+ */
518
+ on(type: keyof MapEventType | string, listener: Listener): this;
519
+ /**
520
+ * Overload of the `once` method that allows to listen to events without specifying a layer.
521
+ * @event
522
+ * @param type - The type of the event.
523
+ * @param listener - The listener callback.
524
+ */
525
+ once<T extends keyof MapEventType>(type: T, listener?: (ev: MapEventType[T] & Object) => void): this | Promise<any>;
526
+ /**
527
+ * Overload of the `once` method that allows to listen to events without specifying a layer.
528
+ * @event
529
+ * @param type - The type of the event.
530
+ * @param listener - The listener callback.
531
+ */
532
+ once(type: keyof MapEventType | string, listener?: Listener): this | Promise<any>;
533
+ /**
534
+ * Overload of the `off` method that allows to listen to events without specifying a layer.
535
+ * @event
536
+ * @param type - The type of the event.
537
+ * @param listener - The function previously installed as a listener.
538
+ */
539
+ off<T extends keyof MapEventType>(type: T, listener: (ev: MapEventType[T] & Object) => void): this;
540
+ /**
541
+ * Overload of the `off` method that allows to listen to events without specifying a layer.
542
+ * @event
543
+ * @param type - The type of the event.
544
+ * @param listener - The function previously installed as a listener.
545
+ */
546
+ off(type: keyof MapEventType | string, listener: Listener): this;
547
+ /**
548
+ * Returns the map's containing HTML element.
549
+ *
550
+ * @returns The map's container.
551
+ */
552
+ getContainer(): HTMLElement;
553
+ /**
554
+ * Returns the HTML element containing the map's `<canvas>` element.
555
+ *
556
+ * If you want to add non-GL overlays to the map, you should append them to this element.
557
+ *
558
+ * This is the element to which event bindings for map interactivity (such as panning and zooming) are
559
+ * attached. It will receive bubbled events from child elements such as the `<canvas>`, but not from
560
+ * map controls.
561
+ *
562
+ * @returns The container of the map's `<canvas>`.
563
+ * @see [Create a draggable point](https://maplibre.org/maplibre-gl-js/docs/examples/drag-a-point/)
564
+ */
565
+ getCanvasContainer(): HTMLElement;
566
+ _containerDimensions(): number[];
567
+ _setupContainer(): void;
568
+ _onMapScroll: (event: any) => boolean;
569
+ /**
570
+ * @internal
571
+ * Update this map's style and sources, and re-render the map.
572
+ *
573
+ * @param updateStyle - mark the map's style for reprocessing as
574
+ * well as its sources
575
+ */
576
+ _update(): this;
577
+ /**
578
+ * @internal
579
+ * Request that the given callback be executed during the next render
580
+ * frame. Schedule a render frame if one is not already scheduled.
581
+ *
582
+ * @returns An id that can be used to cancel the callback
583
+ */
584
+ _requestRenderFrame(callback: () => void): TaskID;
585
+ _cancelRenderFrame(id: TaskID): void;
586
+ /**
587
+ * @internal
588
+ * Call when a (re-)render of the map is required:
589
+ *
590
+ * - The style has changed (`setPaintProperty()`, etc.)
591
+ * - Source data has changed (e.g. tiles have finished loading)
592
+ * - The map has is moving (or just finished moving)
593
+ * - A transition is in progress
594
+ *
595
+ * @param paintStartTimeStamp - The time when the animation frame began executing.
596
+ */
597
+ _render(paintStartTimeStamp: number): this;
598
+ /**
599
+ * Clean up and release all internal resources associated with this map.
600
+ *
601
+ * This includes DOM elements, event bindings, web workers, and WebGL resources.
602
+ *
603
+ * Use this method when you are done using the map and wish to ensure that it no
604
+ * longer consumes browser resources. Afterwards, you must not call any other
605
+ * methods on the map.
606
+ */
607
+ remove(): void;
608
+ /**
609
+ * Trigger the rendering of a single frame. Use this method with custom layers to
610
+ * repaint the map when the layer changes. Calling this multiple times before the
611
+ * next frame is rendered will still result in only a single frame being rendered.
612
+ * @example
613
+ * ```ts
614
+ * map.triggerRepaint();
615
+ * ```
616
+ */
617
+ triggerRepaint(): void;
618
+ /**
619
+ * Returns the elevation for the point where the camera is looking.
620
+ * This value corresponds to:
621
+ * "meters above sea level" * "exaggeration"
622
+ * @returns The elevation.
623
+ */
624
+ getCameraTargetElevation(): number;
625
+ }