react-native-google-maps-plus 1.0.3-dev.1 → 1.1.0-dev.1

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.
Files changed (82) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +122 -29
  2. package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +44 -44
  3. package/android/src/main/java/com/rngooglemapsplus/{MapCircle.kt → MapCircleBuilder.kt} +2 -12
  4. package/android/src/main/java/com/rngooglemapsplus/{MapMarker.kt → MapMarkerBuilder.kt} +1 -1
  5. package/android/src/main/java/com/rngooglemapsplus/{MapPolygon.kt → MapPolygonBuilder.kt} +2 -18
  6. package/android/src/main/java/com/rngooglemapsplus/{MapPolyline.kt → MapPolylineBuilder.kt.kt} +2 -19
  7. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +43 -54
  8. package/android/src/main/java/com/rngooglemapsplus/extensions/RNCameraExtension.kt +19 -0
  9. package/android/src/main/java/com/rngooglemapsplus/extensions/RNLocationPriorityExtension.kt +12 -0
  10. package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapCircleExtension.kt +14 -0
  11. package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +20 -0
  12. package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +21 -0
  13. package/android/src/main/java/com/rngooglemapsplus/extensions/RNUserInterfaceExtension.kt +12 -0
  14. package/android/src/main/java/com/rngooglemapsplus/{Color.kt → extensions/StringExtension.kt} +1 -1
  15. package/android/src/main/java/com/rngooglemapsplus/extensions/ThrowableExtension.kt +38 -0
  16. package/ios/GoogleMapViewImpl.swift +165 -22
  17. package/ios/LocationHandler.swift +29 -69
  18. package/ios/MapCircleBuilder.swift +20 -0
  19. package/ios/{MapMarker.swift → MapMarkerBuilder.swift} +1 -25
  20. package/ios/MapPolygonBuilder.swift +20 -0
  21. package/ios/MapPolylineBuilder.swift +24 -0
  22. package/ios/RNGoogleMapsPlusView.swift +63 -115
  23. package/ios/extensions/RNCamera+Extension.swift +22 -0
  24. package/ios/{MapCircle.swift → extensions/RNCircle+Extension.swift} +0 -19
  25. package/ios/extensions/RNIOSLocationAccuracy+Extensions.swift +19 -0
  26. package/ios/extensions/RNMarker+Extension.swift +24 -0
  27. package/ios/{MapPolygon.swift → extensions/RNPolygon+Extension.swift.swift} +0 -19
  28. package/ios/{MapPolyline.swift → extensions/RNPolyline+Extension.swift.swift} +16 -39
  29. package/ios/extensions/RNUserInterface+Extension.swift +16 -0
  30. package/lib/module/types.js +14 -0
  31. package/lib/module/types.js.map +1 -1
  32. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +5 -1
  33. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  34. package/lib/typescript/src/types.d.ts +39 -1
  35. package/lib/typescript/src/types.d.ts.map +1 -1
  36. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +60 -0
  37. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +8 -0
  38. package/nitrogen/generated/android/c++/JRNAndroidLocationConfig.hpp +63 -0
  39. package/nitrogen/generated/android/c++/JRNAndroidLocationPriority.hpp +65 -0
  40. package/nitrogen/generated/android/c++/JRNIOSLocationAccuracy.hpp +65 -0
  41. package/nitrogen/generated/android/c++/JRNIOSLocationConfig.hpp +59 -0
  42. package/nitrogen/generated/android/c++/JRNInitialProps.hpp +4 -4
  43. package/nitrogen/generated/android/c++/JRNLocationConfig.hpp +65 -0
  44. package/nitrogen/generated/android/c++/JRNMapUiSettings.hpp +93 -0
  45. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +16 -0
  46. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +24 -0
  47. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNAndroidLocationConfig.kt +35 -0
  48. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNAndroidLocationPriority.kt +23 -0
  49. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationAccuracy.kt +23 -0
  50. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationConfig.kt +32 -0
  51. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +1 -1
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationConfig.kt +32 -0
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapUiSettings.kt +59 -0
  54. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +108 -0
  55. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +18 -0
  56. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +46 -0
  57. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +20 -0
  58. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +4 -0
  59. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +82 -0
  60. package/nitrogen/generated/ios/swift/RNAndroidLocationConfig.swift +93 -0
  61. package/nitrogen/generated/ios/swift/RNAndroidLocationPriority.swift +48 -0
  62. package/nitrogen/generated/ios/swift/RNIOSLocationAccuracy.swift +48 -0
  63. package/nitrogen/generated/ios/swift/RNIOSLocationConfig.swift +70 -0
  64. package/nitrogen/generated/ios/swift/RNInitialProps.swift +6 -6
  65. package/nitrogen/generated/ios/swift/RNLocationConfig.swift +84 -0
  66. package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +277 -0
  67. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +8 -0
  68. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +14 -0
  69. package/nitrogen/generated/shared/c++/RNAndroidLocationConfig.hpp +77 -0
  70. package/nitrogen/generated/shared/c++/RNAndroidLocationPriority.hpp +64 -0
  71. package/nitrogen/generated/shared/c++/RNIOSLocationAccuracy.hpp +64 -0
  72. package/nitrogen/generated/shared/c++/RNIOSLocationConfig.hpp +73 -0
  73. package/nitrogen/generated/shared/c++/RNInitialProps.hpp +5 -5
  74. package/nitrogen/generated/shared/c++/RNLocationConfig.hpp +76 -0
  75. package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +107 -0
  76. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +48 -0
  77. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +6 -0
  78. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +4 -0
  79. package/package.json +1 -1
  80. package/src/RNGoogleMapsPlusView.nitro.ts +6 -0
  81. package/src/types.ts +44 -1
  82. /package/ios/{Color.swift → extensions/String+Extensions.swift} +0 -0
