@nativescript-community/ui-mapbox 6.2.31 → 7.0.0

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 (42) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/common.d.ts +56 -26
  3. package/common.js +44 -28
  4. package/expression/expression-parser.android.d.ts +2 -2
  5. package/expression/expression-parser.android.js +4 -3
  6. package/expression/expression-parser.ios.d.ts +2 -2
  7. package/expression/expression-parser.ios.js +28 -13
  8. package/index.android.d.ts +59 -66
  9. package/index.android.js +1388 -1244
  10. package/index.d.ts +36 -5
  11. package/index.ios.d.ts +72 -243
  12. package/index.ios.js +1161 -1999
  13. package/layers/layer-factory.android.d.ts +7 -5
  14. package/layers/layer-factory.android.js +71 -41
  15. package/layers/layer-factory.d.ts +2 -1
  16. package/layers/layer-factory.ios.d.ts +8 -8
  17. package/layers/layer-factory.ios.js +46 -100
  18. package/layers/parser/property-parser.android.d.ts +3 -1
  19. package/layers/parser/property-parser.android.js +25 -24
  20. package/layers/parser/property-parser.d.ts +1 -1
  21. package/layers/parser/property-parser.ios.d.ts +0 -2
  22. package/layers/parser/property-parser.ios.js +0 -149
  23. package/markers/Marker.android.d.ts +28 -0
  24. package/markers/Marker.android.js +54 -0
  25. package/markers/Marker.common.d.ts +2 -0
  26. package/markers/Marker.common.js +31 -0
  27. package/markers/MarkerManager.android.d.ts +35 -0
  28. package/markers/MarkerManager.android.js +220 -0
  29. package/package.json +7 -6
  30. package/platforms/android/include.gradle +31 -27
  31. package/platforms/android/ui_mapbox.aar +0 -0
  32. package/platforms/ios/Podfile +3 -1
  33. package/platforms/ios/Resources/default_pin.png +0 -0
  34. package/platforms/ios/src/MapboxBridge.swift +1479 -0
  35. package/platforms/ios/src/NativeExpressionParser.swift +33 -0
  36. package/platforms/ios/src/NativeLayerFactory.swift +108 -0
  37. package/tsconfig.tsbuildinfo +1 -0
  38. package/typings/Mapbox.ios.d.ts +2 -3242
  39. package/typings/geojson.android.d.ts +689 -0
  40. package/typings/index.android.d.ts +46 -0
  41. package/typings/mapbox.android.d.ts +39968 -12560
  42. package/typings/mapbox.bridge.ios.d.ts +129 -0
package/index.d.ts CHANGED
@@ -1,5 +1,36 @@
1
1
  import { ImageSource } from '@nativescript/core';
2
- import { AddExtrusionOptions, AddGeoJsonClusteredOptions, AddPolygonOptions, AddPolylineOptions, AddSourceOptions, AnimateCameraOptions, DeleteOfflineRegionOptions, DownloadOfflineRegionOptions, Feature, LatLng, LayerCommon, ListOfflineRegionsOptions, MapboxApi, MapboxCommon, MapboxMarker, MapboxViewBase, MapStyle, OfflineRegion, QueryRenderedFeaturesOptions, QuerySourceFeaturesOptions, SetCenterOptions, SetTiltOptions, SetViewportOptions, SetZoomLevelOptions, ShowOptions, TrackUserOptions, UpdateSourceOptions, UserLocation, UserLocationCameraMode, Viewport } from './common';
2
+ import {
3
+ AddExtrusionOptions,
4
+ AddGeoJsonClusteredOptions,
5
+ AddPolygonOptions,
6
+ AddPolylineOptions,
7
+ AddSourceOptions,
8
+ AnimateCameraOptions,
9
+ DeleteOfflineRegionOptions,
10
+ DownloadOfflineRegionOptions,
11
+ Feature,
12
+ LatLng,
13
+ LayerCommon,
14
+ ListOfflineRegionsOptions,
15
+ MapStyle,
16
+ MapboxApi,
17
+ MapboxCommon,
18
+ MapboxMarker,
19
+ MapboxViewBase,
20
+ OfflineRegion,
21
+ QueryRenderedFeaturesOptions,
22
+ QuerySourceFeaturesOptions,
23
+ SetCenterOptions,
24
+ SetTiltOptions,
25
+ SetViewportOptions,
26
+ SetZoomLevelOptions,
27
+ ShowOptions,
28
+ TrackUserOptions,
29
+ UpdateSourceOptions,
30
+ UserLocation,
31
+ UserLocationCameraMode,
32
+ Viewport
33
+ } from './common';
3
34
 
