react-native-maps 1.25.1 → 1.25.2

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.
@@ -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
- }
@@ -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
- [_view setShowsCompass:newViewProps.showsCompass];
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, {true})),
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, {true})),
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{true};
385
+ bool showsCompass{false};
386
386
  bool showsIndoorLevelPicker{false};
387
387
  bool showsIndoors{true};
388
- bool showsMyLocationButton{true};
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.1",
8
+ "version": "1.25.2",
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 won't be displayed on the map.
555
+ * If `false` compass is not displayed on the map.
556
556
  *
557
557
  * @default true
558
- * @platform iOS: Supported (adaptive on Apple Maps, visible only if map is not pointing north)
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 true
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?: WithDefault<boolean, true>;
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 true
725
+ * @default false
726
726
  * @platform iOS: Google Maps only
727
727
  * @platform Android: Supported
728
728
  */
729
- showsMyLocationButton?: WithDefault<boolean, true>;
729
+ showsMyLocationButton?: boolean;
730
730
 
731
731
  /**
732
732
  * If `false` points of interest won't be displayed on the map.