@@ -0,0 +1,35 @@
1
+ ///
2
+ /// RNAndroidLocationConfig.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNAndroidLocationConfig".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNAndroidLocationConfig
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val priority: RNAndroidLocationPriority?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val interval: Double?,
30
+ @DoNotStrip
31
+ @Keep
32
+ val minUpdateInterval: Double?
33
+ ) {
34
+ /* main constructor */
35
+ }
@@ -0,0 +1,23 @@
1
+ ///
2
+ /// RNAndroidLocationPriority.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "RNAndroidLocationPriority".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class RNAndroidLocationPriority(@DoNotStrip @Keep val value: Int) {
19
+ PRIORITY_HIGH_ACCURACY(0),
20
+ PRIORITY_BALANCED_POWER_ACCURACY(1),
21
+ PRIORITY_LOW_POWER(2),
22
+ PRIORITY_PASSIVE(3);
23
+ }
@@ -0,0 +1,23 @@
1
+ ///
2
+ /// RNIOSLocationAccuracy.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "RNIOSLocationAccuracy".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class RNIOSLocationAccuracy(@DoNotStrip @Keep val value: Int) {
19
+ ACCURACY_BEST(0),
20
+ ACCURACY_NEAREST_TEN_METER(1),
21
+ ACCURACY_NEAREST_HUNDRED_METER(2),
22
+ ACCURACY_KILOMETER(3);
23
+ }
@@ -0,0 +1,32 @@
1
+ ///
2
+ /// RNIOSLocationConfig.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNIOSLocationConfig".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNIOSLocationConfig
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val desiredAccuracy: RNIOSLocationAccuracy?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val distanceFilterMeters: Double?
30
+ ) {
31
+ /* main constructor */
32
+ }
@@ -29,7 +29,7 @@ data class RNInitialProps
29
29
  val liteMode: Boolean?,
30
30
  @DoNotStrip
31
31
  @Keep
32
- val initialCamera: RNCamera?
32
+ val camera: RNCamera?
33
33
  ) {
34
34
  /* main constructor */
35
35
  }
