react-native-maps 1.25.1 → 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/build.gradle +0 -3
- 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/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +2 -2
- package/ios/generated/RNMapsSpecs/Props.cpp +3 -2
- package/ios/generated/RNMapsSpecs/Props.h +3 -2
- package/package.json +1 -1
- package/react-native-maps.podspec +0 -1
- package/src/MapView.tsx +3 -3
- package/src/specs/NativeComponentGoogleMapView.ts +4 -4
- package/src/specs/NativeComponentMapView.ts +2 -2
package/android/build.gradle
CHANGED
|
@@ -104,6 +104,3 @@ dependencies {
|
|
|
104
104
|
implementation "androidx.work:work-runtime:2.9.1"
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
project.afterEvaluate {
|
|
108
|
-
println("\u001B[32m[react-native-maps] Thank you for using react-native-maps ❤️! \n[react-native-maps] to help keep it maintained, please consider sponsoring at https://github.com/sponsors/salah-ghanim\u001B[0m")
|
|
109
|
-
}
|
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{};
|
|
@@ -600,8 +600,8 @@ using namespace facebook::react;
|
|
|
600
600
|
if (newViewProps.minZoom != oldViewProps.minZoom || newViewProps.maxZoom != oldViewProps.maxZoom){
|
|
601
601
|
[_view setMinZoom:newViewProps.minZoom maxZoom:newViewProps.maxZoom];
|
|
602
602
|
}
|
|
603
|
-
|
|
604
|
-
|
|
603
|
+
REMAP_MAPVIEW_PROP(showsCompass)
|
|
604
|
+
REMAP_MAPVIEW_PROP(showsMyLocationButton)
|
|
605
605
|
REMAP_MAPVIEW_PROP(showsTraffic)
|
|
606
606
|
REMAP_MAPVIEW_PROP(showsUserLocation)
|
|
607
607
|
REMAP_MAPVIEW_PROP(zoomEnabled)
|
|
@@ -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})),
|
|
@@ -159,6 +159,7 @@ RNMapsMarkerProps::RNMapsMarkerProps(
|
|
|
159
159
|
description(convertRawProp(context, rawProps, "description", sourceProps.description, {})),
|
|
160
160
|
draggable(convertRawProp(context, rawProps, "draggable", sourceProps.draggable, {false})),
|
|
161
161
|
title(convertRawProp(context, rawProps, "title", sourceProps.title, {})),
|
|
162
|
+
tracksViewChanges(convertRawProp(context, rawProps, "tracksViewChanges", sourceProps.tracksViewChanges, {true})),
|
|
162
163
|
identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {})),
|
|
163
164
|
isPreselected(convertRawProp(context, rawProps, "isPreselected", sourceProps.isPreselected, {false})),
|
|
164
165
|
opacity(convertRawProp(context, rawProps, "opacity", sourceProps.opacity, {1.0})),
|
|
@@ -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};
|
|
@@ -1109,6 +1109,7 @@ class RNMapsMarkerProps final : public ViewProps {
|
|
|
1109
1109
|
std::string description{};
|
|
1110
1110
|
bool draggable{false};
|
|
1111
1111
|
std::string title{};
|
|
1112
|
+
bool tracksViewChanges{true};
|
|
1112
1113
|
std::string identifier{};
|
|
1113
1114
|
bool isPreselected{false};
|
|
1114
1115
|
double opacity{1.0};
|
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",
|
|
@@ -4,7 +4,6 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
|
4
4
|
folly_config = get_folly_config()
|
|
5
5
|
folly_compiler_flags = folly_config[:compiler_flags]
|
|
6
6
|
|
|
7
|
-
Pod::UI.puts "\e[32m[react-native-maps] Thank you for using react-native-maps ❤️! \n[react-native-maps] to help keep it maintained, please consider sponsoring at https://github.com/sponsors/salah-ghanim\e[0m"
|
|
8
7
|
|
|
9
8
|
Pod::Spec.new do |s|
|
|
10
9
|
s.name = "react-native-maps"
|
package/src/MapView.tsx
CHANGED
|
@@ -552,10 +552,10 @@ export type MapViewProps = ViewProps & {
|
|
|
552
552
|
showsBuildings?: boolean;
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
|
-
* If `false` compass
|
|
555
|
+
* If `false` compass is not displayed on the map.
|
|
556
556
|
*
|
|
557
557
|
* @default true
|
|
558
|
-
* @platform iOS: Supported (adaptive
|
|
558
|
+
* @platform iOS: Supported (adaptive, visible only if the map is not pointing north)
|
|
559
559
|
* @platform Android: Supported
|
|
560
560
|
*/
|
|
561
561
|
showsCompass?: boolean;
|
|
@@ -581,7 +581,7 @@ export type MapViewProps = ViewProps & {
|
|
|
581
581
|
/**
|
|
582
582
|
* If `false` hide the button to move map to the current user's location.
|
|
583
583
|
*
|
|
584
|
-
* @default
|
|
584
|
+
* @default false
|
|
585
585
|
* @platform iOS: Google Maps only
|
|
586
586
|
* @platform Android: Supported
|
|
587
587
|
*/
|
|
@@ -699,7 +699,7 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
699
699
|
* @platform iOS: Supported
|
|
700
700
|
* @platform Android: Supported
|
|
701
701
|
*/
|
|
702
|
-
showsCompass?:
|
|
702
|
+
showsCompass?: boolean;
|
|
703
703
|
|
|
704
704
|
/**
|
|
705
705
|
* A Boolean indicating whether indoor level picker should be enabled.
|
|
@@ -720,13 +720,13 @@ export interface MapFabricNativeProps extends ViewProps {
|
|
|
720
720
|
showsIndoors?: WithDefault<boolean, true>;
|
|
721
721
|
|
|
722
722
|
/**
|
|
723
|
-
* If `false` hide the button to move map to the current user's location.
|
|
723
|
+
* If `false` hide the button to move the map to the current user's location.
|
|
724
724
|
*
|
|
725
|
-
* @default
|
|
725
|
+
* @default false
|
|
726
726
|
* @platform iOS: Google Maps only
|
|
727
727
|
* @platform Android: Supported
|
|
728
728
|
*/
|
|
729
|
-
showsMyLocationButton?:
|
|
729
|
+
showsMyLocationButton?: boolean;
|
|
730
730
|
|
|
731
731
|
/**
|
|
732
732
|
* If `false` points of interest won't be displayed on the map.
|
|
@@ -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.
|