@maplibre/maplibre-react-native 10.0.0-alpha.7 → 10.0.0-alpha.9
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/CHANGELOG.md +9 -0
- package/README.md +1 -1
- package/android/build.gradle +1 -1
- package/android/rctmln/build.gradle +5 -5
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/MarkerView.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/MarkerViewManager.java +6 -6
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNMarkerView.java +5 -5
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNPointAnnotation.java +9 -8
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/CameraStop.java +14 -12
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/CameraUpdateItem.java +10 -10
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/CameraUpdateQueue.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCamera.java +26 -26
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCameraManager.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/images/RCTMLNImages.java +12 -12
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/location/LocationComponentManager.java +9 -9
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/location/RCTMLNNativeUserLocation.java +7 -7
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/location/RCTMLNNativeUserLocationManager.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/LayerSourceInfo.java +9 -9
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapView.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNAndroidTextureMapViewManager.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNMapView.java +43 -43
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNMapViewManager.java +6 -6
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyle.java +3 -3
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFactory.java +14 -14
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFunctionParser.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleValue.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTLayer.java +8 -8
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNBackgroundLayer.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNCircleLayer.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillExtrusionLayer.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNFillLayer.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNHeatmapLayer.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNLineLayer.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNRasterLayer.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/layers/RCTMLNSymbolLayer.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/light/RCTMLNLight.java +6 -6
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNImageSource.java +3 -3
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNImageSourceManager.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNRasterSource.java +3 -3
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNShapeSource.java +9 -9
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNShapeSourceManager.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNTileSource.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTMLNVectorSource.java +4 -4
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/sources/RCTSource.java +7 -7
- package/android/rctmln/src/main/java/com/maplibre/rctmln/events/FeatureClickEvent.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/events/MapClickEvent.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/events/PointAnnotationClickEvent.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/events/PointAnnotationDragEvent.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/location/LocationManager.java +6 -6
- package/android/rctmln/src/main/java/com/maplibre/rctmln/location/UserLocation.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/location/UserTrackingMode.java +3 -3
- package/android/rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLocationModule.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNLogging.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNModule.java +8 -8
- package/android/rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNOfflineModule.java +11 -11
- package/android/rctmln/src/main/java/com/maplibre/rctmln/modules/RCTMLNSnapshotModule.java +7 -7
- package/android/rctmln/src/main/java/com/maplibre/rctmln/utils/ClusterPropertyEntry.java +1 -1
- package/android/rctmln/src/main/java/com/maplibre/rctmln/utils/DownloadMapImageTask.java +5 -5
- package/android/rctmln/src/main/java/com/maplibre/rctmln/utils/ExpressionParser.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/utils/GeoJSONUtils.java +13 -13
- package/android/rctmln/src/main/java/com/maplibre/rctmln/utils/GeoViewport.java +3 -3
- package/android/rctmln/src/main/java/com/maplibre/rctmln/utils/SimpleEventCallback.java +2 -2
- package/android/rctmln/src/main/java/com/maplibre/rctmln/utils/SphericalMercator.java +1 -1
- package/docs/Camera.md +1 -1
- package/docs/MapView.md +9 -9
- package/docs/MarkerView.md +1 -1
- package/docs/NativeUserLocation.md +1 -1
- package/docs/PointAnnotation.md +2 -2
- package/docs/UserLocation.md +2 -2
- package/docs/docs.json +12 -12
- package/javascript/@types/assets.d.ts +1 -1
- package/javascript/MLNModule.ts +2 -2
- package/javascript/Maplibre.ts +37 -42
- package/javascript/components/BackgroundLayer.tsx +9 -9
- package/javascript/components/Callout.tsx +19 -19
- package/javascript/components/Camera.tsx +29 -29
- package/javascript/components/CircleLayer.tsx +9 -9
- package/javascript/components/FillExtrusionLayer.tsx +9 -9
- package/javascript/components/FillLayer.tsx +9 -9
- package/javascript/components/HeadingIndicator.tsx +7 -8
- package/javascript/components/HeatmapLayer.tsx +10 -10
- package/javascript/components/ImageSource.tsx +8 -8
- package/javascript/components/Images.tsx +19 -20
- package/javascript/components/Light.tsx +15 -15
- package/javascript/components/LineLayer.tsx +9 -9
- package/javascript/components/MapView.tsx +74 -70
- package/javascript/components/MarkerView.tsx +9 -10
- package/javascript/components/NativeUserLocation.tsx +4 -4
- package/javascript/components/PointAnnotation.tsx +17 -17
- package/javascript/components/RasterLayer.tsx +9 -9
- package/javascript/components/RasterSource.tsx +10 -10
- package/javascript/components/ShapeSource.tsx +63 -61
- package/javascript/components/Style.tsx +69 -59
- package/javascript/components/SymbolLayer.tsx +10 -10
- package/javascript/components/UserLocation.tsx +23 -23
- package/javascript/components/VectorSource.tsx +19 -19
- package/javascript/components/annotations/Annotation.tsx +16 -15
- package/javascript/hooks/useAbstractLayer.ts +15 -12
- package/javascript/hooks/useAbstractSource.ts +2 -2
- package/javascript/hooks/useNativeBridge.ts +7 -7
- package/javascript/hooks/useNativeRef.ts +2 -2
- package/javascript/hooks/useOnce.ts +1 -1
- package/javascript/index.ts +2 -2
- package/javascript/modules/location/locationManager.ts +4 -4
- package/javascript/modules/offline/OfflineCreatePackOptions.ts +5 -5
- package/javascript/modules/offline/OfflinePack.ts +3 -3
- package/javascript/modules/offline/offlineManager.ts +11 -12
- package/javascript/modules/snapshot/SnapshotOptions.ts +4 -4
- package/javascript/modules/snapshot/snapshotManager.ts +2 -2
- package/javascript/requestAndroidLocationPermissions.ts +3 -3
- package/javascript/types/OnPressEvent.ts +1 -1
- package/javascript/types/index.ts +6 -2
- package/javascript/utils/BridgeValue.ts +20 -20
- package/javascript/utils/Logger.ts +14 -14
- package/javascript/utils/MaplibreStyles.d.ts +359 -359
- package/javascript/utils/StyleValue.ts +12 -12
- package/javascript/utils/animated/AbstractAnimatedCoordinates.ts +6 -6
- package/javascript/utils/animated/Animated.ts +38 -16
- package/javascript/utils/animated/AnimatedCoordinatesArray.ts +7 -11
- package/javascript/utils/animated/AnimatedExtractCoordinateFromArray.ts +3 -3
- package/javascript/utils/animated/AnimatedPoint.ts +7 -7
- package/javascript/utils/animated/AnimatedRouteCoordinatesArray.ts +16 -20
- package/javascript/utils/animated/AnimatedShape.ts +15 -15
- package/javascript/utils/deprecation.ts +6 -3
- package/javascript/utils/filterUtils.ts +1 -1
- package/javascript/utils/geoUtils.ts +8 -8
- package/javascript/utils/index.ts +14 -14
- package/javascript/utils/styleMap.ts +18 -18
- package/package.json +28 -15
- package/plugin/build/withMapLibre.d.ts +2 -2
- package/plugin/build/withMapLibre.js +24 -24
- package/scripts/autogenerate.js +1 -1
- package/scripts/templates/RCTMLNStyleFactory.java.ejs +14 -14
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -169
- package/.prettierrc.js +0 -7
- package/.yarn/sdks/eslint/bin/eslint.js +0 -27
- package/.yarn/sdks/eslint/lib/api.js +0 -27
- package/.yarn/sdks/eslint/lib/unsupported-api.js +0 -27
- package/.yarn/sdks/eslint/package.json +0 -14
- package/.yarn/sdks/integrations.yml +0 -5
- package/.yarn/sdks/prettier/bin/prettier.cjs +0 -27
- package/.yarn/sdks/prettier/index.cjs +0 -27
- package/.yarn/sdks/prettier/package.json +0 -7
- package/.yarn/sdks/typescript/bin/tsc +0 -27
- package/.yarn/sdks/typescript/bin/tsserver +0 -27
- package/.yarn/sdks/typescript/lib/tsc.js +0 -27
- package/.yarn/sdks/typescript/lib/tsserver.js +0 -239
- package/.yarn/sdks/typescript/lib/tsserverlibrary.js +0 -239
- package/.yarn/sdks/typescript/lib/typescript.js +0 -27
- package/.yarn/sdks/typescript/package.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,8 +3,17 @@
|
|
|
3
3
|
```
|
|
4
4
|
Please add unreleased changes in the following style:
|
|
5
5
|
PR Title ([#123](link to my pr))
|
|
6
|
+
|
|
6
7
|
```
|
|
7
8
|
|
|
9
|
+
## 10.0.0-alpha.9
|
|
10
|
+
|
|
11
|
+
fix: [fix: yarn, eslint and prettier implementation #419](https://github.com/maplibre/maplibre-react-native/pull/419)
|
|
12
|
+
fix: [typescript errors and add typescript:check to Github CI (#418)](https://github.com/maplibre/maplibre-react-native/pull/418)
|
|
13
|
+
|
|
14
|
+
## 10.0.0-alpha.8
|
|
15
|
+
feat: [Updated Android SDK from 10.2.0 to 11.0.1 #412](https://github.com/maplibre/maplibre-react-native/pull/412)
|
|
16
|
+
|
|
8
17
|
## 10.0.0-alpha.7
|
|
9
18
|
|
|
10
19
|
feat: [Migrate MapView to react function component (#408)](https://github.com/maplibre/maplibre-react-native/pull/408)
|
package/README.md
CHANGED
|
@@ -83,4 +83,4 @@ set up your local dev environment.
|
|
|
83
83
|
|
|
84
84
|
## Community
|
|
85
85
|
|
|
86
|
-
Join the #maplibre-native Slack
|
|
86
|
+
Join the #maplibre-react-native or #maplibre Slack channels at OSMUS: get an invite at https://slack.openstreetmap.us/
|
package/android/build.gradle
CHANGED
|
@@ -33,8 +33,8 @@ dependencies {
|
|
|
33
33
|
implementation("com.facebook.react:react-android")
|
|
34
34
|
|
|
35
35
|
// MapLibre SDK
|
|
36
|
-
implementation "org.maplibre.gl:android-sdk:
|
|
37
|
-
implementation "org.maplibre.gl:android-sdk-turf:
|
|
36
|
+
implementation "org.maplibre.gl:android-sdk:11.0.1"
|
|
37
|
+
implementation "org.maplibre.gl:android-sdk-turf:6.0.1"
|
|
38
38
|
|
|
39
39
|
// Dependencies
|
|
40
40
|
implementation "androidx.vectordrawable:vectordrawable:1.1.0"
|
|
@@ -45,9 +45,9 @@ dependencies {
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
// MapLibre plugins
|
|
48
|
-
implementation ("org.maplibre.gl:android-plugin-localization-v9:
|
|
49
|
-
implementation ("org.maplibre.gl:android-plugin-annotation-v9:
|
|
50
|
-
implementation ("org.maplibre.gl:android-plugin-markerview-v9:
|
|
48
|
+
implementation ("org.maplibre.gl:android-plugin-localization-v9:3.0.0")
|
|
49
|
+
implementation ("org.maplibre.gl:android-plugin-annotation-v9:3.0.0")
|
|
50
|
+
implementation ("org.maplibre.gl:android-plugin-markerview-v9:3.0.0")
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
allprojects {
|
package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/MarkerView.java
CHANGED
|
@@ -4,12 +4,12 @@ import android.view.View;
|
|
|
4
4
|
|
|
5
5
|
import androidx.annotation.NonNull;
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import org.maplibre.android.geometry.LatLng;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Subclass of MarkerView so we MarkerViewManager can implement remove/restoreViews
|
|
11
11
|
*/
|
|
12
|
-
public class MarkerView extends
|
|
12
|
+
public class MarkerView extends org.maplibre.android.plugins.markerview.MarkerView {
|
|
13
13
|
View view;
|
|
14
14
|
|
|
15
15
|
public MarkerView(@NonNull LatLng latLng, @NonNull View view) {
|
|
@@ -2,8 +2,8 @@ package com.maplibre.rctmln.components.annotation;
|
|
|
2
2
|
|
|
3
3
|
import androidx.annotation.NonNull;
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import org.maplibre.android.maps.MapView;
|
|
6
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
7
7
|
|
|
8
8
|
import java.util.ArrayList;
|
|
9
9
|
import java.util.List;
|
|
@@ -13,15 +13,15 @@ import java.lang.reflect.InvocationTargetException;
|
|
|
13
13
|
/**
|
|
14
14
|
* Subclass of MarkerViewManager implementing removeViews and restoreViews
|
|
15
15
|
*/
|
|
16
|
-
public class MarkerViewManager extends
|
|
16
|
+
public class MarkerViewManager extends org.maplibre.android.plugins.markerview.MarkerViewManager {
|
|
17
17
|
private final List<MarkerView> markers = new ArrayList<>();
|
|
18
18
|
private MapView mapView;
|
|
19
19
|
private java.lang.reflect.Method markerUpdate;
|
|
20
20
|
|
|
21
|
-
public MarkerViewManager(MapView mapView,
|
|
22
|
-
super(mapView,
|
|
21
|
+
public MarkerViewManager(MapView mapView, MapLibreMap map) {
|
|
22
|
+
super(mapView, map);
|
|
23
23
|
this.mapView = mapView;
|
|
24
|
-
// this.
|
|
24
|
+
// this.map = map;
|
|
25
25
|
|
|
26
26
|
try {
|
|
27
27
|
markerUpdate = MarkerView.class.getSuperclass().getDeclaredMethod("update");
|
package/android/rctmln/src/main/java/com/maplibre/rctmln/components/annotation/RCTMLNMarkerView.java
CHANGED
|
@@ -6,9 +6,9 @@ import android.view.View;
|
|
|
6
6
|
|
|
7
7
|
import androidx.annotation.NonNull;
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import org.maplibre.geojson.Point;
|
|
10
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
11
|
+
import org.maplibre.android.maps.OnMapReadyCallback;
|
|
12
12
|
import com.maplibre.rctmln.components.AbstractMapFeature;
|
|
13
13
|
import com.maplibre.rctmln.components.mapview.RCTMLNMapView;
|
|
14
14
|
import com.maplibre.rctmln.utils.GeoJSONUtils;
|
|
@@ -65,8 +65,8 @@ public class RCTMLNMarkerView extends AbstractMapFeature implements MarkerView.O
|
|
|
65
65
|
mMapView.getMapAsync(
|
|
66
66
|
new OnMapReadyCallback() {
|
|
67
67
|
@Override
|
|
68
|
-
public void onMapReady(@NonNull
|
|
69
|
-
mMarkerViewManager = mMapView.getMarkerViewManager(
|
|
68
|
+
public void onMapReady(@NonNull MapLibreMap mapLibreMap) {
|
|
69
|
+
mMarkerViewManager = mMapView.getMarkerViewManager(mapLibreMap);
|
|
70
70
|
|
|
71
71
|
if (mChildView != null) {
|
|
72
72
|
mMarkerView = new MarkerView(GeoJSONUtils.toLatLng(mCoordinate), mChildView);
|
|
@@ -6,13 +6,14 @@ import android.graphics.Bitmap;
|
|
|
6
6
|
import android.view.View;
|
|
7
7
|
import androidx.annotation.NonNull;
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
9
|
+
import org.maplibre.geojson.Point;
|
|
10
|
+
import org.maplibre.android.geometry.LatLng;
|
|
11
|
+
import org.maplibre.android.maps.Style;
|
|
12
|
+
import org.maplibre.android.plugins.annotation.Symbol;
|
|
13
|
+
import org.maplibre.android.plugins.annotation.SymbolManager;
|
|
14
|
+
import org.maplibre.android.plugins.annotation.SymbolOptions;
|
|
15
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
16
|
+
|
|
16
17
|
import com.maplibre.rctmln.components.AbstractMapFeature;
|
|
17
18
|
import com.maplibre.rctmln.components.mapview.RCTMLNMapView;
|
|
18
19
|
import com.maplibre.rctmln.events.PointAnnotationClickEvent;
|
|
@@ -25,7 +26,7 @@ public class RCTMLNPointAnnotation extends AbstractMapFeature implements View.On
|
|
|
25
26
|
private Context mContext;
|
|
26
27
|
private RCTMLNPointAnnotationManager mManager;
|
|
27
28
|
private Symbol mAnnotation;
|
|
28
|
-
private
|
|
29
|
+
private MapLibreMap mMap;
|
|
29
30
|
private RCTMLNMapView mMapView;
|
|
30
31
|
|
|
31
32
|
private boolean mHasChildren;
|
|
@@ -5,19 +5,21 @@ import androidx.annotation.NonNull;
|
|
|
5
5
|
import android.util.DisplayMetrics;
|
|
6
6
|
|
|
7
7
|
import com.facebook.react.bridge.ReadableMap;
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
8
|
+
import org.maplibre.geojson.FeatureCollection;
|
|
9
|
+
import org.maplibre.geojson.Point;
|
|
10
|
+
import org.maplibre.android.camera.CameraPosition;
|
|
11
|
+
import org.maplibre.android.camera.CameraUpdate;
|
|
12
|
+
import org.maplibre.android.camera.CameraUpdateFactory;
|
|
13
|
+
import org.maplibre.android.geometry.LatLng;
|
|
14
|
+
import org.maplibre.android.geometry.LatLngBounds;
|
|
15
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
16
16
|
import com.maplibre.rctmln.components.camera.constants.CameraMode;
|
|
17
17
|
import com.maplibre.rctmln.utils.GeoJSONUtils;
|
|
18
18
|
|
|
19
19
|
import com.maplibre.rctmln.components.mapview.RCTMLNMapView;
|
|
20
20
|
|
|
21
|
+
|
|
22
|
+
|
|
21
23
|
/**
|
|
22
24
|
* Created by nickitaliano on 9/5/17.
|
|
23
25
|
*/
|
|
@@ -36,7 +38,7 @@ public class CameraStop {
|
|
|
36
38
|
|
|
37
39
|
private int mMode = CameraMode.EASE;
|
|
38
40
|
private int mDuration = 2000;
|
|
39
|
-
private
|
|
41
|
+
private MapLibreMap.CancelableCallback mCallback;
|
|
40
42
|
|
|
41
43
|
public CameraStop() {
|
|
42
44
|
}
|
|
@@ -61,7 +63,7 @@ public class CameraStop {
|
|
|
61
63
|
mDuration = duration;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
public void setCallback(
|
|
66
|
+
public void setCallback(MapLibreMap.CancelableCallback callback) {
|
|
65
67
|
mCallback = callback;
|
|
66
68
|
}
|
|
67
69
|
|
|
@@ -81,7 +83,7 @@ public class CameraStop {
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
public CameraUpdateItem toCameraUpdate(RCTMLNMapView mapView) {
|
|
84
|
-
|
|
86
|
+
MapLibreMap map = mapView.getMapboxMap();
|
|
85
87
|
CameraPosition currentCamera = map.getCameraPosition();
|
|
86
88
|
CameraPosition.Builder builder = new CameraPosition.Builder(currentCamera);
|
|
87
89
|
|
|
@@ -144,7 +146,7 @@ public class CameraStop {
|
|
|
144
146
|
return new CameraUpdateItem(map, CameraUpdateFactory.newCameraPosition(builder.build()), mDuration, mCallback, mMode);
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
public static CameraStop fromReadableMap(Context context, @NonNull ReadableMap readableMap,
|
|
149
|
+
public static CameraStop fromReadableMap(Context context, @NonNull ReadableMap readableMap, MapLibreMap.CancelableCallback callback) {
|
|
148
150
|
CameraStop stop = new CameraStop();
|
|
149
151
|
|
|
150
152
|
if (readableMap.hasKey("pitch")) {
|
package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/CameraUpdateItem.java
CHANGED
|
@@ -2,9 +2,9 @@ package com.maplibre.rctmln.components.camera;
|
|
|
2
2
|
|
|
3
3
|
import androidx.annotation.NonNull;
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import org.maplibre.android.camera.CameraUpdate;
|
|
6
|
+
import org.maplibre.android.constants.MapLibreConstants;
|
|
7
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
8
8
|
import com.maplibre.rctmln.components.camera.constants.CameraMode;
|
|
9
9
|
|
|
10
10
|
import java.lang.ref.WeakReference;
|
|
@@ -23,16 +23,16 @@ import java.util.concurrent.TimeoutException;
|
|
|
23
23
|
|
|
24
24
|
public class CameraUpdateItem implements RunnableFuture<Void> {
|
|
25
25
|
private int mDuration;
|
|
26
|
-
private
|
|
26
|
+
private MapLibreMap.CancelableCallback mCallback;
|
|
27
27
|
private CameraUpdate mCameraUpdate;
|
|
28
28
|
private int mCameraMode;
|
|
29
29
|
|
|
30
30
|
private boolean isCameraActionFinished;
|
|
31
31
|
private boolean isCameraActionCancelled;
|
|
32
32
|
|
|
33
|
-
private WeakReference<
|
|
33
|
+
private WeakReference<MapLibreMap> mMap;
|
|
34
34
|
|
|
35
|
-
public CameraUpdateItem(
|
|
35
|
+
public CameraUpdateItem(MapLibreMap map, CameraUpdate update, int duration, MapLibreMap.CancelableCallback callback, @CameraMode.Mode int cameraMode) {
|
|
36
36
|
mCameraUpdate = update;
|
|
37
37
|
mDuration = duration;
|
|
38
38
|
mCallback = callback;
|
|
@@ -46,7 +46,7 @@ public class CameraUpdateItem implements RunnableFuture<Void> {
|
|
|
46
46
|
|
|
47
47
|
@Override
|
|
48
48
|
public void run() {
|
|
49
|
-
final
|
|
49
|
+
final MapLibreMap.CancelableCallback callback = new MapLibreMap.CancelableCallback() {
|
|
50
50
|
@Override
|
|
51
51
|
public void onCancel() {
|
|
52
52
|
handleCallbackResponse(true);
|
|
@@ -58,7 +58,7 @@ public class CameraUpdateItem implements RunnableFuture<Void> {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
MapLibreMap map = mMap.get();
|
|
62
62
|
if (map == null) {
|
|
63
63
|
isCameraActionCancelled = true;
|
|
64
64
|
return;
|
|
@@ -71,8 +71,8 @@ public class CameraUpdateItem implements RunnableFuture<Void> {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// On iOS a duration of -1 means default or dynamic duration (based on flight-path length)
|
|
74
|
-
// On Android we can fallback to
|
|
75
|
-
int duration = mDuration < 0 ?
|
|
74
|
+
// On Android we can fallback to MapLibre's default duration as there is no such API
|
|
75
|
+
int duration = mDuration < 0 ? MapLibreConstants.ANIMATION_DURATION : mDuration;
|
|
76
76
|
|
|
77
77
|
if (mCameraMode == CameraMode.FLIGHT) {
|
|
78
78
|
map.animateCamera(mCameraUpdate, duration, callback);
|
package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCamera.java
CHANGED
|
@@ -3,21 +3,21 @@ package com.maplibre.rctmln.components.camera;
|
|
|
3
3
|
import android.content.Context;
|
|
4
4
|
import android.location.Location;
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
// import
|
|
6
|
+
import org.maplibre.android.camera.CameraPosition;
|
|
7
|
+
import org.maplibre.android.camera.CameraUpdate;
|
|
8
|
+
import org.maplibre.android.camera.CameraUpdateFactory;
|
|
9
|
+
import org.maplibre.android.geometry.LatLng;
|
|
10
|
+
import org.maplibre.android.geometry.LatLngBounds;
|
|
11
|
+
import org.maplibre.android.geometry.VisibleRegion;
|
|
12
|
+
import org.maplibre.android.location.OnCameraTrackingChangedListener;
|
|
13
|
+
import org.maplibre.android.location.modes.CameraMode;
|
|
14
|
+
import org.maplibre.android.location.modes.RenderMode;
|
|
15
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
16
|
+
import org.maplibre.android.maps.Style;
|
|
17
|
+
import org.maplibre.android.location.LocationComponent;
|
|
18
|
+
import org.maplibre.android.location.LocationComponentOptions;
|
|
19
|
+
import org.maplibre.android.location.LocationComponentActivationOptions;
|
|
20
|
+
// import org.maplibre.android.plugins.locationlayer.LocationLayerPlugin;
|
|
21
21
|
import com.maplibre.rctmln.components.AbstractMapFeature;
|
|
22
22
|
import com.maplibre.rctmln.components.location.LocationComponentManager;
|
|
23
23
|
import com.maplibre.rctmln.components.mapview.RCTMLNMapView;
|
|
@@ -38,9 +38,9 @@ import com.maplibre.rctmln.events.constants.EventTypes;
|
|
|
38
38
|
import com.facebook.react.bridge.WritableMap;
|
|
39
39
|
import com.facebook.react.bridge.WritableNativeMap;
|
|
40
40
|
|
|
41
|
-
import
|
|
41
|
+
import org.maplibre.geojson.Point;
|
|
42
42
|
|
|
43
|
-
import
|
|
43
|
+
import org.maplibre.android.location.permissions.PermissionsManager;
|
|
44
44
|
|
|
45
45
|
import androidx.annotation.NonNull;
|
|
46
46
|
|
|
@@ -96,7 +96,7 @@ public class RCTMLNCamera extends AbstractMapFeature {
|
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
private
|
|
99
|
+
private MapLibreMap.CancelableCallback mCameraCallback = new MapLibreMap.CancelableCallback() {
|
|
100
100
|
@Override
|
|
101
101
|
public void onCancel() {
|
|
102
102
|
if (!hasSentFirstRegion) {
|
|
@@ -170,14 +170,14 @@ public class RCTMLNCamera extends AbstractMapFeature {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
private void updateMaxBounds() {
|
|
173
|
-
|
|
173
|
+
MapLibreMap map = getMapboxMap();
|
|
174
174
|
if (map != null && mMaxBounds != null) {
|
|
175
175
|
map.setLatLngBoundsForCameraTarget(mMaxBounds);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
private void updateMaxMinZoomLevel() {
|
|
180
|
-
|
|
180
|
+
MapLibreMap map = getMapboxMap();
|
|
181
181
|
if (map != null) {
|
|
182
182
|
if (mMinZoomLevel >= 0.0) {
|
|
183
183
|
map.setMinZoomPreference(mMinZoomLevel);
|
|
@@ -281,15 +281,15 @@ public class RCTMLNCamera extends AbstractMapFeature {
|
|
|
281
281
|
|
|
282
282
|
double zoom = mZoomLevel;
|
|
283
283
|
if (zoom < 0) {
|
|
284
|
-
double
|
|
285
|
-
if (
|
|
284
|
+
double cameraZoom = mMapView.getMapboxMap().getCameraPosition().zoom;
|
|
285
|
+
if (cameraZoom < minimumZoomLevelForUserTracking) {
|
|
286
286
|
zoom = defaultZoomLevelForUserTracking;
|
|
287
287
|
} else {
|
|
288
|
-
zoom =
|
|
288
|
+
zoom = cameraZoom;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(getUserLocationUpdateCameraPosition(zoom));
|
|
292
|
-
|
|
292
|
+
MapLibreMap.CancelableCallback cameraCallback = new MapLibreMap.CancelableCallback() {
|
|
293
293
|
@Override
|
|
294
294
|
public void onCancel() {
|
|
295
295
|
mUserTrackingState = UserTrackingState.CHANGED;
|
|
@@ -314,7 +314,7 @@ public class RCTMLNCamera extends AbstractMapFeature {
|
|
|
314
314
|
CameraPosition cameraPosition = mMapView.getCameraPosition();
|
|
315
315
|
CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(getUserLocationUpdateCameraPosition(cameraPosition.zoom));
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
MapLibreMap.CancelableCallback callback = new MapLibreMap.CancelableCallback() {
|
|
318
318
|
@Override
|
|
319
319
|
public void onCancel() {
|
|
320
320
|
mUserTrackingState = UserTrackingState.CHANGED;
|
|
@@ -497,7 +497,7 @@ public class RCTMLNCamera extends AbstractMapFeature {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
|
|
500
|
+
MapLibreMap getMapboxMap() {
|
|
501
501
|
if (mMapView == null) {
|
|
502
502
|
return null;
|
|
503
503
|
}
|
package/android/rctmln/src/main/java/com/maplibre/rctmln/components/camera/RCTMLNCameraManager.java
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
package com.maplibre.rctmln.components.camera;
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import org.maplibre.geojson.FeatureCollection;
|
|
4
4
|
import com.facebook.common.logging.FLog;
|
|
5
5
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
6
6
|
import com.facebook.react.bridge.ReadableMap;
|
package/android/rctmln/src/main/java/com/maplibre/rctmln/components/images/RCTMLNImages.java
CHANGED
|
@@ -8,9 +8,9 @@ import androidx.annotation.NonNull;
|
|
|
8
8
|
import androidx.annotation.Nullable;
|
|
9
9
|
import androidx.core.content.res.ResourcesCompat;
|
|
10
10
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
11
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
12
|
+
import org.maplibre.android.maps.Style;
|
|
13
|
+
import org.maplibre.android.utils.BitmapUtils;
|
|
14
14
|
import com.maplibre.rctmln.R;
|
|
15
15
|
import com.maplibre.rctmln.components.AbstractMapFeature;
|
|
16
16
|
import com.maplibre.rctmln.components.mapview.RCTMLNMapView;
|
|
@@ -35,7 +35,7 @@ public class RCTMLNImages extends AbstractMapFeature {
|
|
|
35
35
|
private Map<String, BitmapDrawable> mNativeImages;
|
|
36
36
|
private RCTMLNImagesManager mManager;
|
|
37
37
|
private boolean mSendMissingImageEvents = false;
|
|
38
|
-
private
|
|
38
|
+
private MapLibreMap mMap;
|
|
39
39
|
|
|
40
40
|
protected String mID;
|
|
41
41
|
|
|
@@ -132,7 +132,7 @@ public class RCTMLNImages extends AbstractMapFeature {
|
|
|
132
132
|
return Collections.singletonList((Map.Entry<K,V>)new AbstractMap.SimpleEntry<K, V>(k, v));
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
public boolean addMissingImageToStyle(@NonNull String id, @NonNull
|
|
135
|
+
public boolean addMissingImageToStyle(@NonNull String id, @NonNull MapLibreMap map) {
|
|
136
136
|
if (mNativeImages != null) {
|
|
137
137
|
BitmapDrawable drawable = mNativeImages.get(id);
|
|
138
138
|
if (drawable != null) {
|
|
@@ -151,25 +151,25 @@ public class RCTMLNImages extends AbstractMapFeature {
|
|
|
151
151
|
return false;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
public void addImagesToStyle(Map<String, ImageEntry> images, @NonNull
|
|
154
|
+
public void addImagesToStyle(Map<String, ImageEntry> images, @NonNull MapLibreMap map) {
|
|
155
155
|
if (images != null) {
|
|
156
156
|
addRemoteImages(new ArrayList<>(images.entrySet()), map);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
public void addNativeImagesToStyle(Map<String, BitmapDrawable> images, @NonNull
|
|
160
|
+
public void addNativeImagesToStyle(Map<String, BitmapDrawable> images, @NonNull MapLibreMap map) {
|
|
161
161
|
if (images != null) {
|
|
162
162
|
addNativeImages(new ArrayList<>(images.entrySet()), map);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
public void sendImageMissingEvent(@NonNull String id, @NonNull
|
|
166
|
+
public void sendImageMissingEvent(@NonNull String id, @NonNull MapLibreMap map) {
|
|
167
167
|
if (mSendMissingImageEvents) {
|
|
168
168
|
mManager.handleEvent(ImageMissingEvent.makeImageMissingEvent(this, id));
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
private boolean hasImage(String imageId, @NonNull
|
|
172
|
+
private boolean hasImage(String imageId, @NonNull MapLibreMap map) {
|
|
173
173
|
Style style = map.getStyle();
|
|
174
174
|
return style != null && style.getImage(imageId) != null;
|
|
175
175
|
}
|
|
@@ -182,7 +182,7 @@ public class RCTMLNImages extends AbstractMapFeature {
|
|
|
182
182
|
mapView.getStyle(new Style.OnStyleLoaded() {
|
|
183
183
|
@Override
|
|
184
184
|
public void onStyleLoaded(@NonNull Style style) {
|
|
185
|
-
|
|
185
|
+
MapLibreMap map = mapView.getMapboxMap();
|
|
186
186
|
mMap = map;
|
|
187
187
|
addNativeImagesToStyle(mNativeImages, map);
|
|
188
188
|
addImagesToStyle(mImages, map);
|
|
@@ -191,7 +191,7 @@ public class RCTMLNImages extends AbstractMapFeature {
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
private void addNativeImages(@Nullable List<Map.Entry<String, BitmapDrawable>> imageEntries, @NonNull
|
|
194
|
+
private void addNativeImages(@Nullable List<Map.Entry<String, BitmapDrawable>> imageEntries, @NonNull MapLibreMap map) {
|
|
195
195
|
Style style = map.getStyle();
|
|
196
196
|
if (style == null || imageEntries == null) return;
|
|
197
197
|
|
|
@@ -203,7 +203,7 @@ public class RCTMLNImages extends AbstractMapFeature {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
private void addRemoteImages(@Nullable List<Map.Entry<String, ImageEntry>> imageEntries, @NonNull
|
|
206
|
+
private void addRemoteImages(@Nullable List<Map.Entry<String, ImageEntry>> imageEntries, @NonNull MapLibreMap map) {
|
|
207
207
|
Style style = map.getStyle();
|
|
208
208
|
if (style == null || imageEntries == null) return;
|
|
209
209
|
|
|
@@ -3,14 +3,14 @@ package com.maplibre.rctmln.components.location;
|
|
|
3
3
|
import android.annotation.SuppressLint;
|
|
4
4
|
import android.content.Context;
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
6
|
+
import org.maplibre.android.location.LocationComponent;
|
|
7
|
+
import org.maplibre.android.location.LocationComponentActivationOptions;
|
|
8
|
+
import org.maplibre.android.location.LocationComponentOptions;
|
|
9
|
+
import org.maplibre.android.location.OnCameraTrackingChangedListener;
|
|
10
|
+
import org.maplibre.android.location.modes.CameraMode;
|
|
11
|
+
import org.maplibre.android.location.modes.RenderMode;
|
|
12
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
13
|
+
import org.maplibre.android.maps.Style;
|
|
14
14
|
import com.maplibre.rctmln.R;
|
|
15
15
|
import com.maplibre.rctmln.components.mapview.RCTMLNMapView;
|
|
16
16
|
import com.maplibre.rctmln.location.LocationManager;
|
|
@@ -24,7 +24,7 @@ import androidx.annotation.NonNull;
|
|
|
24
24
|
*/
|
|
25
25
|
public class LocationComponentManager {
|
|
26
26
|
private RCTMLNMapView mMapView = null;
|
|
27
|
-
private
|
|
27
|
+
private MapLibreMap mMap = null;
|
|
28
28
|
|
|
29
29
|
private LocationManager mLocationManager = null;
|
|
30
30
|
private LocationComponent mLocationComponent = null;
|
|
@@ -4,17 +4,17 @@ import android.annotation.SuppressLint;
|
|
|
4
4
|
import android.content.Context;
|
|
5
5
|
import androidx.annotation.NonNull;
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import org.maplibre.android.location.permissions.PermissionsManager;
|
|
8
|
+
import org.maplibre.android.location.modes.RenderMode;
|
|
9
|
+
import org.maplibre.android.maps.MapLibreMap;
|
|
10
|
+
import org.maplibre.android.maps.OnMapReadyCallback;
|
|
11
|
+
import org.maplibre.android.maps.Style;
|
|
12
12
|
import com.maplibre.rctmln.components.AbstractMapFeature;
|
|
13
13
|
import com.maplibre.rctmln.components.mapview.RCTMLNMapView;
|
|
14
14
|
|
|
15
15
|
public class RCTMLNNativeUserLocation extends AbstractMapFeature implements OnMapReadyCallback, Style.OnStyleLoaded {
|
|
16
16
|
private boolean mEnabled = true;
|
|
17
|
-
private
|
|
17
|
+
private MapLibreMap mMap;
|
|
18
18
|
private RCTMLNMapView mMapView;
|
|
19
19
|
private @RenderMode.Mode int mRenderMode = RenderMode.COMPASS;
|
|
20
20
|
|
|
@@ -38,7 +38,7 @@ public class RCTMLNNativeUserLocation extends AbstractMapFeature implements OnMa
|
|
|
38
38
|
|
|
39
39
|
@SuppressLint("MissingPermission")
|
|
40
40
|
@Override
|
|
41
|
-
public void onMapReady(@NonNull
|
|
41
|
+
public void onMapReady(@NonNull MapLibreMap mapboxMap) {
|
|
42
42
|
mMap = mapboxMap;
|
|
43
43
|
mapboxMap.getStyle(this);
|
|
44
44
|
}
|
|
@@ -3,7 +3,7 @@ package com.maplibre.rctmln.components.location;
|
|
|
3
3
|
import com.facebook.react.uimanager.ThemedReactContext;
|
|
4
4
|
import com.facebook.react.uimanager.ViewGroupManager;
|
|
5
5
|
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
6
|
-
import
|
|
6
|
+
import org.maplibre.android.location.modes.RenderMode;
|
|
7
7
|
|
|
8
8
|
import javax.annotation.Nonnull;
|
|
9
9
|
|
package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/LayerSourceInfo.java
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
package com.maplibre.rctmln.components.mapview;
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
3
|
+
import org.maplibre.android.style.layers.CircleLayer;
|
|
4
|
+
import org.maplibre.android.style.layers.FillExtrusionLayer;
|
|
5
|
+
import org.maplibre.android.style.layers.FillLayer;
|
|
6
|
+
import org.maplibre.android.style.layers.HeatmapLayer;
|
|
7
|
+
import org.maplibre.android.style.layers.HillshadeLayer;
|
|
8
|
+
import org.maplibre.android.style.layers.Layer;
|
|
9
|
+
import org.maplibre.android.style.layers.LineLayer;
|
|
10
|
+
import org.maplibre.android.style.layers.RasterLayer;
|
|
11
|
+
import org.maplibre.android.style.layers.SymbolLayer;
|
|
12
12
|
|
|
13
13
|
import javax.annotation.Nullable;
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
package com.maplibre.rctmln.components.mapview;
|
|
2
2
|
|
|
3
3
|
import android.content.Context;
|
|
4
|
-
import
|
|
4
|
+
import org.maplibre.android.maps.MapLibreMapOptions;
|
|
5
5
|
/**
|
|
6
6
|
* Created by hernanmateo on 12/11/18.
|
|
7
7
|
*/
|
|
@@ -10,7 +10,7 @@ import com.mapbox.mapboxsdk.maps.MapboxMapOptions;
|
|
|
10
10
|
public class RCTMLNAndroidTextureMapView extends RCTMLNMapView {
|
|
11
11
|
public static final String LOG_TAG = "RCTMLNAndroidTextureMapView";
|
|
12
12
|
|
|
13
|
-
public RCTMLNAndroidTextureMapView(Context context, RCTMLNAndroidTextureMapViewManager manager,
|
|
13
|
+
public RCTMLNAndroidTextureMapView(Context context, RCTMLNAndroidTextureMapViewManager manager, MapLibreMapOptions options) {
|
|
14
14
|
super(context, manager, options);
|
|
15
15
|
}
|
|
16
16
|
}
|