@@ -0,0 +1,32 @@
1
+ ///
2
+ /// RNLocationConfig.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNLocationConfig".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNLocationConfig
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val android: RNAndroidLocationConfig?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val ios: RNIOSLocationConfig?
30
+ ) {
31
+ /* main constructor */
32
+ }
@@ -0,0 +1,59 @@
1
+ ///
2
+ /// RNMapUiSettings.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNMapUiSettings".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNMapUiSettings
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val allGesturesEnabled: Boolean?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val compassEnabled: Boolean?,
30
+ @DoNotStrip
31
+ @Keep
32
+ val indoorLevelPickerEnabled: Boolean?,
33
+ @DoNotStrip
34
+ @Keep
35
+ val mapToolbarEnabled: Boolean?,
36
+ @DoNotStrip
37
+ @Keep
38
+ val myLocationButtonEnabled: Boolean?,
39
+ @DoNotStrip
40
+ @Keep
41
+ val rotateEnabled: Boolean?,
42
+ @DoNotStrip
43
+ @Keep
44
+ val scrollEnabled: Boolean?,
45
+ @DoNotStrip
46
+ @Keep
47
+ val scrollDuringRotateOrZoomEnabled: Boolean?,
48
+ @DoNotStrip
49
+ @Keep
50
+ val tiltEnabled: Boolean?,
51
+ @DoNotStrip
52
+ @Keep
53
+ val zoomControlsEnabled: Boolean?,
54
+ @DoNotStrip
55
+ @Keep
56
+ val zoomGesturesEnabled: Boolean?
57
+ ) {
58
+ /* main constructor */
59
+ }
@@ -12,12 +12,20 @@
12
12
  namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusModuleSpec; }
13
13
  // Forward declaration of `HybridRNGoogleMapsPlusViewSpec` to properly resolve imports.
14
14
  namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusViewSpec; }
15
+ // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
16
+ namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
15
17
  // Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
16
18
  namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
19
+ // Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
20
+ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
17
21
  // Forward declaration of `RNCamera` to properly resolve imports.
18
22
  namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
19
23
  // Forward declaration of `RNCircle` to properly resolve imports.
20
24
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
25
+ // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
26
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
27
+ // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
28
+ namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
21
29
  // Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
22
30
  namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
23
31
  // Forward declaration of `RNInitialProps` to properly resolve imports.
@@ -28,6 +36,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
28
36
  namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
29
37
  // Forward declaration of `RNLineJoinType` to properly resolve imports.
30
38
  namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
39
+ // Forward declaration of `RNLocationConfig` to properly resolve imports.
40
+ namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
31
41
  // Forward declaration of `RNLocationErrorCode` to properly resolve imports.
32
42
  namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
33
43
  // Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
@@ -40,6 +50,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
40
50
  namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
41
51
  // Forward declaration of `RNMapType` to properly resolve imports.
42
52
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
53
+ // Forward declaration of `RNMapUiSettings` to properly resolve imports.
54
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
43
55
  // Forward declaration of `RNMarker` to properly resolve imports.
44
56
  namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
45
57
  // Forward declaration of `RNPolygon` to properly resolve imports.
@@ -62,20 +74,26 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
62
74
  // Include C++ defined types
63
75
  #include "HybridRNGoogleMapsPlusModuleSpec.hpp"
64
76
  #include "HybridRNGoogleMapsPlusViewSpec.hpp"
77
+ #include "RNAndroidLocationConfig.hpp"
65
78
  #include "RNAndroidLocationPermissionResult.hpp"
79
+ #include "RNAndroidLocationPriority.hpp"
66
80
  #include "RNCamera.hpp"
67
81
  #include "RNCircle.hpp"
82
+ #include "RNIOSLocationAccuracy.hpp"
83
+ #include "RNIOSLocationConfig.hpp"
68
84
  #include "RNIOSPermissionResult.hpp"
69
85
  #include "RNInitialProps.hpp"
70
86
  #include "RNLatLng.hpp"
71
87
  #include "RNLineCapType.hpp"
72
88
  #include "RNLineJoinType.hpp"
73
89
  #include "RNLocation.hpp"
90
+ #include "RNLocationConfig.hpp"
74
91
  #include "RNLocationErrorCode.hpp"
75
92
  #include "RNLocationPermissionResult.hpp"
76
93
  #include "RNMapErrorCode.hpp"
77
94
  #include "RNMapPadding.hpp"
78
95
  #include "RNMapType.hpp"
96
+ #include "RNMapUiSettings.hpp"
79
97
  #include "RNMarker.hpp"
80
98
  #include "RNPolygon.hpp"
81
99
  #include "RNPolyline.hpp"
@@ -313,6 +331,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
313
331
  return *optional;
314
332
  }
315
333
 
