@rnmapbox/maps 10.0.0-beta.75 → 10.0.0-beta.76

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 (134) hide show
  1. package/README.md +3 -3
  2. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.kt +5 -5
  3. package/ios/RCTMGL-v10/RCMTGLImage.swift +2 -1
  4. package/ios/RCTMGL-v10/RCTMGLImages.swift +57 -17
  5. package/ios/RCTMGL-v10/RCTMGLMapView.swift +11 -1
  6. package/ios/RCTMGL-v10/RCTMGLUtils.swift +14 -5
  7. package/javascript/MGLModule.ts +54 -0
  8. package/javascript/Mapbox.ts +97 -0
  9. package/javascript/classes/index.d.ts +20 -1
  10. package/javascript/components/Annotation.tsx +141 -0
  11. package/javascript/components/Callout.d.ts +35 -0
  12. package/javascript/components/ImageSource.tsx +1 -1
  13. package/javascript/components/Images.tsx +58 -6
  14. package/javascript/components/MapView.tsx +1 -1
  15. package/javascript/components/MarkerView.tsx +3 -2
  16. package/javascript/components/PointAnnotation.tsx +4 -3
  17. package/javascript/components/ShapeSource.tsx +1 -1
  18. package/javascript/components/{Style.js → Style.tsx} +117 -35
  19. package/javascript/components/Terrain.tsx +8 -7
  20. package/javascript/components/{UserLocation.js → UserLocation.tsx} +105 -94
  21. package/javascript/components/VectorSource.tsx +1 -1
  22. package/javascript/index.ts +4 -0
  23. package/javascript/modules/offline/offlineManager.ts +5 -1
  24. package/javascript/modules/snapshot/snapshotManager.ts +1 -0
  25. package/javascript/types/Position.ts +1 -0
  26. package/javascript/utils/Logger.ts +1 -1
  27. package/javascript/utils/geoUtils.ts +0 -35
  28. package/lib/commonjs/MGLModule.js +37 -0
  29. package/lib/commonjs/MGLModule.js.map +1 -0
  30. package/lib/commonjs/Mapbox.js +372 -0
  31. package/lib/commonjs/Mapbox.js.map +1 -0
  32. package/lib/commonjs/classes/index.d.js +2 -0
  33. package/lib/commonjs/classes/index.d.js.map +1 -1
  34. package/lib/commonjs/components/{annotations/Annotation.js → Annotation.js} +26 -27
  35. package/lib/commonjs/components/Annotation.js.map +1 -0
  36. package/lib/commonjs/components/Callout.d.js +9 -0
  37. package/lib/commonjs/components/Callout.d.js.map +1 -0
  38. package/lib/commonjs/components/Images.js +17 -1
  39. package/lib/commonjs/components/Images.js.map +1 -1
  40. package/lib/commonjs/components/MapView.js.map +1 -1
  41. package/lib/commonjs/components/MarkerView.js.map +1 -1
  42. package/lib/commonjs/components/PointAnnotation.js.map +1 -1
  43. package/lib/commonjs/components/Style.js +11 -15
  44. package/lib/commonjs/components/Style.js.map +1 -1
  45. package/lib/commonjs/components/Terrain.js.map +1 -1
  46. package/lib/commonjs/components/UserLocation.js +26 -77
  47. package/lib/commonjs/components/UserLocation.js.map +1 -1
  48. package/lib/commonjs/index.js +16 -339
  49. package/lib/commonjs/index.js.map +1 -1
  50. package/lib/commonjs/modules/offline/offlineManager.js +6 -0
  51. package/lib/commonjs/modules/offline/offlineManager.js.map +1 -1
  52. package/lib/commonjs/modules/snapshot/snapshotManager.js.map +1 -1
  53. package/lib/commonjs/types/Position.js +2 -0
  54. package/lib/commonjs/types/Position.js.map +1 -0
  55. package/lib/commonjs/utils/animated/Animated.js.map +1 -1
  56. package/lib/commonjs/utils/geoUtils.js +1 -19
  57. package/lib/commonjs/utils/geoUtils.js.map +1 -1
  58. package/lib/module/MGLModule.js +19 -0
  59. package/lib/module/MGLModule.js.map +1 -0
  60. package/lib/module/Mapbox.js +59 -0
  61. package/lib/module/Mapbox.js.map +1 -0
  62. package/lib/module/classes/index.d.js +2 -0
  63. package/lib/module/classes/index.d.js.map +1 -1
  64. package/lib/module/components/{annotations/Annotation.js → Annotation.js} +26 -27
  65. package/lib/module/components/Annotation.js.map +1 -0
  66. package/lib/module/components/Callout.d.js +2 -0
  67. package/lib/module/components/Callout.d.js.map +1 -0
  68. package/lib/module/components/Images.js +17 -1
  69. package/lib/module/components/Images.js.map +1 -1
  70. package/lib/module/components/MapView.js.map +1 -1
  71. package/lib/module/components/MarkerView.js.map +1 -1
  72. package/lib/module/components/PointAnnotation.js.map +1 -1
  73. package/lib/module/components/Style.js +11 -15
  74. package/lib/module/components/Style.js.map +1 -1
  75. package/lib/module/components/Terrain.js.map +1 -1
  76. package/lib/module/components/UserLocation.js +25 -76
  77. package/lib/module/components/UserLocation.js.map +1 -1
  78. package/lib/module/index.js +3 -108
  79. package/lib/module/index.js.map +1 -1
  80. package/lib/module/modules/offline/offlineManager.js +1 -0
  81. package/lib/module/modules/offline/offlineManager.js.map +1 -1
  82. package/lib/module/modules/snapshot/snapshotManager.js.map +1 -1
  83. package/lib/module/types/Position.js +2 -0
  84. package/lib/module/types/Position.js.map +1 -0
  85. package/lib/module/utils/animated/Animated.js.map +1 -1
  86. package/lib/module/utils/geoUtils.js +0 -16
  87. package/lib/module/utils/geoUtils.js.map +1 -1
  88. package/lib/typescript/MGLModule.d.ts +22 -0
  89. package/lib/typescript/MGLModule.d.ts.map +1 -0
  90. package/lib/typescript/Mapbox.d.ts +54 -0
  91. package/lib/typescript/Mapbox.d.ts.map +1 -0
  92. package/lib/typescript/components/Annotation.d.ts +34 -0
  93. package/lib/typescript/components/Annotation.d.ts.map +1 -0
  94. package/lib/typescript/components/ImageSource.d.ts +1 -1
  95. package/lib/typescript/components/ImageSource.d.ts.map +1 -1
  96. package/lib/typescript/components/Images.d.ts +24 -2
  97. package/lib/typescript/components/Images.d.ts.map +1 -1
  98. package/lib/typescript/components/MapView.d.ts +2 -5
  99. package/lib/typescript/components/MapView.d.ts.map +1 -1
  100. package/lib/typescript/components/MarkerView.d.ts +3 -2
  101. package/lib/typescript/components/MarkerView.d.ts.map +1 -1
  102. package/lib/typescript/components/PointAnnotation.d.ts +9 -3
  103. package/lib/typescript/components/PointAnnotation.d.ts.map +1 -1
  104. package/lib/typescript/components/ShapeSource.d.ts +1 -1
  105. package/lib/typescript/components/ShapeSource.d.ts.map +1 -1
  106. package/lib/typescript/components/Style.d.ts +74 -0
  107. package/lib/typescript/components/Style.d.ts.map +1 -0
  108. package/lib/typescript/components/Terrain.d.ts +2 -2
  109. package/lib/typescript/components/Terrain.d.ts.map +1 -1
  110. package/lib/typescript/components/UserLocation.d.ts +102 -0
  111. package/lib/typescript/components/UserLocation.d.ts.map +1 -0
  112. package/lib/typescript/components/VectorSource.d.ts +1 -1
  113. package/lib/typescript/components/VectorSource.d.ts.map +1 -1
  114. package/lib/typescript/index.d.ts +4 -0
  115. package/lib/typescript/index.d.ts.map +1 -0
  116. package/lib/typescript/modules/offline/offlineManager.d.ts +2 -1
  117. package/lib/typescript/modules/offline/offlineManager.d.ts.map +1 -1
  118. package/lib/typescript/modules/snapshot/snapshotManager.d.ts +1 -0
  119. package/lib/typescript/modules/snapshot/snapshotManager.d.ts.map +1 -1
  120. package/lib/typescript/types/Position.d.ts +2 -0
  121. package/lib/typescript/types/Position.d.ts.map +1 -0
  122. package/lib/typescript/utils/Logger.d.ts +1 -1
  123. package/lib/typescript/utils/Logger.d.ts.map +1 -1
  124. package/lib/typescript/utils/animated/Animated.d.ts +23 -0
  125. package/lib/typescript/utils/animated/Animated.d.ts.map +1 -0
  126. package/lib/typescript/utils/geoUtils.d.ts +0 -8
  127. package/lib/typescript/utils/geoUtils.d.ts.map +1 -1
  128. package/package.json +3 -5
  129. package/index.d.ts +0 -516
  130. package/javascript/components/annotations/Annotation.js +0 -122
  131. package/javascript/index.js +0 -162
  132. package/lib/commonjs/components/annotations/Annotation.js.map +0 -1
  133. package/lib/module/components/annotations/Annotation.js.map +0 -1
  134. /package/javascript/utils/animated/{Animated.js → Animated.ts} +0 -0