4
35
  // Export any shared classes, constants, etc.
5
36
  export * from './common';
@@ -13,7 +44,7 @@ export declare class MapboxView extends MapboxViewBase {
13
44
  private initCountHack;
14
45
  setConfig(settings: any): void;
15
46
  getNativeMapView(): any;
16
- createNativeView(): Object;
47
+ createNativeView(): object;
17
48
  onLoaded(): void;
18
49
  initNativeView(): void;
19
50
  disposeNativeView(): Promise<void>;
@@ -58,7 +89,7 @@ export declare class Mapbox extends MapboxCommon implements MapboxApi {
58
89
  _stringToRenderMode(mode: any): any;
59
90
  showUserLocationMarker(options: any, nativeMap?: any): Promise<void>;
60
91
  hideUserLocationMarker(nativeMap?: any): Promise<void>;
61
- changeUserLocationMarkerMode(renderModeString: any, cameraModeString: UserLocationCameraMode, nativeMap?: any): Promise<void>;
92
+ // changeUserLocationMarkerMode(renderModeString: any, cameraModeString: UserLocationCameraMode, nativeMap?: any): Promise<void>;
62
93
  forceUserLocationUpdate(location: any, nativeMap?: any): void;
63
94
  queryRenderedFeatures(options: QueryRenderedFeaturesOptions, nativeMap?: any): Promise<Feature[]>;
64
95
  querySourceFeatures(sourceId: string, options?: QuerySourceFeaturesOptions, nativeMap?: any): Promise<Feature[]>;
@@ -76,7 +107,7 @@ export declare class Mapbox extends MapboxCommon implements MapboxApi {
76
107
  setOnFlingListener(listener: () => void, nativeMap?: any): Promise<void>;
77
108
  setOnCameraMoveListener(listener: (reason: any, animated?: any) => void, nativeMap?: any): Promise<void>;
78
109
  setOnCameraMoveCancelListener(listener: () => void, nativeMap?: any): Promise<void>;
79
- setOnCameraIdleListener(listener: () => void, nativeMap?: any): Promise<void>;
110
+ setOnMapIdleListener(listener: () => void, nativeMap?: any): Promise<void>;
80
111
  getViewport(nativeMap?: any): Promise<Viewport>;
81
112
  setViewport(options: SetViewportOptions, nativeMap?: any): Promise<void>;
82
113
  downloadOfflineRegion(options: DownloadOfflineRegionOptions): Promise<void>;
@@ -97,5 +128,5 @@ export declare class Mapbox extends MapboxCommon implements MapboxApi {
97
128
  x: number;
98
129
  y: number;
99
130
  };
100
- projectBack(screenCoordinate: { x: number, y: number }): LatLng;
131
+ projectBack(screenCoordinate: { x: number; y: number }): LatLng;
101
132
  }
package/index.ios.d.ts CHANGED
@@ -1,283 +1,112 @@
1
- import { ImageSource } from '@nativescript/core';
2
- import { AddExtrusionOptions, AddGeoJsonClusteredOptions, AddPolygonOptions, AddPolylineOptions, AddSourceOptions, AnimateCameraOptions, DeleteOfflineRegionOptions, DownloadOfflineRegionOptions, Feature, LatLng, LayerCommon, ListOfflineRegionsOptions, MapStyle, MapboxApi, MapboxCommon, MapboxMarker, MapboxViewBase, OfflineRegion, QueryRenderedFeaturesOptions, QuerySourceFeaturesOptions, SetCenterOptions, SetTiltOptions, SetViewportOptions, SetZoomLevelOptions, ShowOptions, TrackUserOptions, UpdateSourceOptions, UserLocation, UserLocationCameraMode, Viewport } from './common';
1
+ import { ImageSource, StackLayout } from '@nativescript/core';
2
+ import { AddExtrusionOptions, AddGeoJsonClusteredOptions, AddPolygonOptions, AddPolylineOptions, AddSourceOptions, AnimateCameraOptions, DeleteOfflineRegionOptions, DownloadOfflineRegionOptions, Feature, LatLng, ListOfflineRegionsOptions, MapStyle, MapboxApi, MapboxCommon, MapboxMarker, MapboxViewBase, OfflineRegion, QueryRenderedFeaturesOptions, QuerySourceFeaturesOptions, SetCenterOptions, SetViewportOptions, SetZoomLevelOptions, ShowOptions, TrackUserOptions, UpdateSourceOptions, UserLocation, telemetryProperty } from './common';
3
3
  export * from './common';
4
- export declare function setLogLevel(level: 'none' | 'info' | 'debug' | 'error' | 'fault' | 'verbose'): void;
5
- /**
6
- * Map View Class instantiated from XML
7
- *
8
- * This class is created by the NativeScript XML view parsing
9
- * code.
10
- */
11
4
  export declare class MapboxView extends MapboxViewBase {
5
+ [telemetryProperty.setNative]: (value: boolean) => void;
12
6
  private nativeMapView;
13
- private delegate;
7
+ mapbox: Mapbox;
14
8
  private settings;
15
9
  private initialized;
16
10
  private initCountHack;
17
- /**
18
- * programmatically include settings
19
- */
20
11
  setConfig(settings: any): void;
21
12
  getNativeMapView(): any;
22
- createNativeView(): Object;
23
- /**
24
- * init the native view.
25
- *
26
- * FIXME: It appears that the order of events is different between iOS and Android.
27
- * In the demo under Android, the main-page event handler is called first then the one
28
- * in the plugin. Under iOS it's the reverse.
29
- *
30
- * The symptom is that any properties that reference a binding aren't available
31
- * at the time this method is called. For example {{access_token}}.
32
- *
33
- * I'm sure there is something I do not understand about how this is supposed to work
34
- * and that the handstands below are not necessary.
35
- */
13
+ createNativeView(): object;
36
14
  onLoaded(): void;
37
15
  initNativeView(): void;
38
- /**
39
- * when the view is destroyed.
40
- *
41
- * This is called by the framework when the view is destroyed (made not visible).
42
- *
43
- * However, it does not seem to be called when the page is unloaded.
44
- *
45
- * @link https://docs.nativescript.org/plugins/ui-plugin-custom
46
- */
47
16
  disposeNativeView(): Promise<void>;
48
- /**
49
- * returns a reference to the class Mapbox API shim instance
50
- *
51
- * @see Mapbox
52
- */
53
17
  getMapboxApi(): any;
54
- /**
55
- * initialize the map
56
- *
57
- * @see MGLMapViewDelegateImpl
58
- *
59
- * @todo FIXME: figure out why the accessToken property (which is using a binding in the demo XML) isn't set before we arrive here.
60
- */
61
18
  initMap(): void;
62
19
  onLayout(left: number, top: number, right: number, bottom: number): void;
63
20
  }
64
21
  export declare class Mapbox extends MapboxCommon implements MapboxApi {
65
22
  private _mapboxViewInstance;
23
+ private bridgeInstance;
66
24
  private eventCallbacks;
67
- private userLocationRenderMode;
68
- /**
69
- * set the mapboxViewInstance
70
- *
71
- * @see MapboxView::initMap();
72
- */
73
- setMapboxViewInstance(mapboxViewInstance: any): void;
74
- /**
75
- * event handler shim
76
- *
77
- * Initialize our event handler shim so that we can intercept events here.
78
- *
79
- * @param { MapboxView } mapboxView
80
- */
81
- initEventHandlerShim(settings: any, mapboxNativeViewInstance: any): void;
82
- /**
83
- * register a map event handler
84
- *
85
- * The NativeScript ContentView base class as on() and off() methods.
86
- */
87
- onMapEvent(eventName: any, id: any, callback: any, nativeMapView?: any): void;
88
- offMapEvent(eventName: any, id: any, nativeMapView?: any): void;
89
- /**
90
- * If click events registered and a feature found for the event, then fire listener.
91
- */
25
+ private _markers;
26
+ private _observerTokens;
27
+ _reusableCalloutView: StackLayout;
28
+ private _programmaticMapView;
29
+ setMapboxViewInstance(m: any): void;
30
+ onMapEvent(eventName: string, id: string, callback: any, nativeMapView?: any): void;
31
+ offMapEvent(eventName: string, id: string, nativeMapView?: any): void;
92
32
  private checkForClickEvent;
93
- private _addMarkers;
94
- /**
95
- * create an display the map
96
- *
97
- * @todo FIXME: This method is not called. See MapboxView::initMap().
98
- */
33
+ initEventHandlerShim(settings: any, mapboxNativeViewInstance: any): void;
99
34
  show(options: ShowOptions): Promise<any>;
100
35
  hide(): Promise<void>;
101
36
  unhide(): Promise<void>;
102
37
  destroy(nativeMap?: any): Promise<void>;
103
- onStart(nativeMap?: any): Promise<void>;
104
- onResume(nativeMap?: any): Promise<void>;
105
- onPause(nativeMap?: any): Promise<void>;
106
- onStop(nativeMap?: any): Promise<void>;
107
- onLowMemory(nativeMap?: any): Promise<void>;
108
- onDestroy(nativeMap?: any): Promise<void>;
109
- /**
110
- * explicitly set a map style
111
- */
112
- setMapStyle(style: string | MapStyle, nativeMap?: any): Promise<void>;
113
- getImage(imageId: string, nativeMap?: any): Promise<ImageSource>;
114
38
  addImage(imageId: string, imagePath: string, nativeMap?: any): Promise<void>;
115
39
  removeImage(imageId: string, nativeMap?: any): Promise<void>;
116
40
  addMarkers(markers: MapboxMarker[], nativeMap?: any): Promise<void>;
41
+ selectedMarker: MapboxMarker;
42
+ deselectMarker(marker: MapboxMarker): Promise<void>;
43
+ selectMarker(marker: MapboxMarker): Promise<void>;
117
44
  removeMarkers(ids?: any, nativeMap?: any): Promise<void>;
45
+ updateMarkerPosition(markerId: string, lat: number, lng: number, nativeMap?: any): Promise<void>;
46
+ addPolyline(options: AddPolylineOptions, nativeMap?: any): Promise<void>;
47
+ addLinePoint(id: string, lnglat: any, sourceId?: string, nativeMap?: any): Promise<void>;
48
+ removePolylines(ids?: string[], nativeMap?: any): Promise<void>;
49
+ addPolygon(options: AddPolygonOptions, nativeMap?: any): Promise<void>;
50
+ removePolygons(ids?: string[], nativeMap?: any): Promise<void>;
51
+ addGeoJsonClustered(options: AddGeoJsonClusteredOptions, nativeMap?: any): Promise<void>;
52
+ addExtrusion(options: AddExtrusionOptions, nativeMap?: any): Promise<void>;
118
53
  setCenter(options: SetCenterOptions, nativeMap?: any): Promise<void>;
119
54
  getCenter(nativeMap?: any): Promise<LatLng>;
120
55
  setZoomLevel(options: SetZoomLevelOptions, nativeMap?: any): Promise<void>;
121
56
  getZoomLevel(nativeMap?: any): Promise<number>;
122
- setTilt(options: SetTiltOptions, nativeMap?: any): Promise<void>;
123
- getTilt(nativeMap?: any): Promise<number>;
124
- getUserLocation(nativeMap?: any): Promise<UserLocation>;
125
- /**
126
- * convert string to camera mode constant.
127
- *
128
- * Supported modes on iOS are different than on Android.
129
- *
130
- * @todo come up with a reasonable set of cross platform defaults.
131
- */
132
- _stringToCameraMode(mode: UserLocationCameraMode): any;
133
- _stringToRenderMode(mode: any): any;
134
- _convertCameraMode(mode: MGLUserTrackingMode): UserLocationCameraMode;
135
- /**
136
- * show a user location marker
137
- *
138
- * This method must not be called before location permissions have been granted.
139
- *
140
- * Supported options under iOS are:
141
- *
142
- * - renderMode
143
- * - cameraMode
144
- * - clickListener
145
- *
146
- * Other options are ignored. Compare with the android version that supports a
147
- * different set of options.
148
- *
149
- * @param {object} options
150
- */
151
- showUserLocationMarker(options: any, nativeMap?: any): Promise<void>;
152
- /**
153
- * hide the user location marker
154
- *
155
- * @todo unfinished
156
- */
157
- hideUserLocationMarker(nativeMap?: any): Promise<void>;
158
- /**
159
- * Change the mode of the user location marker
160
- *
161
- * Used to change the camera tracking and render modes of an existing
162
- * marker.
163
- *
164
- * The marker must be configured using showUserLocationMarker before this method
165
- * can called.
166
- */
167
- changeUserLocationMarkerMode(renderModeString: any, cameraModeString: UserLocationCameraMode, nativeMap?: any): Promise<void>;
168
- /**
169
- * ignored on iOS
170
- */
171
- forceUserLocationUpdate(location: any, nativeMap?: any): void;
57
+ setMapStyle(style: string | MapStyle, nativeMap?: any): Promise<void>;
58
+ animateCamera(options: AnimateCameraOptions, nativeMap?: any): Promise<void>;
172
59
  queryRenderedFeatures(options: QueryRenderedFeaturesOptions, nativeMap?: any): Promise<Feature[]>;
173
60
  querySourceFeatures(sourceId: string, options?: QuerySourceFeaturesOptions, nativeMap?: any): Promise<Feature[]>;
174
- /**
175
- * @deprecated
176
- */
177
- addPolygon(options: AddPolygonOptions, nativeMap?: any): Promise<void>;
178
- addPolyline(options: AddPolylineOptions, nativeMap?: any): Promise<void>;
179
- private removePolyById;
180
- private removePolys;
181
- removePolygons(ids?: any[], nativeMap?: any): Promise<void>;
182
- removePolylines(ids?: any[], nativeMap?: any): Promise<void>;
183
- animateCamera(options: AnimateCameraOptions, nativeMap?: any): Promise<void>;
184
- /**
185
- * sets a map level click listener
186
- *
187
- */
188
- setOnMapClickListener(listener: (data: LatLng) => void, nativeMap?: any): Promise<void>;
189
- setOnMapLongClickListener(listener: (data: LatLng) => void, nativeMap?: any): Promise<void>;
190
- setOnScrollListener(listener: (data?: LatLng) => void, nativeMap?: any): Promise<void>;
191
- /**
192
- * simulates onMoveBegin single event callback
193
- *
194
- * This will call the listener provided once per pan akin to the way
195
- * onMoveBegin on the Android side works.
196
- */
197
- setOnMoveBeginListener(listener: (data?: LatLng) => void, nativeMap?: any): Promise<void>;
198
- setOnMoveEndListener(listener: () => void, nativeMap?: any): Promise<void>;
199
- setOnFlingListener(listener: () => void, nativeMap?: any): Promise<void>;
200
- setOnCameraMoveListener(listener: (reason: any, animated?: any) => void, nativeMap?: any): Promise<void>;
201
- setOnCameraMoveCancelListener(listener: () => void, nativeMap?: any): Promise<void>;
202
- setOnCameraIdleListener(listener: () => void, nativeMap?: any): Promise<void>;
203
- getViewport(nativeMap?: any): Promise<Viewport>;
204
- setViewport(options: SetViewportOptions, nativeMap?: any): Promise<void>;
205
- downloadOfflineRegion(options: DownloadOfflineRegionOptions): Promise<void>;
206
- listOfflineRegions(options?: ListOfflineRegionsOptions): Promise<OfflineRegion[]>;
207
- deleteOfflineRegion(options: DeleteOfflineRegionOptions): Promise<void>;
208
- addExtrusion(options: AddExtrusionOptions, nativeMap?: any): Promise<void>;
209
- /**
210
- * update a geojson source
211
- *
212
- */
213
- updateSource(id: string, options: UpdateSourceOptions, nativeMap?: any): Promise<void>;
214
- /**
215
- * add a vector or geojson source
216
- *
217
- * Add a source that can then be referenced in the style specification
218
- * passed to addLayer().
219
- *
220
- * @link https://docs.mapbox.com/mapbox-gl-js/api/#map#addsource
221
- */
222
61
  addSource(id: string, options: AddSourceOptions, nativeMap?: any): Promise<void>;
223
- /**
224
- * remove source by id
225
- */
62
+ updateSource(id: string, options: UpdateSourceOptions, nativeMap?: any): Promise<void>;
226
63
  removeSource(id: string, nativeMap?: any): Promise<void>;
227
- /**
228
- * a rough analogue to the mapbox-gl-js addLayer() method
229
- *
230
- * It would be nice if this {N} API matched the mapbox-gl-js API which
231
- * would make it much easier to share mapping applications between the web
232
- * and {N} apps.
233
- *
234
- * This method accepts a Mapbox-GL-JS style specification JSON object with some
235
- * limitations:
236
- *
237
- * - the source: must be a GeoJSON object.
238
- * - only a subset of paint properties are available.
239
- *
240
- * @param {object} style - a style following the Mapbox style specification.
241
- * @param {any} nativeMapView - native map view (com.mapbox.mapboxsdk.maps.MapView)
242
- *
243
- * @link https://docs.mapbox.com/mapbox-gl-js/style-spec/#layers
244
- */
245
- addLayer(style: any, belowLayerId?: string, nativeMapView?: any): Promise<void>;
246
- /**
247
- * remove layer by ID
248
- *
249
- * Removes a layer given a layer id
250
- *
251
- * @param {string} id
252
- */
253
- removeLayer(id: string, nativeMapViewInstance?: any): Promise<void>;
254
- /**
255
- * @deprecated
256
- * Add a point to a line
257
- *
258
- * This method appends a point to a line and is useful for drawing a users track.
259
- *
260
- * The process for adding a point to a line is different in the iOS sdk than in
261
- * the Android java sdk.
262
- *
263
- * @param {id} id - id of line to add a point to.
264
- * @param {array} lnglat - [lng,lat] to append to the line.
265
- *
266
- * @link https://github.com/mapbox/mapbox-gl-native/issues/13983
267
- * @link https://docs.mapbox.com/ios/maps/examples/runtime-animate-line/
268
- */
269
- addLinePoint(id: string, lnglat: any, sourceId?: string, nativeMapView?: any): Promise<void>;
270
- addGeoJsonClustered(options: AddGeoJsonClusteredOptions, nativeMapViewInstance?: any): Promise<void>;
64
+ addLayer(style: any, belowLayerId?: string, nativeMap?: any): Promise<void>;
65
+ removeLayer(id: string, nativeMap?: any): Promise<void>;
66
+ getLayer(layerId: string, nativeMap?: any): Promise<any | null>;
67
+ getLayers(nativeMap?: any): Promise<any[]>;
68
+ getImage(imageId: string, nativeMap?: any): Promise<ImageSource | null>;
69
+ createCalloutView(marker: MapboxMarker): StackLayout;
70
+ showCalloutForMarkerById(markerId: string): Promise<void>;
71
+ hideCalloutForMarkerById(markerId: string): void;
72
+ toggleCalloutForMarkerById(markerId: string): void;
73
+ onNativeAnnotationTap(userInfo: any): void;
74
+ pushToken: (t: any) => number;
75
+ addNotificationCenterObserver(event: any, map: any, callback: any): void;
76
+ setOnEventChangeListener(event: string, listener: (info: any) => void, nativeMap?: any): Promise<void>;
77
+ setOnCameraChangeListener(listener: (info: any, animated?: any) => void, nativeMap?: any): Promise<void>;
78
+ setOnMapClickListener(listener: (data: LatLng) => void, nativeMap?: any): Promise<void>;
79
+ setOnMapLongClickListener(listener: (data: LatLng) => void, nativeMap?: any): Promise<void>;
80
+ setOnScrollListener(listener: (info: any) => void, nativeMap?: any): Promise<void>;
81
+ setOnMoveBeginListener(listener: (info: any) => void, nativeMap?: any): Promise<void>;
82
+ setOnMoveEndListener(listener: (info: any) => void, nativeMap?: any): Promise<void>;
83
+ setOnFlingListener(listener: (info: any) => void, nativeMap?: any): Promise<void>;
84
+ setOnCameraMoveCancelListener(listener: (info: any) => void, nativeMap?: any): Promise<void>;
85
+ setOnMapIdleListener(listener: () => void, nativeMap?: any): Promise<void>;
86
+ downloadOfflineRegion(options: DownloadOfflineRegionOptions, nativeMap?: any): Promise<void>;
87
+ listOfflineRegions(options?: ListOfflineRegionsOptions, nativeMap?: any): Promise<OfflineRegion[]>;
88
+ deleteOfflineRegion(options: DeleteOfflineRegionOptions, nativeMap?: any): Promise<void>;
89
+ showUserLocationMarker(show: boolean): Promise<void>;
90
+ hideUserLocationMarker(nativeMap?: any): Promise<void>;
91
+ forceUserLocationUpdate(nativeMap?: any): Promise<boolean>;
271
92
  trackUser(options: TrackUserOptions, nativeMap?: any): Promise<void>;
272
- getLayer(name: string, nativeMap?: any): Promise<LayerCommon>;
273
- getLayers(nativeMap?: any): Promise<LayerCommon[]>;
274
- project(data: LatLng): {
275
- x: number;
276
- y: number;
277
- };
93
+ getTilt(nativeMap?: any): Promise<number>;
94
+ setTilt(options: {
95
+ tilt: number;
96
+ animated?: boolean;
97
+ }, nativeMap?: any): Promise<void>;
98
+ getUserLocation(nativeMap?: any): Promise<UserLocation>;
99
+ setViewport(options: SetViewportOptions, nativeMap?: any): Promise<boolean>;
100
+ getViewport(nativeMap?: any): Promise<any>;
101
+ project(data: LatLng, nativeMap?: any): any;
278
102
  projectBack(screenCoordinate: {
279
103
  x: number;
280
104
  y: number;
281
- }): LatLng;
282
- getUserLocationCameraMode(nativeMap?: any): UserLocationCameraMode;
105
+ }, nativeMap?: any): LatLng;
106
+ onStart(nativeMap?: any): Promise<void>;
107
+ onResume(nativeMap?: any): Promise<void>;
108
+ onPause(nativeMap?: any): Promise<void>;
109
+ onStop(nativeMap?: any): Promise<void>;
110
+ onLowMemory(nativeMap?: any): Promise<void>;
111
+ onDestroy(nativeMap?: any): Promise<void>;
283
112
  }