334
+ // pragma MARK: std::optional<RNMapUiSettings>
335
+ /**
336
+ * Specialized version of `std::optional<RNMapUiSettings>`.
337
+ */
338
+ using std__optional_RNMapUiSettings_ = std::optional<RNMapUiSettings>;
339
+ inline std::optional<RNMapUiSettings> create_std__optional_RNMapUiSettings_(const RNMapUiSettings& value) noexcept {
340
+ return std::optional<RNMapUiSettings>(value);
341
+ }
342
+ inline bool has_value_std__optional_RNMapUiSettings_(const std::optional<RNMapUiSettings>& optional) noexcept {
343
+ return optional.has_value();
344
+ }
345
+ inline RNMapUiSettings get_std__optional_RNMapUiSettings_(const std::optional<RNMapUiSettings>& optional) noexcept {
346
+ return *optional;
347
+ }
348
+
316
349
  // pragma MARK: std::optional<RNUserInterfaceStyle>
317
350
  /**
318
351
  * Specialized version of `std::optional<RNUserInterfaceStyle>`.
@@ -518,6 +551,81 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
518
551
  return *optional;
519
552
  }
520
553
 
554
+ // pragma MARK: std::optional<RNAndroidLocationPriority>
555
+ /**
556
+ * Specialized version of `std::optional<RNAndroidLocationPriority>`.
557
+ */
558
+ using std__optional_RNAndroidLocationPriority_ = std::optional<RNAndroidLocationPriority>;
559
+ inline std::optional<RNAndroidLocationPriority> create_std__optional_RNAndroidLocationPriority_(const RNAndroidLocationPriority& value) noexcept {
560
+ return std::optional<RNAndroidLocationPriority>(value);
561
+ }
562
+ inline bool has_value_std__optional_RNAndroidLocationPriority_(const std::optional<RNAndroidLocationPriority>& optional) noexcept {
563
+ return optional.has_value();
564
+ }
565
+ inline RNAndroidLocationPriority get_std__optional_RNAndroidLocationPriority_(const std::optional<RNAndroidLocationPriority>& optional) noexcept {
566
+ return *optional;
567
+ }
568
+
569
+ // pragma MARK: std::optional<RNAndroidLocationConfig>
570
+ /**
571
+ * Specialized version of `std::optional<RNAndroidLocationConfig>`.
572
+ */
573
+ using std__optional_RNAndroidLocationConfig_ = std::optional<RNAndroidLocationConfig>;
574
+ inline std::optional<RNAndroidLocationConfig> create_std__optional_RNAndroidLocationConfig_(const RNAndroidLocationConfig& value) noexcept {
575
+ return std::optional<RNAndroidLocationConfig>(value);
576
+ }
577
+ inline bool has_value_std__optional_RNAndroidLocationConfig_(const std::optional<RNAndroidLocationConfig>& optional) noexcept {
578
+ return optional.has_value();
579
+ }
580
+ inline RNAndroidLocationConfig get_std__optional_RNAndroidLocationConfig_(const std::optional<RNAndroidLocationConfig>& optional) noexcept {
581
+ return *optional;
582
+ }
583
+
584
+ // pragma MARK: std::optional<RNIOSLocationAccuracy>
585
+ /**
586
+ * Specialized version of `std::optional<RNIOSLocationAccuracy>`.
587
+ */
588
+ using std__optional_RNIOSLocationAccuracy_ = std::optional<RNIOSLocationAccuracy>;
589
+ inline std::optional<RNIOSLocationAccuracy> create_std__optional_RNIOSLocationAccuracy_(const RNIOSLocationAccuracy& value) noexcept {
590
+ return std::optional<RNIOSLocationAccuracy>(value);
591
+ }
592
+ inline bool has_value_std__optional_RNIOSLocationAccuracy_(const std::optional<RNIOSLocationAccuracy>& optional) noexcept {
593
+ return optional.has_value();
594
+ }
595
+ inline RNIOSLocationAccuracy get_std__optional_RNIOSLocationAccuracy_(const std::optional<RNIOSLocationAccuracy>& optional) noexcept {
596
+ return *optional;
597
+ }
598
+
599
+ // pragma MARK: std::optional<RNIOSLocationConfig>
600
+ /**
601
+ * Specialized version of `std::optional<RNIOSLocationConfig>`.
602
+ */
603
+ using std__optional_RNIOSLocationConfig_ = std::optional<RNIOSLocationConfig>;
604
+ inline std::optional<RNIOSLocationConfig> create_std__optional_RNIOSLocationConfig_(const RNIOSLocationConfig& value) noexcept {
605
+ return std::optional<RNIOSLocationConfig>(value);
606
+ }
607
+ inline bool has_value_std__optional_RNIOSLocationConfig_(const std::optional<RNIOSLocationConfig>& optional) noexcept {
608
+ return optional.has_value();
609
+ }
610
+ inline RNIOSLocationConfig get_std__optional_RNIOSLocationConfig_(const std::optional<RNIOSLocationConfig>& optional) noexcept {
611
+ return *optional;
612
+ }
613
+
614
+ // pragma MARK: std::optional<RNLocationConfig>
615
+ /**
616
+ * Specialized version of `std::optional<RNLocationConfig>`.
617
+ */
618
+ using std__optional_RNLocationConfig_ = std::optional<RNLocationConfig>;
619
+ inline std::optional<RNLocationConfig> create_std__optional_RNLocationConfig_(const RNLocationConfig& value) noexcept {
620
+ return std::optional<RNLocationConfig>(value);
621
+ }
622
+ inline bool has_value_std__optional_RNLocationConfig_(const std::optional<RNLocationConfig>& optional) noexcept {
623
+ return optional.has_value();
624
+ }
625
+ inline RNLocationConfig get_std__optional_RNLocationConfig_(const std::optional<RNLocationConfig>& optional) noexcept {
626
+ return *optional;
627
+ }
628
+
521
629
  // pragma MARK: std::function<void(RNMapErrorCode /* error */)>