@@ -1,18 +1,19 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
1
+ import React, { ReactElement } from 'react';
3
2
 
4
3
  import locationManager from '../modules/location/locationManager';
4
+ import { type Location } from '../modules/location/locationManager';
5
+ import { CircleLayerStyle } from '../Mapbox';
5
6
 
6
- import Annotation from './annotations/Annotation';
7
+ import Annotation from './Annotation';
7
8
  import CircleLayer from './CircleLayer';
8
9
  import HeadingIndicator from './HeadingIndicator';
9
10
  import NativeUserLocation from './NativeUserLocation';
10
11
 
11
12
  const mapboxBlue = 'rgba(51, 181, 229, 100)';
12
13
 
13
- const layerStyles = {
14
+ const layerStyles: Record<'normal', Record<string, CircleLayerStyle>> = {
14
15
  normal: {
15
- pluse: {
16
+ pulse: {
16
17
  circleRadius: 15,
17
18
  circleColor: mapboxBlue,
18
19
  circleOpacity: 0.2,
@@ -31,11 +32,14 @@ const layerStyles = {
31
32
  },
32
33
  };
33
34
 
34
- export const normalIcon = (showsUserHeadingIndicator, heading) => [
35
+ const normalIcon = (
36
+ showsUserHeadingIndicator?: boolean,
37
+ heading?: number | null,
38
+ ): ReactElement[] => [
35
39
  <CircleLayer
36
- key="mapboxUserLocationPluseCircle"
37
- id="mapboxUserLocationPluseCircle"
38
- style={layerStyles.normal.pluse}
40
+ key="mapboxUserLocationPulseCircle"
41
+ id="mapboxUserLocationPulseCircle"
42
+ style={layerStyles.normal.pulse}
39
43
  />,
40
44
  <CircleLayer
41
45
  key="mapboxUserLocationWhiteCircle"
@@ -43,93 +47,98 @@ export const normalIcon = (showsUserHeadingIndicator, heading) => [
43
47
  style={layerStyles.normal.background}
44
48
  />,
45
49
  <CircleLayer
46
- key="mapboxUserLocationBlueCicle"
47
- id="mapboxUserLocationBlueCicle"
50
+ key="mapboxUserLocationBlueCircle"
51
+ id="mapboxUserLocationBlueCircle"
48
52
  aboveLayerID="mapboxUserLocationWhiteCircle"
49
53
  style={layerStyles.normal.foreground}
50
54
  />,
51
- ...(showsUserHeadingIndicator && heading !== null
55
+ ...(showsUserHeadingIndicator && typeof heading === 'number'
52
56
  ? [HeadingIndicator({ heading })]
53
57
  : []),
54
58
  ];
55
59
 
56
- class UserLocation extends React.Component {
57
- static propTypes = {
58
- /**
59
- * Whether location icon is animated between updates
60
- */
61
- animated: PropTypes.bool,
62
-
63
- /**
64
- * Which render mode to use.
65
- * Can either be `normal` or `native`
66
- */
67
- renderMode: PropTypes.oneOf(['normal', 'native']),
68
-
69
- /**
70
- * native/android only render mode
71
- *
72
- * - normal: just a circle
73
- * - compass: triangle with heading
74
- * - gps: large arrow
75
- *
76
- * @platform android
77
- */
78
- androidRenderMode: PropTypes.oneOf(['normal', 'compass', 'gps']),
79
-
80
- /**
81
- * Whether location icon is visible
82
- */
83
- visible: PropTypes.bool,
84
-
85
- /**
86
- * Callback that is triggered on location icon press
87
- */
88
- onPress: PropTypes.func,
89
-
90
- /**
91
- * Callback that is triggered on location update
92
- */
93
- onUpdate: PropTypes.func,
94
-
95
- /**
96
- * Show or hide small arrow which indicates direction the device is pointing relative to north.
97
- */
98
- showsUserHeadingIndicator: PropTypes.bool,
99
-
100
- /**
101
- * Request the always location permission, and listen to the location even when the app is in background
102
- *
103
- * @platform ios
104
- */
105
- requestsAlwaysUse: PropTypes.bool,
106
-
107
- /**
108
- * Minimum amount of movement before GPS location is updated in meters
109
- */
110
- minDisplacement: PropTypes.number,
111
-
112
- /**
113
- * Custom location icon of type mapbox-gl-native components
114
- */
115
- children: PropTypes.any,
116
- };
60
+ export enum UserLocationRenderMode {
61
+ Native = 'native',
62
+ Normal = 'normal',
63
+ }
64
+
65
+ type Props = {
66
+ /**
67
+ * native/android only render mode
68
+ *
69
+ * - normal: just a circle
70
+ * - compass: triangle with heading
71
+ * - gps: large arrow
72
+ *
73
+ * @platform android
74
+ */
75
+ androidRenderMode?: 'normal' | 'compass' | 'gps';
76
+
77
+ /**
78
+ * Whether location icon is animated between updates
79
+ */
80
+ animated?: boolean;
81
+
82
+ /**
83
+ * Custom location icon of type mapbox-gl-native components
84
+ */
85
+ children?: ReactElement;
86
+
87
+ /**
88
+ * Minimum amount of movement before GPS location is updated in meters
89
+ */
90
+ minDisplacement?: number;
91
+
92
+ /**
93
+ * Callback that is triggered on location icon press
94
+ */
95
+ onPress?: () => void;
96
+
97
+ /**
98
+ * Callback that is triggered on location update
99
+ */
100
+ onUpdate?: (location: Location) => void;
101
+
102
+ /**
103
+ * Which render mode to use.
104
+ */
105
+ renderMode?: UserLocationRenderMode;
106
+
107
+ /**
108
+ * Request the always location permission, and listen to the location even when the app is in background
109
+ *
110
+ * @platform ios
111
+ */
112
+ requestsAlwaysUse?: boolean;
113
+
114
+ /**
115
+ * Show or hide small arrow which indicates direction the device is pointing relative to north.
116
+ */
117
+ showsUserHeadingIndicator?: boolean;
117
118
 
119
+ /**
120
+ * Whether location icon is visible
121
+ */
122
+ visible?: boolean;
123
+ };
124
+
125
+ type UserLocationState = {
126
+ shouldShowUserLocation: false;
127
+ coordinates: number[] | null;
128
+ heading: number | null;
129
+ };
130
+
131
+ class UserLocation extends React.Component<Props, UserLocationState> {
118
132
  static defaultProps = {
119
133
  animated: true,
120
134
  visible: true,
121
135
  showsUserHeadingIndicator: false,
122
136
  requestsAlwaysUse: false,
123
137
  minDisplacement: 0,
124
- renderMode: 'normal',
125
- };
126
-
127
- static RenderMode = {
128
- Native: 'native',
129
- Normal: 'normal',
138
+ renderMode: UserLocationRenderMode.Normal,
130
139
  };
131
140
 
132
- constructor(props) {
141
+ constructor(props: Props) {
133
142
  super(props);
134
143
 
135
144
  this.state = {
@@ -143,34 +152,36 @@ class UserLocation extends React.Component {
143
152
 
144
153
  // required as #setLocationManager attempts to setState
145
154
  // after component unmount
146
- _isMounted = null;
155
+ _isMounted?: boolean = undefined;
147
156
 
148
- locationManagerRunning = false;
157
+ locationManagerRunning?: boolean = false;
149
158
 
150
159
  async componentDidMount() {
151
160
  this._isMounted = true;
152
161
 
153
- locationManager.setMinDisplacement(this.props.minDisplacement);
162
+ locationManager.setMinDisplacement(this.props.minDisplacement || 0);
154
163
 
155
164
  await this.setLocationManager({
156
165
  running: this.needsLocationManagerRunning(),
157
166
  });
158
167
 
159
- if (this.renderMode === UserLocation.RenderMode.Native) {
168
+ if (this.props.renderMode === UserLocationRenderMode.Native) {
160
169
  return;
161
170
  }
162
171
  }
163
172
 
164
- async componentDidUpdate(prevProps) {
173
+ async componentDidUpdate(prevProps: Props) {
165
174
  await this.setLocationManager({
166
175
  running: this.needsLocationManagerRunning(),
167
176
  });
168
177
 
169
178
  if (this.props.minDisplacement !== prevProps.minDisplacement) {
170
- locationManager.setMinDisplacement(this.props.minDisplacement);
179
+ locationManager.setMinDisplacement(this.props.minDisplacement || 0);
171
180
  }
172
181
  if (this.props.requestsAlwaysUse !== prevProps.requestsAlwaysUse) {
173
- locationManager.setRequestsAlwaysUse(this.props.requestsAlwaysUse);
182
+ locationManager.setRequestsAlwaysUse(
183
+ this.props.requestsAlwaysUse || false,
184
+ );
174
185
  }
175
186
  }
176
187
 
@@ -189,7 +200,7 @@ class UserLocation extends React.Component {
189
200
  * @param {Object} running - Object with key `running` and `boolean` value
190
201
  * @return {Promise<void>}
191
202
  */
192
- async setLocationManager({ running }) {
203
+ async setLocationManager({ running }: { running?: boolean }) {
193
204
  if (this.locationManagerRunning !== running) {
194
205
  this.locationManagerRunning = running;
195
206
  if (running) {
@@ -211,12 +222,12 @@ class UserLocation extends React.Component {
211
222
  needsLocationManagerRunning() {
212
223
  return (
213
224
  !!this.props.onUpdate ||
214
- (this.props.renderMode === UserLocation.RenderMode.Normal &&
225
+ (this.props.renderMode === UserLocationRenderMode.Normal &&
215
226
  this.props.visible)
216
227
  );
217
228
  }
218
229
 
219
- _onLocationUpdate(location) {
230
+ _onLocationUpdate(location: Location | null) {
220
231
  if (!this._isMounted || !location) {
221
232
  return;
222
233
  }
@@ -231,7 +242,7 @@ class UserLocation extends React.Component {
231
242
 
232
243
  this.setState({
233
244
  coordinates,
234
- heading,
245
+ heading: heading ?? null,
235
246
  });
236
247
 
237
248
  if (this.props.onUpdate) {
@@ -242,7 +253,7 @@ class UserLocation extends React.Component {
242
253
  _renderNative() {
243
254
  const { androidRenderMode, showsUserHeadingIndicator } = this.props;
244
255
 
245
- let props = {
256
+ const props = {
246
257
  androidRenderMode,
247
258
  iosShowsUserHeadingIndicator: showsUserHeadingIndicator,
248
259
  };
@@ -258,7 +269,7 @@ class UserLocation extends React.Component {
258
269
  return null;
259
270
  }
260
271
 
261
- if (this.props.renderMode === UserLocation.RenderMode.Native) {
272
+ if (this.props.renderMode === UserLocationRenderMode.Native) {
262
273
  return this._renderNative();
263
274
  }
264
275
 
@@ -268,8 +279,8 @@ class UserLocation extends React.Component {
268
279
 
269
280
  return (
270
281
  <Annotation
271
- animated={animated}
272
282
  id="mapboxUserLocation"
283
+ animated={animated}
273
284
  onPress={onPress}
274
285
  coordinates={coordinates}
275
286
  style={{
@@ -85,7 +85,7 @@ interface Props {
85
85
  height: number;
86
86
  };
87
87
 
88
- children: React.ReactElement | React.ReactElement[];
88
+ children?: React.ReactElement | React.ReactElement[];
89
89
  }
90
90
 
91
91
  //interface NativeProps extends Omit<Props, 'children'> {}
@@ -0,0 +1,4 @@
1
+ export * from './Mapbox';
2
+ import * as Mapbox from './Mapbox';
3
+
4
+ export default Mapbox;
@@ -6,8 +6,12 @@ import {
6
6
 
7
7
  import { isUndefined, isFunction, isAndroid } from '../../utils';
8
8
 
9
+ export {
10
+ default as OfflineCreatePackOptions,
11
+ type OfflineCreatePackOptionsArgs,
12
+ } from './OfflineCreatePackOptions';
9
13
  import OfflineCreatePackOptions, {
10
- OfflineCreatePackOptionsArgs,
14
+ type OfflineCreatePackOptionsArgs,
11
15
  } from './OfflineCreatePackOptions';
12
16
  import OfflinePack from './OfflinePack';
13
17
 
@@ -1,5 +1,6 @@
1
1
  import { NativeModules } from 'react-native';
2
2
 
3
+ export type { default as SnapshotOptions } from './SnapshotOptions';
3
4
  import SnapshotOptions from './SnapshotOptions';
4
5
 
5
6
  const MapboxGLSnapshotManger = NativeModules.MGLSnapshotModule;
@@ -0,0 +1 @@
1
+ export type Position = [number, number] | number[];
@@ -5,7 +5,7 @@ import {
5
5
  } from 'react-native';
6
6
  const { MGLLogging } = NativeModules;
7
7
 
8
- type LogLevel = 'error' | 'warning' | 'info' | 'debug' | 'verbose';
8
+ export type LogLevel = 'error' | 'warning' | 'info' | 'debug' | 'verbose';
9
9
 
10
10
  export interface LogObject {
11
11
  level: LogLevel;
@@ -14,9 +14,6 @@ import {
14
14
  } from '@turf/helpers';
15
15
  import distance from '@turf/distance';
16
16
  import along from '@turf/along';
17
- import geoViewport from '@mapbox/geo-viewport';
18
-
19
- const VECTOR_TILE_SIZE = 512;
20
17
 
21
18
  export const makePoint = point;
22
19
 
@@ -57,35 +54,3 @@ export function addToFeatureCollection(
57
54
  export const calculateDistance = distance;
58
55
 
59
56
  export const pointAlongLine = along;
60
-
61
- export function getOrCalculateVisibleRegion(
62
- coord: [number, number],
63
- zoomLevel: number,
64
- width: number,
65
- height: number,
66
- nativeRegion: {
67
- properties: {
68
- visibleBounds: number[][];
69
- };
70
- },
71
- ) {
72
- const region = {
73
- ne: [0, 0],
74
- sw: [0, 0],
75
- };
76
-
77
- if (!nativeRegion || !Array.isArray(nativeRegion.properties.visibleBounds)) {
78
- const bounds = geoViewport.bounds(
79
- coord,
80
- zoomLevel,
81
- [width, height],
82
- VECTOR_TILE_SIZE,
83
- );
84
- region.ne = [bounds[3], bounds[2]];
85
- region.sw = [bounds[1], bounds[0]];
86
- } else {
87
- [region.ne, region.sw] = nativeRegion.properties.visibleBounds;
88
- }
89
-
90
- return region;
91
- }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.setWellKnownTileServer = exports.setTelemetryEnabled = exports.setConnected = exports.setAccessToken = exports.removeCustomHeader = exports.getAccessToken = exports.addCustomHeader = exports.TileServers = exports.StyleURL = exports.StyleSource = exports.OfflinePackDownloadState = exports.LineJoin = void 0;
7
+ var _reactNative = require("react-native");
8
+ const MGLModule = {
9
+ ..._reactNative.NativeModules.MGLModule
10
+ };
11
+ const {
12
+ StyleURL,
13
+ OfflinePackDownloadState,
14
+ LineJoin,
15
+ StyleSource,
16
+ TileServers,
17
+ removeCustomHeader,
18
+ addCustomHeader,
19
+ setAccessToken,
20
+ setWellKnownTileServer,
21
+ getAccessToken,
22
+ setTelemetryEnabled,
23
+ setConnected
24
+ } = MGLModule;
25
+ exports.setConnected = setConnected;
26
+ exports.setTelemetryEnabled = setTelemetryEnabled;
27
+ exports.getAccessToken = getAccessToken;
28
+ exports.setWellKnownTileServer = setWellKnownTileServer;
29
+ exports.setAccessToken = setAccessToken;
30
+ exports.addCustomHeader = addCustomHeader;
31
+ exports.removeCustomHeader = removeCustomHeader;
32
+ exports.TileServers = TileServers;
33
+ exports.StyleSource = StyleSource;
34
+ exports.LineJoin = LineJoin;
35
+ exports.OfflinePackDownloadState = OfflinePackDownloadState;
36
+ exports.StyleURL = StyleURL;
37
+ //# sourceMappingURL=MGLModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","MGLModule","NativeModules","StyleURL","OfflinePackDownloadState","LineJoin","StyleSource","TileServers","removeCustomHeader","addCustomHeader","setAccessToken","setWellKnownTileServer","getAccessToken","setTelemetryEnabled","setConnected","exports"],"sourceRoot":"../../javascript","sources":["MGLModule.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAsCA,MAAMC,SAAoB,GAAG;EAAE,GAAGC,0BAAa,CAACD;AAAU,CAAC;AAEpD,MAAM;EACXE,QAAQ;EACRC,wBAAwB;EACxBC,QAAQ;EACRC,WAAW;EACXC,WAAW;EACXC,kBAAkB;EAClBC,eAAe;EACfC,cAAc;EACdC,sBAAsB;EACtBC,cAAc;EACdC,mBAAmB;EACnBC;AACF,CAAC,GAAGb,SAAS;AAACc,OAAA,CAAAD,YAAA,GAAAA,YAAA;AAAAC,OAAA,CAAAF,mBAAA,GAAAA,mBAAA;AAAAE,OAAA,CAAAH,cAAA,GAAAA,cAAA;AAAAG,OAAA,CAAAJ,sBAAA,GAAAA,sBAAA;AAAAI,OAAA,CAAAL,cAAA,GAAAA,cAAA;AAAAK,OAAA,CAAAN,eAAA,GAAAA,eAAA;AAAAM,OAAA,CAAAP,kBAAA,GAAAA,kBAAA;AAAAO,OAAA,CAAAR,WAAA,GAAAA,WAAA;AAAAQ,OAAA,CAAAT,WAAA,GAAAA,WAAA;AAAAS,OAAA,CAAAV,QAAA,GAAAA,QAAA;AAAAU,OAAA,CAAAX,wBAAA,GAAAA,wBAAA;AAAAW,OAAA,CAAAZ,QAAA,GAAAA,QAAA"}