@rnmapbox/maps 10.0.4 → 10.0.5-rc.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.
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +31 -6
- package/lib/typescript/components/Annotation.d.ts +1 -1
- package/lib/typescript/components/Atmosphere.d.ts +1 -1
- package/lib/typescript/components/Atmosphere.d.ts.map +1 -1
- package/lib/typescript/components/BackgroundLayer.d.ts +1 -1
- package/lib/typescript/components/Callout.d.ts +1 -1
- package/lib/typescript/components/CircleLayer.d.ts +1 -1
- package/lib/typescript/components/FillExtrusionLayer.d.ts +1 -1
- package/lib/typescript/components/FillLayer.d.ts +1 -1
- package/lib/typescript/components/HeadingIndicator.d.ts +2 -2
- package/lib/typescript/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HeatmapLayer.d.ts +1 -1
- package/lib/typescript/components/ImageSource.d.ts +1 -1
- package/lib/typescript/components/Images.d.ts +1 -1
- package/lib/typescript/components/LineLayer.d.ts +2 -2
- package/lib/typescript/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/components/MapView.d.ts +1 -1
- package/lib/typescript/components/MarkerView.d.ts +1 -1
- package/lib/typescript/components/NativeUserLocation.d.ts +1 -1
- package/lib/typescript/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/components/PointAnnotation.d.ts +1 -1
- package/lib/typescript/components/RasterDemSource.d.ts +1 -1
- package/lib/typescript/components/RasterLayer.d.ts +1 -1
- package/lib/typescript/components/RasterSource.d.ts +1 -1
- package/lib/typescript/components/ShapeSource.d.ts +1 -1
- package/lib/typescript/components/SkyLayer.d.ts +1 -1
- package/lib/typescript/components/Style.d.ts +2 -2
- package/lib/typescript/components/Style.d.ts.map +1 -1
- package/lib/typescript/components/SymbolLayer.d.ts +2 -2
- package/lib/typescript/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/components/Terrain.d.ts +1 -1
- package/lib/typescript/components/Terrain.d.ts.map +1 -1
- package/lib/typescript/components/UserLocation.d.ts +2 -2
- package/lib/typescript/components/VectorSource.d.ts +1 -1
- package/lib/typescript/web/components/Camera.d.ts +1 -1
- package/lib/typescript/web/components/MapView.d.ts +1 -1
- package/package.json +1 -1
package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt
CHANGED
|
@@ -15,9 +15,7 @@ import androidx.lifecycle.LifecycleOwner
|
|
|
15
15
|
import androidx.lifecycle.LifecycleRegistry
|
|
16
16
|
import androidx.lifecycle.ViewTreeLifecycleOwner
|
|
17
17
|
import com.facebook.react.bridge.*
|
|
18
|
-
import com.mapbox.android.gestures
|
|
19
|
-
import com.mapbox.android.gestures.RotateGestureDetector
|
|
20
|
-
import com.mapbox.android.gestures.StandardScaleGestureDetector
|
|
18
|
+
import com.mapbox.android.gestures.*
|
|
21
19
|
import com.mapbox.geojson.Feature
|
|
22
20
|
import com.mapbox.geojson.FeatureCollection
|
|
23
21
|
import com.mapbox.geojson.Point
|
|
@@ -82,7 +80,7 @@ data class OrnamentSettings(
|
|
|
82
80
|
)
|
|
83
81
|
|
|
84
82
|
enum class MapGestureType {
|
|
85
|
-
Move,Scale,Rotate
|
|
83
|
+
Move,Scale,Rotate,Fling,Shove
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
/***
|
|
@@ -186,6 +184,9 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
|
|
|
186
184
|
var tintColor: Int? = null
|
|
187
185
|
private set
|
|
188
186
|
|
|
187
|
+
private var wasGestureActive = false
|
|
188
|
+
private var isGestureActive = false
|
|
189
|
+
|
|
189
190
|
val mapView: MapView
|
|
190
191
|
get() = this.mMapView
|
|
191
192
|
|
|
@@ -294,6 +295,26 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
|
|
|
294
295
|
gesturesPlugin.addOnMapLongClickListener(_this)
|
|
295
296
|
gesturesPlugin.addOnMapClickListener(_this)
|
|
296
297
|
|
|
298
|
+
gesturesPlugin.addOnFlingListener(object: OnFlingListener {
|
|
299
|
+
override fun onFling() {
|
|
300
|
+
mapGesture(MapGestureType.Fling, true)
|
|
301
|
+
}
|
|
302
|
+
})
|
|
303
|
+
|
|
304
|
+
gesturesPlugin.addOnShoveListener(object: OnShoveListener {
|
|
305
|
+
override fun onShove(detector: ShoveGestureDetector) {
|
|
306
|
+
mapGesture(MapGestureType.Shove, detector)
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
override fun onShoveBegin(detector: ShoveGestureDetector) {
|
|
310
|
+
mapGestureBegin(MapGestureType.Shove, detector)
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
override fun onShoveEnd(detector: ShoveGestureDetector) {
|
|
314
|
+
mapGestureEnd(MapGestureType.Shove, detector)
|
|
315
|
+
}
|
|
316
|
+
})
|
|
317
|
+
|
|
297
318
|
gesturesPlugin.addOnScaleListener(object: OnScaleListener{
|
|
298
319
|
override fun onScale(detector: StandardScaleGestureDetector) {
|
|
299
320
|
mapGesture(MapGestureType.Scale, detector)
|
|
@@ -336,6 +357,7 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
|
|
|
336
357
|
}
|
|
337
358
|
|
|
338
359
|
fun<T> mapGestureBegin(type:MapGestureType, gesture: T) {
|
|
360
|
+
isGestureActive = true
|
|
339
361
|
mCameraChangeTracker.setReason(CameraChangeReason.USER_GESTURE)
|
|
340
362
|
handleMapChangedEvent(EventTypes.REGION_WILL_CHANGE)
|
|
341
363
|
}
|
|
@@ -344,7 +366,9 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
|
|
|
344
366
|
handleMapChangedEvent(EventTypes.REGION_IS_CHANGING)
|
|
345
367
|
return false
|
|
346
368
|
}
|
|
347
|
-
fun<T> mapGestureEnd(type: MapGestureType, gesture: T) {
|
|
369
|
+
fun<T> mapGestureEnd(type: MapGestureType, gesture: T) {
|
|
370
|
+
isGestureActive = false
|
|
371
|
+
}
|
|
348
372
|
|
|
349
373
|
fun init() {
|
|
350
374
|
// Required for rendering properly in Android Oreo
|
|
@@ -744,6 +768,7 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
|
|
|
744
768
|
}
|
|
745
769
|
|
|
746
770
|
private fun handleMapChangedEvent(eventType: String) {
|
|
771
|
+
this.wasGestureActive = isGestureActive
|
|
747
772
|
if (!canHandleEvent(eventType)) return
|
|
748
773
|
|
|
749
774
|
val event: IEvent
|
|
@@ -783,7 +808,7 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
|
|
|
783
808
|
Logger.e(LOG_TAG, "An error occurred while attempting to make the region", ex)
|
|
784
809
|
}
|
|
785
810
|
val gestures = WritableNativeMap()
|
|
786
|
-
gestures.putBoolean("isGestureActive", mCameraChangeTracker.isUserInteraction)
|
|
811
|
+
gestures.putBoolean("isGestureActive", wasGestureActive/*mCameraChangeTracker.isUserInteraction*/)
|
|
787
812
|
// gestures.putBoolean("isAnimatingFromGesture", if (null == isAnimated) mCameraChangeTracker.isAnimated else isAnimated)
|
|
788
813
|
|
|
789
814
|
val state: WritableMap = WritableNativeMap()
|
|
@@ -28,7 +28,7 @@ declare class Annotation extends React.Component<Props, AnnotationState> {
|
|
|
28
28
|
onPress(event: OnPressEvent): void;
|
|
29
29
|
_getShapeFromProps(props?: Partial<Props>): Point;
|
|
30
30
|
get symbolStyle(): SymbolLayerStyle | undefined;
|
|
31
|
-
render(): JSX.Element | null;
|
|
31
|
+
render(): React.JSX.Element | null;
|
|
32
32
|
}
|
|
33
33
|
export default Annotation;
|
|
34
34
|
//# sourceMappingURL=Annotation.d.ts.map
|
|
@@ -5,6 +5,6 @@ export declare const NATIVE_MODULE_NAME = "RCTMGLAtmosphere";
|
|
|
5
5
|
declare type Props = BaseProps & {
|
|
6
6
|
style: AtmosphereLayerStyleProps;
|
|
7
7
|
};
|
|
8
|
-
export declare const Atmosphere: React.MemoExoticComponent<(props: Props) => JSX.Element>;
|
|
8
|
+
export declare const Atmosphere: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=Atmosphere.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Atmosphere.d.ts","sourceRoot":"","sources":["../../../src/components/Atmosphere.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,aAAK,KAAK,GAAG,SAAS,GAAG;IACvB,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,UAAU,oCAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"Atmosphere.d.ts","sourceRoot":"","sources":["../../../src/components/Atmosphere.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,aAAK,KAAK,GAAG,SAAS,GAAG;IACvB,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,UAAU,oCAAgB,KAAK,uBAU1C,CAAC"}
|
|
@@ -60,7 +60,7 @@ declare class BackgroundLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
|
60
60
|
static defaultProps: {
|
|
61
61
|
sourceID: any;
|
|
62
62
|
};
|
|
63
|
-
render(): JSX.Element;
|
|
63
|
+
render(): React.JSX.Element;
|
|
64
64
|
}
|
|
65
65
|
export default BackgroundLayer;
|
|
66
66
|
//# sourceMappingURL=BackgroundLayer.d.ts.map
|
|
@@ -35,7 +35,7 @@ declare class Callout extends React.PureComponent<Props> {
|
|
|
35
35
|
get _hasChildren(): boolean;
|
|
36
36
|
_renderDefaultCallout(): ReactNode;
|
|
37
37
|
_renderCustomCallout(): ReactNode;
|
|
38
|
-
render(): JSX.Element;
|
|
38
|
+
render(): React.JSX.Element;
|
|
39
39
|
}
|
|
40
40
|
export default Callout;
|
|
41
41
|
//# sourceMappingURL=Callout.d.ts.map
|
|
@@ -64,7 +64,7 @@ declare class CircleLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
|
64
64
|
static defaultProps: {
|
|
65
65
|
sourceID: any;
|
|
66
66
|
};
|
|
67
|
-
render(): JSX.Element;
|
|
67
|
+
render(): React.JSX.Element;
|
|
68
68
|
}
|
|
69
69
|
export default CircleLayer;
|
|
70
70
|
//# sourceMappingURL=CircleLayer.d.ts.map
|
|
@@ -63,7 +63,7 @@ declare class FillExtrusionLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
|
63
63
|
static defaultProps: {
|
|
64
64
|
sourceID: any;
|
|
65
65
|
};
|
|
66
|
-
render(): JSX.Element;
|
|
66
|
+
render(): React.JSX.Element;
|
|
67
67
|
}
|
|
68
68
|
export default FillExtrusionLayer;
|
|
69
69
|
//# sourceMappingURL=FillExtrusionLayer.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { BaseProps } from '../types/BaseProps';
|
|
3
3
|
declare type Props = BaseProps & {
|
|
4
4
|
heading?: number;
|
|
5
5
|
};
|
|
6
|
-
declare const HeadingIndicator: ({ heading }: Props) => JSX.Element;
|
|
6
|
+
declare const HeadingIndicator: ({ heading }: Props) => React.JSX.Element;
|
|
7
7
|
export default HeadingIndicator;
|
|
8
8
|
//# sourceMappingURL=HeadingIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/HeadingIndicator.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"HeadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/HeadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAY/C,aAAK,KAAK,GAAG,SAAS,GAAG;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,gBAAgB,gBAAiB,KAAK,sBAmB3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -64,7 +64,7 @@ declare class HeatmapLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
|
64
64
|
static defaultProps: {
|
|
65
65
|
sourceID: any;
|
|
66
66
|
};
|
|
67
|
-
render(): JSX.Element;
|
|
67
|
+
render(): React.JSX.Element;
|
|
68
68
|
}
|
|
69
69
|
export default HeatmapLayer;
|
|
70
70
|
//# sourceMappingURL=HeatmapLayer.d.ts.map
|
|
@@ -30,7 +30,7 @@ declare type NativeProps = Props;
|
|
|
30
30
|
*/
|
|
31
31
|
declare class ImageSource extends AbstractSource<Props, NativeProps> {
|
|
32
32
|
_getURL(): string | undefined;
|
|
33
|
-
render(): JSX.Element | null;
|
|
33
|
+
render(): React.JSX.Element | null;
|
|
34
34
|
}
|
|
35
35
|
export default ImageSource;
|
|
36
36
|
//# sourceMappingURL=ImageSource.d.ts.map
|
|
@@ -75,7 +75,7 @@ declare class Images extends React.PureComponent<Props> {
|
|
|
75
75
|
nativeImages: NativeImage[];
|
|
76
76
|
};
|
|
77
77
|
_onImageMissing(event: React.SyntheticEvent<Element, RNMBEvent>): void;
|
|
78
|
-
render(): JSX.Element;
|
|
78
|
+
render(): React.JSX.Element;
|
|
79
79
|
}
|
|
80
80
|
export default Images;
|
|
81
81
|
//# sourceMappingURL=Images.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FilterExpression, LineLayerStyleProps } from '../utils/MapboxStyles';
|
|
3
3
|
import { StyleValue } from '../utils/StyleValue';
|
|
4
4
|
import AbstractLayer from './AbstractLayer';
|
|
@@ -63,7 +63,7 @@ declare class LineLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
|
63
63
|
static defaultProps: {
|
|
64
64
|
sourceID: any;
|
|
65
65
|
};
|
|
66
|
-
render(): JSX.Element;
|
|
66
|
+
render(): React.JSX.Element;
|
|
67
67
|
}
|
|
68
68
|
export default LineLayer;
|
|
69
69
|
//# sourceMappingURL=LineLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineLayer.d.ts","sourceRoot":"","sources":["../../../src/components/LineLayer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LineLayer.d.ts","sourceRoot":"","sources":["../../../src/components/LineLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAEF,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;GAEG;AACH,cAAM,SAAU,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IAC3D,MAAM,CAAC,YAAY;;MAEjB;IAEF,MAAM;CAOP;AAKD,eAAe,SAAS,CAAC"}
|
|
@@ -482,7 +482,7 @@ declare class MapView extends MapView_base {
|
|
|
482
482
|
setNativeProps(props: NativeProps): void;
|
|
483
483
|
_setStyleURL(props: Props): void;
|
|
484
484
|
_setLocalizeLabels(props: Props): void;
|
|
485
|
-
render(): JSX.Element;
|
|
485
|
+
render(): React.JSX.Element;
|
|
486
486
|
}
|
|
487
487
|
declare type NativeProps = Omit<Props, 'onPress' | 'onLongPress'> & {
|
|
488
488
|
onPress(event: NativeSyntheticEvent<{
|
|
@@ -47,7 +47,7 @@ declare class MarkerView extends React.PureComponent<Props> {
|
|
|
47
47
|
__idForPointAnnotation?: string;
|
|
48
48
|
_idForPointAnnotation(): string;
|
|
49
49
|
_getCoordinate(coordinate: Position): string | undefined;
|
|
50
|
-
render(): JSX.Element;
|
|
50
|
+
render(): React.JSX.Element;
|
|
51
51
|
}
|
|
52
52
|
export default MarkerView;
|
|
53
53
|
//# sourceMappingURL=MarkerView.d.ts.map
|
|
@@ -17,6 +17,6 @@ export declare type Props = {
|
|
|
17
17
|
*/
|
|
18
18
|
iosShowsUserHeadingIndicator?: boolean;
|
|
19
19
|
};
|
|
20
|
-
declare const NativeUserLocation: React.MemoExoticComponent<(props: Props) => JSX.Element>;
|
|
20
|
+
declare const NativeUserLocation: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
|
|
21
21
|
export default NativeUserLocation;
|
|
22
22
|
//# sourceMappingURL=NativeUserLocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../src/components/NativeUserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAKpC,oBAAY,KAAK,GAAG;IAClB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IAEjD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAOF,QAAA,MAAM,kBAAkB,oCAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../src/components/NativeUserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAKpC,oBAAY,KAAK,GAAG;IAClB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IAEjD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAOF,QAAA,MAAM,kBAAkB,oCAAgB,KAAK,uBAE3C,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -155,7 +155,7 @@ declare class PointAnnotation extends PointAnnotation_base {
|
|
|
155
155
|
*/
|
|
156
156
|
refresh(): void;
|
|
157
157
|
_setNativeRef(nativeRef: NativePointAnnotationRef | null): void;
|
|
158
|
-
render(): JSX.Element;
|
|
158
|
+
render(): React.JSX.Element;
|
|
159
159
|
}
|
|
160
160
|
declare type NativeProps = Omit<Props, 'coordinate'> & {
|
|
161
161
|
coordinate: string | undefined;
|
|
@@ -44,7 +44,7 @@ declare class RasterDemSource extends AbstractSource<Props, NativeProps> {
|
|
|
44
44
|
id: any;
|
|
45
45
|
};
|
|
46
46
|
constructor(props: Props);
|
|
47
|
-
render(): JSX.Element;
|
|
47
|
+
render(): React.JSX.Element;
|
|
48
48
|
}
|
|
49
49
|
export default RasterDemSource;
|
|
50
50
|
//# sourceMappingURL=RasterDemSource.d.ts.map
|
|
@@ -60,7 +60,7 @@ declare class RasterLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
|
60
60
|
static defaultProps: {
|
|
61
61
|
sourceID: any;
|
|
62
62
|
};
|
|
63
|
-
render(): JSX.Element;
|
|
63
|
+
render(): React.JSX.Element;
|
|
64
64
|
}
|
|
65
65
|
export default RasterLayer;
|
|
66
66
|
//# sourceMappingURL=RasterLayer.d.ts.map
|
|
@@ -57,7 +57,7 @@ declare type NativeProps = Props;
|
|
|
57
57
|
declare class RasterSource extends AbstractSource<Props, NativeProps> {
|
|
58
58
|
static defaultProps: Props;
|
|
59
59
|
constructor(props: Props);
|
|
60
|
-
render(): JSX.Element;
|
|
60
|
+
render(): React.JSX.Element;
|
|
61
61
|
}
|
|
62
62
|
export default RasterSource;
|
|
63
63
|
//# sourceMappingURL=RasterSource.d.ts.map
|
|
@@ -206,7 +206,7 @@ export declare class ShapeSource extends ShapeSource_base {
|
|
|
206
206
|
onPress(event: NativeSyntheticEvent<{
|
|
207
207
|
payload: OnPressEvent;
|
|
208
208
|
}>): void;
|
|
209
|
-
render(): JSX.Element;
|
|
209
|
+
render(): React.JSX.Element;
|
|
210
210
|
}
|
|
211
211
|
declare type NativeProps = {
|
|
212
212
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FilterExpression } from '../utils/MapboxStyles';
|
|
3
3
|
declare type MapboxJSONLayer = {
|
|
4
4
|
type: string;
|
|
@@ -69,6 +69,6 @@ declare type Props = {
|
|
|
69
69
|
* Only [`sources`](https://docs.mapbox.com/mapbox-gl-js/style-spec/sources) & [`layers`](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/) are supported.
|
|
70
70
|
* Other fields such as `sprites`, `glyphs` etc. will be ignored. Not all layer / source attributes from the style spec are supported, in general the supported attributes will be mentioned under https://github.com/rnmapbox/maps/tree/main/docs.
|
|
71
71
|
*/
|
|
72
|
-
declare const Style: (props: Props) => JSX.Element;
|
|
72
|
+
declare const Style: (props: Props) => React.JSX.Element;
|
|
73
73
|
export default Style;
|
|
74
74
|
//# sourceMappingURL=Style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../../../src/components/Style.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../../../src/components/Style.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAsOzD,aAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACjC,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE;QACZ;YAAC,MAAM;YAAE,MAAM;SAAC;QAChB;YAAC,MAAM;YAAE,MAAM;SAAC;QAChB;YAAC,MAAM;YAAE,MAAM;SAAC;QAChB;YAAC,MAAM;YAAE,MAAM;SAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,aAAK,UAAU,GAAG;IAChB,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAC;CAC/C,CAAC;AAEF,aAAK,KAAK,GAAG;IACX;;OAEG;IACH,IAAI,EAAE,UAAU,GAAG,GAAG,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,KAAK,UAAW,KAAK,sBAwD1B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Expression, type SymbolLayerStyleProps } from '../utils/MapboxStyles';
|
|
3
3
|
import { type StyleValue } from '../utils/StyleValue';
|
|
4
4
|
import AbstractLayer from './AbstractLayer';
|
|
@@ -70,7 +70,7 @@ export declare class SymbolLayer extends AbstractLayer<Props, NativeTypeProps> {
|
|
|
70
70
|
snapshot: boolean;
|
|
71
71
|
};
|
|
72
72
|
_shouldSnapshot(): boolean;
|
|
73
|
-
render(): JSX.Element;
|
|
73
|
+
render(): React.JSX.Element;
|
|
74
74
|
}
|
|
75
75
|
export {};
|
|
76
76
|
//# sourceMappingURL=SymbolLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../src/components/SymbolLayer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../src/components/SymbolLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AAEtD,oBAAY,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxC,CAAC;AAEF,aAAK,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC5C,CAAC;AAKF;;GAEG;AACH,qBAAa,WAAY,SAAQ,aAAa,CAAC,KAAK,EAAE,eAAe,CAAC;IACpE,MAAM,CAAC,YAAY;;MAEjB;IACF,iBAAiB,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAuB;IAE/D,eAAe;IAsBf,MAAM;CAaP"}
|
|
@@ -16,6 +16,6 @@ declare type Props = BaseProps & {
|
|
|
16
16
|
*/
|
|
17
17
|
style?: TerrainLayerStyleProps;
|
|
18
18
|
};
|
|
19
|
-
export declare const Terrain: React.MemoExoticComponent<(props: Props) => JSX.Element>;
|
|
19
|
+
export declare const Terrain: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=Terrain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Terrain.d.ts","sourceRoot":"","sources":["../../../src/components/Terrain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,aAAK,KAAK,GAAG,SAAS,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvC;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAMF,eAAO,MAAM,OAAO,oCAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"Terrain.d.ts","sourceRoot":"","sources":["../../../src/components/Terrain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAG7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,aAAK,KAAK,GAAG,SAAS,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvC;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAMF,eAAO,MAAM,OAAO,oCAAgB,KAAK,uBAmBvC,CAAC"}
|
|
@@ -95,8 +95,8 @@ declare class UserLocation extends React.Component<Props, UserLocationState> {
|
|
|
95
95
|
*/
|
|
96
96
|
needsLocationManagerRunning(): boolean | undefined;
|
|
97
97
|
_onLocationUpdate(location: Location | null): void;
|
|
98
|
-
_renderNative(): JSX.Element;
|
|
99
|
-
render(): JSX.Element | null;
|
|
98
|
+
_renderNative(): React.JSX.Element;
|
|
99
|
+
render(): React.JSX.Element | null;
|
|
100
100
|
}
|
|
101
101
|
export default UserLocation;
|
|
102
102
|
//# sourceMappingURL=UserLocation.d.ts.map
|
|
@@ -142,7 +142,7 @@ declare class VectorSource extends VectorSource_base {
|
|
|
142
142
|
onPress(event: NativeSyntheticEvent<{
|
|
143
143
|
payload: OnPressEvent;
|
|
144
144
|
}>): void;
|
|
145
|
-
render(): JSX.Element;
|
|
145
|
+
render(): React.JSX.Element;
|
|
146
146
|
}
|
|
147
147
|
export default VectorSource;
|
|
148
148
|
//# sourceMappingURL=VectorSource.d.ts.map
|
|
@@ -11,7 +11,7 @@ declare class Camera extends React.Component<{
|
|
|
11
11
|
static UserTrackingModes: never[];
|
|
12
12
|
componentDidMount(): void;
|
|
13
13
|
fitBounds(northEastCoordinates: [number, number], southWestCoordinates: [number, number], padding?: number, animationDuration?: number): void;
|
|
14
|
-
render(): JSX.Element;
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
15
|
}
|
|
16
16
|
export { Camera };
|
|
17
17
|
export default Camera;
|
|
@@ -14,7 +14,7 @@ declare class MapView extends React.Component<{
|
|
|
14
14
|
mapContainer: HTMLElement | null;
|
|
15
15
|
map: object | null;
|
|
16
16
|
componentDidMount(): void;
|
|
17
|
-
render(): JSX.Element;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export default MapView;
|
|
20
20
|
//# sourceMappingURL=MapView.d.ts.map
|