522
630
  /**
523
631
  * Specialized version of `std::function<void(RNMapErrorCode)>`.
@@ -12,12 +12,20 @@
12
12
  namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusModuleSpec; }
13
13
  // Forward declaration of `HybridRNGoogleMapsPlusViewSpec` to properly resolve imports.
14
14
  namespace margelo::nitro::rngooglemapsplus { class HybridRNGoogleMapsPlusViewSpec; }
15
+ // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
16
+ namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
15
17
  // Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
16
18
  namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
19
+ // Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
20
+ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
17
21
  // Forward declaration of `RNCamera` to properly resolve imports.
18
22
  namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
19
23
  // Forward declaration of `RNCircle` to properly resolve imports.
20
24
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
25
+ // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
26
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
27
+ // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
28
+ namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
21
29
  // Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
22
30
  namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
23
31
  // Forward declaration of `RNInitialProps` to properly resolve imports.
@@ -28,6 +36,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
28
36
  namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
29
37
  // Forward declaration of `RNLineJoinType` to properly resolve imports.
30
38
  namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
39
+ // Forward declaration of `RNLocationConfig` to properly resolve imports.
40
+ namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
31
41
  // Forward declaration of `RNLocationErrorCode` to properly resolve imports.
32
42
  namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
33
43
  // Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
@@ -40,6 +50,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
40
50
  namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
41
51
  // Forward declaration of `RNMapType` to properly resolve imports.
42
52
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
53
+ // Forward declaration of `RNMapUiSettings` to properly resolve imports.
54
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
43
55
  // Forward declaration of `RNMarker` to properly resolve imports.
44
56
  namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
45
57
  // Forward declaration of `RNPolygon` to properly resolve imports.
@@ -56,20 +68,26 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
56
68
  // Include C++ defined types
57
69
  #include "HybridRNGoogleMapsPlusModuleSpec.hpp"
58
70
  #include "HybridRNGoogleMapsPlusViewSpec.hpp"
71
+ #include "RNAndroidLocationConfig.hpp"
59
72
  #include "RNAndroidLocationPermissionResult.hpp"
73
+ #include "RNAndroidLocationPriority.hpp"
60
74
  #include "RNCamera.hpp"
61
75
  #include "RNCircle.hpp"
76
+ #include "RNIOSLocationAccuracy.hpp"
77
+ #include "RNIOSLocationConfig.hpp"
62
78
  #include "RNIOSPermissionResult.hpp"
63
79
  #include "RNInitialProps.hpp"
64
80
  #include "RNLatLng.hpp"
65
81
  #include "RNLineCapType.hpp"
66
82
  #include "RNLineJoinType.hpp"
67
83
  #include "RNLocation.hpp"
84
+ #include "RNLocationConfig.hpp"
68
85
  #include "RNLocationErrorCode.hpp"
69
86
  #include "RNLocationPermissionResult.hpp"
70
87
  #include "RNMapErrorCode.hpp"
71
88
  #include "RNMapPadding.hpp"
72
89
  #include "RNMapType.hpp"
90
+ #include "RNMapUiSettings.hpp"
73
91
  #include "RNMarker.hpp"
74
92
  #include "RNPolygon.hpp"
75
93
  #include "RNPolyline.hpp"
@@ -18,6 +18,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
18
18
  namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
19
19
  // Forward declaration of `RNLatLng` to properly resolve imports.
20
20
  namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
21
+ // Forward declaration of `RNMapUiSettings` to properly resolve imports.
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
21
23
  // Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
22
24
  namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
23
25
  // Forward declaration of `RNMapPadding` to properly resolve imports.
@@ -38,6 +40,16 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
38
40
  namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
39
41
  // Forward declaration of `RNCircle` to properly resolve imports.
40
42
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
43
+ // Forward declaration of `RNLocationConfig` to properly resolve imports.
44
+ namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
45
+ // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
46
+ namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
47
+ // Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
48
+ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
49
+ // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
50
+ namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
51
+ // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
52
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
41
53
  // Forward declaration of `RNMapErrorCode` to properly resolve imports.
42
54
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
43
55
  // Forward declaration of `RNLocation` to properly resolve imports.
@@ -58,6 +70,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
58
70
  #include <string>
59
71
  #include "RNCamera.hpp"
60
72
  #include "RNLatLng.hpp"
73
+ #include "RNMapUiSettings.hpp"
61
74
  #include "RNUserInterfaceStyle.hpp"
62
75
  #include "RNMapPadding.hpp"
63
76
  #include "RNMapType.hpp"
@@ -69,6 +82,11 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
69
82
  #include "RNLineCapType.hpp"
70
83
  #include "RNLineJoinType.hpp"
71
84
  #include "RNCircle.hpp"
85
+ #include "RNLocationConfig.hpp"
86
+ #include "RNAndroidLocationConfig.hpp"
87
+ #include "RNAndroidLocationPriority.hpp"
88
+ #include "RNIOSLocationConfig.hpp"
89
+ #include "RNIOSLocationAccuracy.hpp"
72
90
  #include "RNMapErrorCode.hpp"
73
91
  #include <functional>
74
92
  #include "RNLocation.hpp"
@@ -123,6 +141,20 @@ namespace margelo::nitro::rngooglemapsplus {
123
141
  inline void setInitialProps(const std::optional<RNInitialProps>& initialProps) noexcept override {
124
142
  _swiftPart.setInitialProps(initialProps);
125
143
  }
144
+ inline std::optional<RNMapUiSettings> getUiSettings() noexcept override {
145
+ auto __result = _swiftPart.getUiSettings();
146
+ return __result;
147
+ }
148
+ inline void setUiSettings(const std::optional<RNMapUiSettings>& uiSettings) noexcept override {
149
+ _swiftPart.setUiSettings(uiSettings);
150
+ }
151
+ inline std::optional<bool> getMyLocationEnabled() noexcept override {
152
+ auto __result = _swiftPart.getMyLocationEnabled();
153
+ return __result;
154
+ }
155
+ inline void setMyLocationEnabled(std::optional<bool> myLocationEnabled) noexcept override {
156
+ _swiftPart.setMyLocationEnabled(myLocationEnabled);
157
+ }
126
158
  inline std::optional<bool> getBuildingEnabled() noexcept override {
127
159
  auto __result = _swiftPart.getBuildingEnabled();
128
160
  return __result;
@@ -137,6 +169,13 @@ namespace margelo::nitro::rngooglemapsplus {
137
169
  inline void setTrafficEnabled(std::optional<bool> trafficEnabled) noexcept override {
138
170
  _swiftPart.setTrafficEnabled(trafficEnabled);
139
171
  }
172
+ inline std::optional<bool> getIndoorEnabled() noexcept override {
173
+ auto __result = _swiftPart.getIndoorEnabled();
174
+ return __result;
175
+ }
176
+ inline void setIndoorEnabled(std::optional<bool> indoorEnabled) noexcept override {
177
+ _swiftPart.setIndoorEnabled(indoorEnabled);
178
+ }
140
179
  inline std::optional<std::string> getCustomMapStyle() noexcept override {
141
180
  auto __result = _swiftPart.getCustomMapStyle();
142
181
  return __result;
@@ -207,6 +246,13 @@ namespace margelo::nitro::rngooglemapsplus {
207
246
  inline void setCircles(const std::optional<std::vector<RNCircle>>& circles) noexcept override {
208
247
  _swiftPart.setCircles(circles);
209
248
  }
249
+ inline std::optional<RNLocationConfig> getLocationConfig() noexcept override {
250
+ auto __result = _swiftPart.getLocationConfig();
251
+ return __result;
252
+ }
253
+ inline void setLocationConfig(const std::optional<RNLocationConfig>& locationConfig) noexcept override {
254
+ _swiftPart.setLocationConfig(locationConfig);
255
+ }
210
256
  inline std::optional<std::function<void(RNMapErrorCode /* error */)>> getOnMapError() noexcept override {
211
257
  auto __result = _swiftPart.getOnMapError();
212
258
  return __result;
@@ -76,6 +76,16 @@ using namespace margelo::nitro::rngooglemapsplus::views;
76
76
  swiftPart.setInitialProps(newViewProps.initialProps.value);
77
77
  newViewProps.initialProps.isDirty = false;
78
78
  }
