@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.
- package/README.md +27 -6
- package/es/index.d.ts +3 -4
- package/es/index.js +2 -4
- package/es/map/camera.d.ts +690 -0
- package/es/map/camera.js +1138 -0
- package/{lib → es/map}/css/l7.css +41 -7
- package/es/map/events.d.ts +384 -0
- package/es/map/events.js +222 -0
- package/es/map/geo/edge_insets.d.ts +97 -0
- package/es/{geo → map/geo}/edge_insets.js +55 -33
- package/es/map/geo/lng_lat.d.ts +116 -0
- package/es/map/geo/lng_lat.js +159 -0
- package/es/map/geo/lng_lat_bounds.d.ts +217 -0
- package/es/map/geo/lng_lat_bounds.js +334 -0
- package/es/map/geo/mercator_coordinate.d.ts +113 -0
- package/es/map/geo/mercator_coordinate.js +142 -0
- package/es/map/geo/transform.d.ts +262 -0
- package/es/map/geo/transform.js +736 -0
- package/{lib → es/map}/handler/box_zoom.d.ts +30 -24
- package/es/map/handler/box_zoom.js +145 -0
- package/es/map/handler/click_zoom.d.ts +24 -0
- package/es/map/handler/click_zoom.js +47 -0
- package/es/map/handler/cooperative_gestures.d.ts +40 -0
- package/es/map/handler/cooperative_gestures.js +94 -0
- package/es/map/handler/drag_handler.d.ts +88 -0
- package/es/map/handler/drag_handler.js +89 -0
- package/es/map/handler/drag_move_state_manager.d.ts +30 -0
- package/es/map/handler/drag_move_state_manager.js +94 -0
- package/es/map/handler/handler_util.d.ts +3 -0
- package/es/{handler → map/handler}/handler_util.js +1 -2
- package/es/map/handler/keyboard.d.ts +88 -0
- package/es/map/handler/keyboard.js +197 -0
- package/es/map/handler/map_event.d.ts +46 -0
- package/es/map/handler/map_event.js +131 -0
- package/es/map/handler/mouse.d.ts +30 -0
- package/es/map/handler/mouse.js +85 -0
- package/es/map/handler/one_finger_touch_drag.d.ts +15 -0
- package/es/map/handler/one_finger_touch_drag.js +39 -0
- package/es/map/handler/scroll_zoom.d.ts +102 -0
- package/es/map/handler/scroll_zoom.js +312 -0
- package/es/{handler → map/handler}/shim/dblclick_zoom.d.ts +14 -10
- package/es/{handler → map/handler}/shim/dblclick_zoom.js +20 -16
- package/es/map/handler/shim/drag_pan.d.ts +79 -0
- package/es/map/handler/shim/drag_pan.js +77 -0
- package/es/{handler → map/handler}/shim/drag_rotate.d.ts +24 -16
- package/es/map/handler/shim/drag_rotate.js +66 -0
- package/es/map/handler/shim/two_fingers_touch.d.ts +74 -0
- package/es/map/handler/shim/two_fingers_touch.js +106 -0
- package/es/map/handler/tap_drag_zoom.d.ts +28 -0
- package/es/map/handler/tap_drag_zoom.js +92 -0
- package/es/map/handler/tap_recognizer.d.ts +35 -0
- package/es/map/handler/tap_recognizer.js +107 -0
- package/es/map/handler/tap_zoom.d.ts +28 -0
- package/es/map/handler/tap_zoom.js +87 -0
- package/es/map/handler/touch_pan.d.ts +40 -0
- package/es/map/handler/touch_pan.js +85 -0
- package/es/map/handler/transform-provider.d.ts +23 -0
- package/es/map/handler/transform-provider.js +35 -0
- package/es/map/handler/two_fingers_touch.d.ts +107 -0
- package/es/map/handler/two_fingers_touch.js +289 -0
- package/es/map/handler_inertia.d.ts +20 -0
- package/es/{handler → map}/handler_inertia.js +36 -50
- package/es/map/handler_manager.d.ts +154 -0
- package/es/map/handler_manager.js +466 -0
- package/es/map/map.d.ts +625 -0
- package/es/map/map.js +972 -0
- package/es/map/util/abort_error.d.ts +15 -0
- package/es/map/util/abort_error.js +21 -0
- package/es/map/util/browser.d.ts +10 -0
- package/es/map/util/browser.js +30 -0
- package/es/map/util/dom.d.ts +30 -0
- package/es/map/util/dom.js +105 -0
- package/es/map/util/evented.d.ts +75 -0
- package/es/map/util/evented.js +158 -0
- package/es/map/util/task_queue.d.ts +18 -0
- package/es/map/util/task_queue.js +54 -0
- package/es/map/util/util.d.ts +104 -0
- package/es/map/util/util.js +155 -0
- package/lib/index.d.ts +3 -4
- package/lib/index.js +12 -42
- package/lib/map/camera.d.ts +690 -0
- package/lib/map/camera.js +1145 -0
- package/{es → lib/map}/css/l7.css +41 -7
- package/lib/map/events.d.ts +384 -0
- package/lib/map/events.js +231 -0
- package/lib/map/geo/edge_insets.d.ts +97 -0
- package/lib/{geo → map/geo}/edge_insets.js +56 -35
- package/lib/map/geo/lng_lat.d.ts +116 -0
- package/lib/map/geo/lng_lat.js +166 -0
- package/lib/map/geo/lng_lat_bounds.d.ts +217 -0
- package/lib/map/geo/lng_lat_bounds.js +341 -0
- package/lib/map/geo/mercator_coordinate.d.ts +113 -0
- package/lib/map/geo/mercator_coordinate.js +157 -0
- package/lib/map/geo/transform.d.ts +262 -0
- package/lib/map/geo/transform.js +744 -0
- package/{es → lib/map}/handler/box_zoom.d.ts +30 -24
- package/lib/map/handler/box_zoom.js +153 -0
- package/lib/map/handler/click_zoom.d.ts +24 -0
- package/lib/map/handler/click_zoom.js +54 -0
- package/lib/map/handler/cooperative_gestures.d.ts +40 -0
- package/lib/map/handler/cooperative_gestures.js +101 -0
- package/lib/map/handler/drag_handler.d.ts +88 -0
- package/lib/map/handler/drag_handler.js +97 -0
- package/lib/map/handler/drag_move_state_manager.d.ts +30 -0
- package/lib/map/handler/drag_move_state_manager.js +103 -0
- package/lib/map/handler/handler_util.d.ts +3 -0
- package/lib/{handler → map/handler}/handler_util.js +1 -2
- package/lib/map/handler/keyboard.d.ts +88 -0
- package/lib/map/handler/keyboard.js +205 -0
- package/lib/map/handler/map_event.d.ts +46 -0
- package/lib/map/handler/map_event.js +140 -0
- package/lib/map/handler/mouse.d.ts +30 -0
- package/lib/map/handler/mouse.js +93 -0
- package/lib/map/handler/one_finger_touch_drag.d.ts +15 -0
- package/lib/map/handler/one_finger_touch_drag.js +47 -0
- package/lib/map/handler/scroll_zoom.d.ts +102 -0
- package/lib/map/handler/scroll_zoom.js +320 -0
- package/lib/{handler → map/handler}/shim/dblclick_zoom.d.ts +14 -10
- package/lib/{handler → map/handler}/shim/dblclick_zoom.js +21 -17
- package/lib/map/handler/shim/drag_pan.d.ts +79 -0
- package/lib/map/handler/shim/drag_pan.js +85 -0
- package/lib/{handler → map/handler}/shim/drag_rotate.d.ts +24 -16
- package/lib/map/handler/shim/drag_rotate.js +74 -0
- package/lib/map/handler/shim/two_fingers_touch.d.ts +74 -0
- package/lib/map/handler/shim/two_fingers_touch.js +114 -0
- package/lib/map/handler/tap_drag_zoom.d.ts +28 -0
- package/lib/map/handler/tap_drag_zoom.js +99 -0
- package/lib/map/handler/tap_recognizer.d.ts +35 -0
- package/lib/map/handler/tap_recognizer.js +116 -0
- package/lib/map/handler/tap_zoom.d.ts +28 -0
- package/lib/map/handler/tap_zoom.js +94 -0
- package/lib/map/handler/touch_pan.d.ts +40 -0
- package/lib/map/handler/touch_pan.js +92 -0
- package/lib/map/handler/transform-provider.d.ts +23 -0
- package/lib/map/handler/transform-provider.js +43 -0
- package/lib/map/handler/two_fingers_touch.d.ts +107 -0
- package/lib/map/handler/two_fingers_touch.js +296 -0
- package/lib/map/handler_inertia.d.ts +20 -0
- package/lib/{handler → map}/handler_inertia.js +38 -53
- package/lib/map/handler_manager.d.ts +154 -0
- package/lib/map/handler_manager.js +474 -0
- package/lib/map/map.d.ts +625 -0
- package/lib/map/map.js +979 -0
- package/lib/map/util/abort_error.d.ts +15 -0
- package/lib/map/util/abort_error.js +29 -0
- package/lib/map/util/browser.d.ts +10 -0
- package/lib/map/util/browser.js +36 -0
- package/lib/map/util/dom.d.ts +30 -0
- package/lib/map/util/dom.js +113 -0
- package/lib/map/util/evented.d.ts +75 -0
- package/lib/map/util/evented.js +167 -0
- package/lib/map/util/task_queue.d.ts +18 -0
- package/lib/map/util/task_queue.js +62 -0
- package/lib/map/util/util.d.ts +104 -0
- package/lib/map/util/util.js +171 -0
- package/package.json +6 -3
- package/es/camera.d.ts +0 -86
- package/es/camera.js +0 -639
- package/es/earthmap.d.ts +0 -69
- package/es/earthmap.js +0 -445
- package/es/geo/edge_insets.d.ts +0 -54
- package/es/geo/lng_lat.d.ts +0 -18
- package/es/geo/lng_lat.js +0 -59
- package/es/geo/lng_lat_bounds.d.ts +0 -25
- package/es/geo/lng_lat_bounds.js +0 -118
- package/es/geo/mercator.d.ts +0 -30
- package/es/geo/mercator.js +0 -72
- package/es/geo/point.d.ts +0 -40
- package/es/geo/point.js +0 -153
- package/es/geo/simple.d.ts +0 -30
- package/es/geo/simple.js +0 -75
- package/es/geo/transform.d.ts +0 -198
- package/es/geo/transform.js +0 -895
- package/es/handler/IHandler.d.ts +0 -34
- package/es/handler/IHandler.js +0 -1
- package/es/handler/blockable_map_event.d.ts +0 -17
- package/es/handler/blockable_map_event.js +0 -58
- package/es/handler/box_zoom.js +0 -162
- package/es/handler/click_zoom.d.ts +0 -16
- package/es/handler/click_zoom.js +0 -40
- package/es/handler/events/event.d.ts +0 -4
- package/es/handler/events/event.js +0 -12
- package/es/handler/events/index.d.ts +0 -4
- package/es/handler/events/index.js +0 -4
- package/es/handler/events/map_mouse_event.d.ts +0 -34
- package/es/handler/events/map_mouse_event.js +0 -45
- package/es/handler/events/map_touch_event.d.ts +0 -57
- package/es/handler/events/map_touch_event.js +0 -75
- package/es/handler/events/map_wheel_event.d.ts +0 -33
- package/es/handler/events/map_wheel_event.js +0 -33
- package/es/handler/events/render_event.d.ts +0 -6
- package/es/handler/events/render_event.js +0 -10
- package/es/handler/handler_inertia.d.ts +0 -23
- package/es/handler/handler_manager.d.ts +0 -61
- package/es/handler/handler_manager.js +0 -487
- package/es/handler/handler_util.d.ts +0 -4
- package/es/handler/keyboard.d.ts +0 -36
- package/es/handler/keyboard.js +0 -131
- package/es/handler/map_event.d.ts +0 -29
- package/es/handler/map_event.js +0 -89
- package/es/handler/mouse/index.d.ts +0 -4
- package/es/handler/mouse/index.js +0 -4
- package/es/handler/mouse/mouse_handler.d.ts +0 -22
- package/es/handler/mouse/mouse_handler.js +0 -99
- package/es/handler/mouse/mousepan_handler.d.ts +0 -10
- package/es/handler/mouse/mousepan_handler.js +0 -21
- package/es/handler/mouse/mousepitch_hander.d.ts +0 -9
- package/es/handler/mouse/mousepitch_hander.js +0 -24
- package/es/handler/mouse/mouserotate_hander.d.ts +0 -9
- package/es/handler/mouse/mouserotate_hander.js +0 -24
- package/es/handler/mouse/util.d.ts +0 -6
- package/es/handler/mouse/util.js +0 -12
- package/es/handler/scroll_zoom.d.ts +0 -93
- package/es/handler/scroll_zoom.js +0 -315
- package/es/handler/shim/drag_pan.d.ts +0 -61
- package/es/handler/shim/drag_pan.js +0 -75
- package/es/handler/shim/drag_rotate.js +0 -64
- package/es/handler/shim/touch_zoom_rotate.d.ts +0 -70
- package/es/handler/shim/touch_zoom_rotate.js +0 -104
- package/es/handler/tap/single_tap_recognizer.d.ts +0 -20
- package/es/handler/tap/single_tap_recognizer.js +0 -77
- package/es/handler/tap/tap_drag_zoom.d.ts +0 -22
- package/es/handler/tap/tap_drag_zoom.js +0 -89
- package/es/handler/tap/tap_recognizer.d.ts +0 -17
- package/es/handler/tap/tap_recognizer.js +0 -46
- package/es/handler/tap/tap_zoom.d.ts +0 -22
- package/es/handler/tap/tap_zoom.js +0 -81
- package/es/handler/touch/index.d.ts +0 -5
- package/es/handler/touch/index.js +0 -5
- package/es/handler/touch/touch_pan.d.ts +0 -30
- package/es/handler/touch/touch_pan.js +0 -91
- package/es/handler/touch/touch_pitch.d.ts +0 -13
- package/es/handler/touch/touch_pitch.js +0 -75
- package/es/handler/touch/touch_rotate.d.ts +0 -12
- package/es/handler/touch/touch_rotate.js +0 -57
- package/es/handler/touch/touch_zoom.d.ts +0 -12
- package/es/handler/touch/touch_zoom.js +0 -37
- package/es/handler/touch/two_touch.d.ts +0 -23
- package/es/handler/touch/two_touch.js +0 -98
- package/es/hash.d.ts +0 -14
- package/es/hash.js +0 -121
- package/es/interface.d.ts +0 -34
- package/es/interface.js +0 -1
- package/es/map.d.ts +0 -70
- package/es/map.js +0 -472
- package/es/util.d.ts +0 -25
- package/es/util.js +0 -70
- package/es/utils/Aabb.d.ts +0 -12
- package/es/utils/Aabb.js +0 -72
- package/es/utils/dom.d.ts +0 -4
- package/es/utils/dom.js +0 -117
- package/es/utils/performance.d.ts +0 -17
- package/es/utils/performance.js +0 -58
- package/es/utils/primitives.d.ts +0 -6
- package/es/utils/primitives.js +0 -37
- package/es/utils/task_queue.d.ts +0 -13
- package/es/utils/task_queue.js +0 -60
- package/lib/camera.d.ts +0 -86
- package/lib/camera.js +0 -648
- package/lib/earthmap.d.ts +0 -69
- package/lib/earthmap.js +0 -451
- package/lib/geo/edge_insets.d.ts +0 -54
- package/lib/geo/lng_lat.d.ts +0 -18
- package/lib/geo/lng_lat.js +0 -67
- package/lib/geo/lng_lat_bounds.d.ts +0 -25
- package/lib/geo/lng_lat_bounds.js +0 -126
- package/lib/geo/mercator.d.ts +0 -30
- package/lib/geo/mercator.js +0 -88
- package/lib/geo/point.d.ts +0 -40
- package/lib/geo/point.js +0 -161
- package/lib/geo/simple.d.ts +0 -30
- package/lib/geo/simple.js +0 -92
- package/lib/geo/transform.d.ts +0 -198
- package/lib/geo/transform.js +0 -906
- package/lib/handler/IHandler.d.ts +0 -34
- package/lib/handler/IHandler.js +0 -5
- package/lib/handler/blockable_map_event.d.ts +0 -17
- package/lib/handler/blockable_map_event.js +0 -66
- package/lib/handler/box_zoom.js +0 -168
- package/lib/handler/click_zoom.d.ts +0 -16
- package/lib/handler/click_zoom.js +0 -48
- package/lib/handler/events/event.d.ts +0 -4
- package/lib/handler/events/event.js +0 -20
- package/lib/handler/events/index.d.ts +0 -4
- package/lib/handler/events/index.js +0 -27
- package/lib/handler/events/map_mouse_event.d.ts +0 -34
- package/lib/handler/events/map_mouse_event.js +0 -53
- package/lib/handler/events/map_touch_event.d.ts +0 -57
- package/lib/handler/events/map_touch_event.js +0 -83
- package/lib/handler/events/map_wheel_event.d.ts +0 -33
- package/lib/handler/events/map_wheel_event.js +0 -41
- package/lib/handler/events/render_event.d.ts +0 -6
- package/lib/handler/events/render_event.js +0 -18
- package/lib/handler/handler_inertia.d.ts +0 -23
- package/lib/handler/handler_manager.d.ts +0 -61
- package/lib/handler/handler_manager.js +0 -495
- package/lib/handler/handler_util.d.ts +0 -4
- package/lib/handler/keyboard.d.ts +0 -36
- package/lib/handler/keyboard.js +0 -138
- package/lib/handler/map_event.d.ts +0 -29
- package/lib/handler/map_event.js +0 -97
- package/lib/handler/mouse/index.d.ts +0 -4
- package/lib/handler/mouse/index.js +0 -27
- package/lib/handler/mouse/mouse_handler.d.ts +0 -22
- package/lib/handler/mouse/mouse_handler.js +0 -107
- package/lib/handler/mouse/mousepan_handler.d.ts +0 -10
- package/lib/handler/mouse/mousepan_handler.js +0 -29
- package/lib/handler/mouse/mousepitch_hander.d.ts +0 -9
- package/lib/handler/mouse/mousepitch_hander.js +0 -32
- package/lib/handler/mouse/mouserotate_hander.d.ts +0 -9
- package/lib/handler/mouse/mouserotate_hander.js +0 -32
- package/lib/handler/mouse/util.d.ts +0 -6
- package/lib/handler/mouse/util.js +0 -19
- package/lib/handler/scroll_zoom.d.ts +0 -93
- package/lib/handler/scroll_zoom.js +0 -322
- package/lib/handler/shim/drag_pan.d.ts +0 -61
- package/lib/handler/shim/drag_pan.js +0 -83
- package/lib/handler/shim/drag_rotate.js +0 -72
- package/lib/handler/shim/touch_zoom_rotate.d.ts +0 -70
- package/lib/handler/shim/touch_zoom_rotate.js +0 -112
- package/lib/handler/tap/single_tap_recognizer.d.ts +0 -20
- package/lib/handler/tap/single_tap_recognizer.js +0 -86
- package/lib/handler/tap/tap_drag_zoom.d.ts +0 -22
- package/lib/handler/tap/tap_drag_zoom.js +0 -97
- package/lib/handler/tap/tap_recognizer.d.ts +0 -17
- package/lib/handler/tap/tap_recognizer.js +0 -56
- package/lib/handler/tap/tap_zoom.d.ts +0 -22
- package/lib/handler/tap/tap_zoom.js +0 -89
- package/lib/handler/touch/index.d.ts +0 -5
- package/lib/handler/touch/index.js +0 -34
- package/lib/handler/touch/touch_pan.d.ts +0 -30
- package/lib/handler/touch/touch_pan.js +0 -100
- package/lib/handler/touch/touch_pitch.d.ts +0 -13
- package/lib/handler/touch/touch_pitch.js +0 -83
- package/lib/handler/touch/touch_rotate.d.ts +0 -12
- package/lib/handler/touch/touch_rotate.js +0 -65
- package/lib/handler/touch/touch_zoom.d.ts +0 -12
- package/lib/handler/touch/touch_zoom.js +0 -45
- package/lib/handler/touch/two_touch.d.ts +0 -23
- package/lib/handler/touch/two_touch.js +0 -106
- package/lib/hash.d.ts +0 -14
- package/lib/hash.js +0 -129
- package/lib/interface.d.ts +0 -34
- package/lib/interface.js +0 -5
- package/lib/map.d.ts +0 -70
- package/lib/map.js +0 -478
- package/lib/util.d.ts +0 -25
- package/lib/util.js +0 -89
- package/lib/utils/Aabb.d.ts +0 -12
- package/lib/utils/Aabb.js +0 -80
- package/lib/utils/dom.d.ts +0 -4
- package/lib/utils/dom.js +0 -125
- package/lib/utils/performance.d.ts +0 -17
- package/lib/utils/performance.js +0 -64
- package/lib/utils/primitives.d.ts +0 -6
- package/lib/utils/primitives.js +0 -45
- package/lib/utils/task_queue.d.ts +0 -13
- package/lib/utils/task_queue.js +0 -67
package/lib/geo/transform.d.ts
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { mat2, mat4 } from 'gl-matrix';
|
|
2
|
-
import Point from '../geo/point';
|
|
3
|
-
import type { IPaddingOptions } from './edge_insets';
|
|
4
|
-
import LngLat from './lng_lat';
|
|
5
|
-
import LngLatBounds from './lng_lat_bounds';
|
|
6
|
-
import MercatorCoordinate from './mercator';
|
|
7
|
-
export declare const EXTENT = 8192;
|
|
8
|
-
export default class Transform {
|
|
9
|
-
get minZoom(): number;
|
|
10
|
-
set minZoom(zoom: number);
|
|
11
|
-
get maxZoom(): number;
|
|
12
|
-
set maxZoom(zoom: number);
|
|
13
|
-
get minPitch(): number;
|
|
14
|
-
set minPitch(pitch: number);
|
|
15
|
-
get maxPitch(): number;
|
|
16
|
-
set maxPitch(pitch: number);
|
|
17
|
-
get renderWorldCopies(): boolean;
|
|
18
|
-
set renderWorldCopies(renderWorldCopies: boolean);
|
|
19
|
-
get worldSize(): number;
|
|
20
|
-
get centerOffset(): Point;
|
|
21
|
-
get size(): Point;
|
|
22
|
-
get bearing(): number;
|
|
23
|
-
set bearing(bearing: number);
|
|
24
|
-
get pitch(): number;
|
|
25
|
-
set pitch(pitch: number);
|
|
26
|
-
get fov(): number;
|
|
27
|
-
set fov(fov: number);
|
|
28
|
-
get zoom(): number;
|
|
29
|
-
set zoom(zoom: number);
|
|
30
|
-
get center(): LngLat;
|
|
31
|
-
set center(center: LngLat);
|
|
32
|
-
get padding(): IPaddingOptions;
|
|
33
|
-
set padding(padding: IPaddingOptions);
|
|
34
|
-
/**
|
|
35
|
-
* The center of the screen in pixels with the top-left corner being (0,0)
|
|
36
|
-
* and +y axis pointing downwards. This accounts for padding.
|
|
37
|
-
*
|
|
38
|
-
* @readonly
|
|
39
|
-
* @type {Point}
|
|
40
|
-
* @memberof Transform
|
|
41
|
-
*/
|
|
42
|
-
get centerPoint(): Point;
|
|
43
|
-
get point(): Point;
|
|
44
|
-
tileSize: number;
|
|
45
|
-
tileZoom: number;
|
|
46
|
-
lngRange?: [number, number];
|
|
47
|
-
latRange?: [number, number];
|
|
48
|
-
maxValidLatitude: number;
|
|
49
|
-
scale: number;
|
|
50
|
-
width: number;
|
|
51
|
-
height: number;
|
|
52
|
-
angle: number;
|
|
53
|
-
rotationMatrix: mat2;
|
|
54
|
-
pixelsToGLUnits: [number, number];
|
|
55
|
-
cameraToCenterDistance: number;
|
|
56
|
-
mercatorMatrix: mat4;
|
|
57
|
-
projMatrix: mat4;
|
|
58
|
-
invProjMatrix: mat4;
|
|
59
|
-
alignedProjMatrix: mat4;
|
|
60
|
-
pixelMatrix: mat4;
|
|
61
|
-
pixelMatrixInverse: mat4;
|
|
62
|
-
glCoordMatrix: mat4;
|
|
63
|
-
labelPlaneMatrix: mat4;
|
|
64
|
-
private _fov;
|
|
65
|
-
private _pitch;
|
|
66
|
-
private _zoom;
|
|
67
|
-
private _renderWorldCopies;
|
|
68
|
-
private _minZoom;
|
|
69
|
-
private _maxZoom;
|
|
70
|
-
private _minPitch;
|
|
71
|
-
private _maxPitch;
|
|
72
|
-
private _center;
|
|
73
|
-
private zoomFraction;
|
|
74
|
-
private unmodified;
|
|
75
|
-
private edgeInsets;
|
|
76
|
-
private constraining;
|
|
77
|
-
private posMatrixCache;
|
|
78
|
-
private alignedPosMatrixCache;
|
|
79
|
-
constructor(minZoom: number, maxZoom: number, minPitch: number, maxPitch: number, renderWorldCopies: boolean | void);
|
|
80
|
-
clone(): Transform;
|
|
81
|
-
/**
|
|
82
|
-
* Returns if the padding params match
|
|
83
|
-
*
|
|
84
|
-
* @param {IPaddingOptions} padding
|
|
85
|
-
* @returns {boolean}
|
|
86
|
-
* @memberof Transform
|
|
87
|
-
*/
|
|
88
|
-
isPaddingEqual(padding: IPaddingOptions): boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Helper method to upadte edge-insets inplace
|
|
91
|
-
*
|
|
92
|
-
* @param {IPaddingOptions} target
|
|
93
|
-
* @param {number} t
|
|
94
|
-
* @memberof Transform
|
|
95
|
-
*/
|
|
96
|
-
interpolatePadding(start: IPaddingOptions, target: IPaddingOptions, t: number): void;
|
|
97
|
-
/**
|
|
98
|
-
* Return a zoom level that will cover all tiles the transform
|
|
99
|
-
* @param {Object} options options
|
|
100
|
-
* @param {number} options.tileSize Tile size, expressed in screen pixels.
|
|
101
|
-
* @param {boolean} options.roundZoom Target zoom level. If true, the value will be rounded to the closest integer. Otherwise the value will be floored.
|
|
102
|
-
* @returns {number} zoom level An integer zoom level at which all tiles will be visible.
|
|
103
|
-
*/
|
|
104
|
-
coveringZoomLevel(options: {
|
|
105
|
-
roundZoom?: boolean;
|
|
106
|
-
tileSize: number;
|
|
107
|
-
}): number;
|
|
108
|
-
/**
|
|
109
|
-
* Return any "wrapped" copies of a given tile coordinate that are visible
|
|
110
|
-
* in the current view.
|
|
111
|
-
*
|
|
112
|
-
* @private
|
|
113
|
-
*/
|
|
114
|
-
/**
|
|
115
|
-
* Return all coordinates that could cover this transform for a covering
|
|
116
|
-
* zoom level.
|
|
117
|
-
* @param {Object} options
|
|
118
|
-
* @param {number} options.tileSize
|
|
119
|
-
* @param {number} options.minzoom
|
|
120
|
-
* @param {number} options.maxzoom
|
|
121
|
-
* @param {boolean} options.roundZoom
|
|
122
|
-
* @param {boolean} options.reparseOverscaled
|
|
123
|
-
* @param {boolean} options.renderWorldCopies
|
|
124
|
-
* @returns {Array<OverscaledTileID>} OverscaledTileIDs
|
|
125
|
-
* @private
|
|
126
|
-
*/
|
|
127
|
-
resize(width: number, height: number): void;
|
|
128
|
-
zoomScale(zoom: number): number;
|
|
129
|
-
scaleZoom(scale: number): number;
|
|
130
|
-
project(lnglat: LngLat): Point;
|
|
131
|
-
unproject(point: Point): LngLat;
|
|
132
|
-
setLocationAtPoint(lnglat: LngLat, point: Point): void;
|
|
133
|
-
pointCoordinate(p: Point): MercatorCoordinate;
|
|
134
|
-
/**
|
|
135
|
-
* Returns the map's geographical bounds. When the bearing or pitch is non-zero, the visible region is not
|
|
136
|
-
* an axis-aligned rectangle, and the result is the smallest bounds that encompasses the visible region.
|
|
137
|
-
* @returns {LngLatBounds} Returns a {@link LngLatBounds} object describing the map's geographical bounds.
|
|
138
|
-
*/
|
|
139
|
-
getBounds(): LngLatBounds;
|
|
140
|
-
/**
|
|
141
|
-
* Returns the maximum geographical bounds the map is constrained to, or `null` if none set.
|
|
142
|
-
* @returns {LngLatBounds} {@link LngLatBounds}
|
|
143
|
-
*/
|
|
144
|
-
getMaxBounds(): LngLatBounds | null;
|
|
145
|
-
/**
|
|
146
|
-
* Sets or clears the map's geographical constraints.
|
|
147
|
-
* @param {LngLatBounds} bounds A {@link LngLatBounds} object describing the new geographic boundaries of the map.
|
|
148
|
-
*/
|
|
149
|
-
setMaxBounds(bounds?: LngLatBounds): void;
|
|
150
|
-
customLayerMatrix(): number[];
|
|
151
|
-
maxPitchScaleFactor(): number;
|
|
152
|
-
getCameraPoint(): Point;
|
|
153
|
-
getCameraQueryGeometry(queryGeometry: Point[]): Point[];
|
|
154
|
-
/**
|
|
155
|
-
* Given a coordinate, return the screen point that corresponds to it
|
|
156
|
-
* @param {Coordinate} coord
|
|
157
|
-
* @returns {Point} screen point
|
|
158
|
-
* @private
|
|
159
|
-
*/
|
|
160
|
-
coordinatePoint(coord: MercatorCoordinate): Point;
|
|
161
|
-
/**
|
|
162
|
-
* Given a location, return the screen point that corresponds to it
|
|
163
|
-
* @param {LngLat} lnglat location
|
|
164
|
-
* @returns {Point} screen point
|
|
165
|
-
* @private
|
|
166
|
-
*/
|
|
167
|
-
locationPoint(lnglat: LngLat): Point;
|
|
168
|
-
/**
|
|
169
|
-
* Given a point on screen, return its lnglat
|
|
170
|
-
* @param {Point} p screen point
|
|
171
|
-
* @returns {LngLat} lnglat location
|
|
172
|
-
* @private
|
|
173
|
-
*/
|
|
174
|
-
pointLocation(p: Point): LngLat;
|
|
175
|
-
/**
|
|
176
|
-
* Given a geographical lnglat, return an unrounded
|
|
177
|
-
* coordinate that represents it at this transform's zoom level.
|
|
178
|
-
* @param {LngLat} lnglat
|
|
179
|
-
* @returns {Coordinate}
|
|
180
|
-
* @private
|
|
181
|
-
*/
|
|
182
|
-
locationCoordinate(lnglat: LngLat): MercatorCoordinate;
|
|
183
|
-
/**
|
|
184
|
-
* Given a Coordinate, return its geographical position.
|
|
185
|
-
* @param {Coordinate} coord
|
|
186
|
-
* @returns {LngLat} lnglat
|
|
187
|
-
* @private
|
|
188
|
-
*/
|
|
189
|
-
coordinateLocation(coord: MercatorCoordinate): LngLat;
|
|
190
|
-
getProjectionMatrix(): mat4;
|
|
191
|
-
/**
|
|
192
|
-
* Calculate the posMatrix that, given a tile coordinate, would be used to display the tile on a map.
|
|
193
|
-
* @param {UnwrappedTileID} unwrappedTileID;
|
|
194
|
-
* @private
|
|
195
|
-
*/
|
|
196
|
-
private constrain;
|
|
197
|
-
private calcMatrices;
|
|
198
|
-
}
|