react-native-maps 1.25.2 → 1.25.3
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/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +1 -1
- package/android/src/main/java/com/rnmaps/maps/MapView.java +5 -0
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.cpp +3 -3
- package/android/src/main/jni/react/renderer/components/RNMapsSpecs/Props.h +3 -3
- package/package.json +1 -1
- package/src/specs/NativeComponentMapView.ts +2 -2
package/android/src/main/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java
CHANGED
|
@@ -125,7 +125,7 @@ public class RNMapsMapViewManagerDelegate<T extends View, U extends BaseViewMana
|
|
|
125
125
|
mViewManager.setShowsIndoors(view, value == null ? true : (boolean) value);
|
|
126
126
|
break;
|
|
127
127
|
case "showsMyLocationButton":
|
|
128
|
-
mViewManager.setShowsMyLocationButton(view, value == null ?
|
|
128
|
+
mViewManager.setShowsMyLocationButton(view, value == null ? false : (boolean) value);
|
|
129
129
|
break;
|
|
130
130
|
case "showsScale":
|
|
131
131
|
mViewManager.setShowsScale(view, value == null ? false : (boolean) value);
|
|
@@ -470,6 +470,11 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
|
|
|
470
470
|
if (scrollDuringRotateOrZoomEnabled != null) {
|
|
471
471
|
setScrollDuringRotateOrZoomEnabled(scrollDuringRotateOrZoomEnabled);
|
|
472
472
|
}
|
|
473
|
+
if (hasPermissions()) {
|
|
474
|
+
//noinspection MissingPermission
|
|
475
|
+
map.setMyLocationEnabled(showUserLocation);
|
|
476
|
+
map.setLocationSource(fusedLocationSource);
|
|
477
|
+
}
|
|
473
478
|
|
|
474
479
|
markerManager = new MarkerManager(map);
|
|
475
480
|
markerCollection = markerManager.newCollection();
|
|
@@ -57,10 +57,10 @@ RNMapsGoogleMapViewProps::RNMapsGoogleMapViewProps(
|
|
|
57
57
|
scrollDuringRotateOrZoomEnabled(convertRawProp(context, rawProps, "scrollDuringRotateOrZoomEnabled", sourceProps.scrollDuringRotateOrZoomEnabled, {true})),
|
|
58
58
|
scrollEnabled(convertRawProp(context, rawProps, "scrollEnabled", sourceProps.scrollEnabled, {true})),
|
|
59
59
|
showsBuildings(convertRawProp(context, rawProps, "showsBuildings", sourceProps.showsBuildings, {true})),
|
|
60
|
-
showsCompass(convertRawProp(context, rawProps, "showsCompass", sourceProps.showsCompass, {
|
|
60
|
+
showsCompass(convertRawProp(context, rawProps, "showsCompass", sourceProps.showsCompass, {false})),
|
|
61
61
|
showsIndoorLevelPicker(convertRawProp(context, rawProps, "showsIndoorLevelPicker", sourceProps.showsIndoorLevelPicker, {false})),
|
|
62
62
|
showsIndoors(convertRawProp(context, rawProps, "showsIndoors", sourceProps.showsIndoors, {true})),
|
|
63
|
-
showsMyLocationButton(convertRawProp(context, rawProps, "showsMyLocationButton", sourceProps.showsMyLocationButton, {
|
|
63
|
+
showsMyLocationButton(convertRawProp(context, rawProps, "showsMyLocationButton", sourceProps.showsMyLocationButton, {false})),
|
|
64
64
|
showsPointsOfInterest(convertRawProp(context, rawProps, "showsPointsOfInterest", sourceProps.showsPointsOfInterest, {false})),
|
|
65
65
|
showsScale(convertRawProp(context, rawProps, "showsScale", sourceProps.showsScale, {false})),
|
|
66
66
|
showsTraffic(convertRawProp(context, rawProps, "showsTraffic", sourceProps.showsTraffic, {false})),
|
|
@@ -126,7 +126,7 @@ RNMapsMapViewProps::RNMapsMapViewProps(
|
|
|
126
126
|
showsCompass(convertRawProp(context, rawProps, "showsCompass", sourceProps.showsCompass, {true})),
|
|
127
127
|
showsIndoorLevelPicker(convertRawProp(context, rawProps, "showsIndoorLevelPicker", sourceProps.showsIndoorLevelPicker, {false})),
|
|
128
128
|
showsIndoors(convertRawProp(context, rawProps, "showsIndoors", sourceProps.showsIndoors, {true})),
|
|
129
|
-
showsMyLocationButton(convertRawProp(context, rawProps, "showsMyLocationButton", sourceProps.showsMyLocationButton, {
|
|
129
|
+
showsMyLocationButton(convertRawProp(context, rawProps, "showsMyLocationButton", sourceProps.showsMyLocationButton, {false})),
|
|
130
130
|
showsScale(convertRawProp(context, rawProps, "showsScale", sourceProps.showsScale, {false})),
|
|
131
131
|
showsUserLocation(convertRawProp(context, rawProps, "showsUserLocation", sourceProps.showsUserLocation, {false})),
|
|
132
132
|
tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})),
|
|
@@ -382,10 +382,10 @@ class RNMapsGoogleMapViewProps final : public ViewProps {
|
|
|
382
382
|
bool scrollDuringRotateOrZoomEnabled{true};
|
|
383
383
|
bool scrollEnabled{true};
|
|
384
384
|
bool showsBuildings{true};
|
|
385
|
-
bool showsCompass{
|
|
385
|
+
bool showsCompass{false};
|
|
386
386
|
bool showsIndoorLevelPicker{false};
|
|
387
387
|
bool showsIndoors{true};
|
|
388
|
-
bool showsMyLocationButton{
|
|
388
|
+
bool showsMyLocationButton{false};
|
|
389
389
|
bool showsPointsOfInterest{false};
|
|
390
390
|
bool showsScale{false};
|
|
391
391
|
bool showsTraffic{false};
|
|
@@ -913,7 +913,7 @@ class RNMapsMapViewProps final : public ViewProps {
|
|
|
913
913
|
bool showsCompass{true};
|
|
914
914
|
bool showsIndoorLevelPicker{false};
|
|
915
915
|
bool showsIndoors{true};
|
|
916
|
-
bool showsMyLocationButton{
|
|
916
|
+
bool showsMyLocationButton{false};
|
|
917
917
|
bool showsScale{false};
|
|
918
918
|
bool showsUserLocation{false};
|
|
919
919
|
SharedColor tintColor{};
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.25.
|
|
8
|
+
"version": "1.25.3",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -872,11 +872,11 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
872
872
|
/**
|
|
873
873
|
* If `false` hide the button to move map to the current user's location.
|
|
874
874
|
*
|
|
875
|
-
* @default
|
|
875
|
+
* @default false
|
|
876
876
|
* @platform iOS: Google Maps only
|
|
877
877
|
* @platform Android: Supported
|
|
878
878
|
*/
|
|
879
|
-
showsMyLocationButton?:
|
|
879
|
+
showsMyLocationButton?: boolean;
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* A Boolean indicating whether the map shows scale information.
|