79
+ // uiSettings: optional
80
+ if (newViewProps.uiSettings.isDirty) {
81
+ swiftPart.setUiSettings(newViewProps.uiSettings.value);
82
+ newViewProps.uiSettings.isDirty = false;
83
+ }
84
+ // myLocationEnabled: optional
85
+ if (newViewProps.myLocationEnabled.isDirty) {
86
+ swiftPart.setMyLocationEnabled(newViewProps.myLocationEnabled.value);
87
+ newViewProps.myLocationEnabled.isDirty = false;
88
+ }
79
89
  // buildingEnabled: optional
80
90
  if (newViewProps.buildingEnabled.isDirty) {
81
91
  swiftPart.setBuildingEnabled(newViewProps.buildingEnabled.value);
@@ -86,6 +96,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
86
96
  swiftPart.setTrafficEnabled(newViewProps.trafficEnabled.value);
87
97
  newViewProps.trafficEnabled.isDirty = false;
88
98
  }
99
+ // indoorEnabled: optional
100
+ if (newViewProps.indoorEnabled.isDirty) {
101
+ swiftPart.setIndoorEnabled(newViewProps.indoorEnabled.value);
102
+ newViewProps.indoorEnabled.isDirty = false;
103
+ }
89
104
  // customMapStyle: optional
90
105
  if (newViewProps.customMapStyle.isDirty) {
91
106
  swiftPart.setCustomMapStyle(newViewProps.customMapStyle.value);
@@ -136,6 +151,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
136
151
  swiftPart.setCircles(newViewProps.circles.value);
137
152
  newViewProps.circles.isDirty = false;
138
153
  }
154
+ // locationConfig: optional
155
+ if (newViewProps.locationConfig.isDirty) {
156
+ swiftPart.setLocationConfig(newViewProps.locationConfig.value);
157
+ newViewProps.locationConfig.isDirty = false;
158
+ }
139
159
  // onMapError: optional
140
160
  if (newViewProps.onMapError.isDirty) {
141
161
  swiftPart.setOnMapError(newViewProps.onMapError.value);
@@ -12,8 +12,11 @@ import NitroModules
12
12
  public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridView {
13
13
  // Properties
14
14
  var initialProps: RNInitialProps? { get set }
15
+ var uiSettings: RNMapUiSettings? { get set }
16
+ var myLocationEnabled: Bool? { get set }
15
17
  var buildingEnabled: Bool? { get set }
16
18
  var trafficEnabled: Bool? { get set }
19
+ var indoorEnabled: Bool? { get set }
17
20
  var customMapStyle: String? { get set }
18
21
  var userInterfaceStyle: RNUserInterfaceStyle? { get set }
19
22
  var minZoomLevel: Double? { get set }
@@ -24,6 +27,7 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
24
27
  var polygons: [RNPolygon]? { get set }
25
28
  var polylines: [RNPolyline]? { get set }
26
29
  var circles: [RNCircle]? { get set }
30
+ var locationConfig: RNLocationConfig? { get set }
27
31
  var onMapError: ((_ error: RNMapErrorCode) -> Void)? { get set }
28
32
  var onMapReady: ((_ ready: Bool) -> Void)? { get set }
29
33
  var onLocationUpdate: ((_ location: RNLocation) -> Void)? { get set }