react-native-google-maps-plus 1.0.3-dev.1 → 1.1.0-dev.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.
Files changed (92) hide show
  1. package/RNGoogleMapsPlus.podspec +2 -0
  2. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +122 -29
  3. package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +44 -44
  4. package/android/src/main/java/com/rngooglemapsplus/{MapCircle.kt → MapCircleBuilder.kt} +2 -12
  5. package/android/src/main/java/com/rngooglemapsplus/{MapMarker.kt → MapMarkerBuilder.kt} +23 -27
  6. package/android/src/main/java/com/rngooglemapsplus/{MapPolygon.kt → MapPolygonBuilder.kt} +2 -18
  7. package/android/src/main/java/com/rngooglemapsplus/{MapPolyline.kt → MapPolylineBuilder.kt.kt} +2 -19
  8. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +45 -54
  9. package/android/src/main/java/com/rngooglemapsplus/extensions/RNCameraExtension.kt +19 -0
  10. package/android/src/main/java/com/rngooglemapsplus/extensions/RNLocationPriorityExtension.kt +12 -0
  11. package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapCircleExtension.kt +14 -0
  12. package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +17 -0
  13. package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +20 -0
  14. package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +21 -0
  15. package/android/src/main/java/com/rngooglemapsplus/extensions/RNUserInterfaceExtension.kt +12 -0
  16. package/android/src/main/java/com/rngooglemapsplus/{Color.kt → extensions/StringExtension.kt} +1 -1
  17. package/android/src/main/java/com/rngooglemapsplus/extensions/ThrowableExtension.kt +38 -0
  18. package/ios/GoogleMapViewImpl.swift +165 -22
  19. package/ios/LocationHandler.swift +29 -69
  20. package/ios/MapCircleBuilder.swift +20 -0
  21. package/ios/{MapMarker.swift → MapMarkerBuilder.swift} +17 -32
  22. package/ios/MapPolygonBuilder.swift +20 -0
  23. package/ios/MapPolylineBuilder.swift +24 -0
  24. package/ios/RNGoogleMapsPlusView.swift +63 -116
  25. package/ios/extensions/RNCamera+Extension.swift +22 -0
  26. package/ios/{MapCircle.swift → extensions/RNCircle+Extension.swift} +0 -19
  27. package/ios/extensions/RNIOSLocationAccuracy+Extensions.swift +19 -0
  28. package/ios/extensions/RNMarker+Extension.swift +25 -0
  29. package/ios/{MapPolygon.swift → extensions/RNPolygon+Extension.swift.swift} +0 -19
  30. package/ios/{MapPolyline.swift → extensions/RNPolyline+Extension.swift.swift} +16 -39
  31. package/ios/extensions/RNUserInterface+Extension.swift +16 -0
  32. package/lib/module/types.js +14 -0
  33. package/lib/module/types.js.map +1 -1
  34. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +5 -1
  35. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  36. package/lib/typescript/src/types.d.ts +43 -2
  37. package/lib/typescript/src/types.d.ts.map +1 -1
  38. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +64 -0
  39. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +8 -0
  40. package/nitrogen/generated/android/c++/JRNAndroidLocationConfig.hpp +63 -0
  41. package/nitrogen/generated/android/c++/JRNAndroidLocationPriority.hpp +65 -0
  42. package/nitrogen/generated/android/c++/JRNIOSLocationAccuracy.hpp +65 -0
  43. package/nitrogen/generated/android/c++/JRNIOSLocationConfig.hpp +59 -0
  44. package/nitrogen/generated/android/c++/JRNInitialProps.hpp +4 -4
  45. package/nitrogen/generated/android/c++/JRNLocationConfig.hpp +65 -0
  46. package/nitrogen/generated/android/c++/JRNMapUiSettings.hpp +93 -0
  47. package/nitrogen/generated/android/c++/JRNMarker.hpp +6 -12
  48. package/nitrogen/generated/android/c++/JRNMarkerSvg.hpp +61 -0
  49. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +16 -0
  50. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +24 -0
  51. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNAndroidLocationConfig.kt +35 -0
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNAndroidLocationPriority.kt +23 -0
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationAccuracy.kt +23 -0
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIOSLocationConfig.kt +32 -0
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +1 -1
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLocationConfig.kt +32 -0
  57. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapUiSettings.kt +59 -0
  58. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +1 -7
  59. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarkerSvg.kt +35 -0
  60. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +126 -0
  61. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +21 -0
  62. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +49 -0
  63. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +20 -0
  64. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +4 -0
  65. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +82 -0
  66. package/nitrogen/generated/ios/swift/RNAndroidLocationConfig.swift +93 -0
  67. package/nitrogen/generated/ios/swift/RNAndroidLocationPriority.swift +48 -0
  68. package/nitrogen/generated/ios/swift/RNIOSLocationAccuracy.swift +48 -0
  69. package/nitrogen/generated/ios/swift/RNIOSLocationConfig.swift +70 -0
  70. package/nitrogen/generated/ios/swift/RNInitialProps.swift +6 -6
  71. package/nitrogen/generated/ios/swift/RNLocationConfig.swift +84 -0
  72. package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +277 -0
  73. package/nitrogen/generated/ios/swift/RNMarker.swift +24 -27
  74. package/nitrogen/generated/ios/swift/RNMarkerSvg.swift +57 -0
  75. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +8 -0
  76. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +14 -0
  77. package/nitrogen/generated/shared/c++/RNAndroidLocationConfig.hpp +77 -0
  78. package/nitrogen/generated/shared/c++/RNAndroidLocationPriority.hpp +64 -0
  79. package/nitrogen/generated/shared/c++/RNIOSLocationAccuracy.hpp +64 -0
  80. package/nitrogen/generated/shared/c++/RNIOSLocationConfig.hpp +73 -0
  81. package/nitrogen/generated/shared/c++/RNInitialProps.hpp +5 -5
  82. package/nitrogen/generated/shared/c++/RNLocationConfig.hpp +76 -0
  83. package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +107 -0
  84. package/nitrogen/generated/shared/c++/RNMarker.hpp +8 -13
  85. package/nitrogen/generated/shared/c++/RNMarkerSvg.hpp +75 -0
  86. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +48 -0
  87. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +6 -0
  88. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +4 -0
  89. package/package.json +1 -1
  90. package/src/RNGoogleMapsPlusView.nitro.ts +6 -0
  91. package/src/types.ts +49 -2
  92. /package/ios/{Color.swift → extensions/String+Extensions.swift} +0 -0
@@ -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,10 @@ 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; }
55
+ // Forward declaration of `RNMarkerSvg` to properly resolve imports.
56
+ namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
43
57
  // Forward declaration of `RNMarker` to properly resolve imports.
44
58
  namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
45
59
  // Forward declaration of `RNPolygon` to properly resolve imports.
@@ -62,21 +76,28 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
62
76
  // Include C++ defined types
63
77
  #include "HybridRNGoogleMapsPlusModuleSpec.hpp"
64
78
  #include "HybridRNGoogleMapsPlusViewSpec.hpp"
79
+ #include "RNAndroidLocationConfig.hpp"
65
80
  #include "RNAndroidLocationPermissionResult.hpp"
81
+ #include "RNAndroidLocationPriority.hpp"
66
82
  #include "RNCamera.hpp"
67
83
  #include "RNCircle.hpp"
84
+ #include "RNIOSLocationAccuracy.hpp"
85
+ #include "RNIOSLocationConfig.hpp"
68
86
  #include "RNIOSPermissionResult.hpp"
69
87
  #include "RNInitialProps.hpp"
70
88
  #include "RNLatLng.hpp"
71
89
  #include "RNLineCapType.hpp"
72
90
  #include "RNLineJoinType.hpp"
73
91
  #include "RNLocation.hpp"
92
+ #include "RNLocationConfig.hpp"
74
93
  #include "RNLocationErrorCode.hpp"
75
94
  #include "RNLocationPermissionResult.hpp"
76
95
  #include "RNMapErrorCode.hpp"
77
96
  #include "RNMapPadding.hpp"
78
97
  #include "RNMapType.hpp"
98
+ #include "RNMapUiSettings.hpp"
79
99
  #include "RNMarker.hpp"
100
+ #include "RNMarkerSvg.hpp"
80
101
  #include "RNPolygon.hpp"
81
102
  #include "RNPolyline.hpp"
82
103
  #include "RNPosition.hpp"
@@ -313,6 +334,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
313
334
  return *optional;
314
335
  }
315
336
 
337
+ // pragma MARK: std::optional<RNMapUiSettings>
338
+ /**
339
+ * Specialized version of `std::optional<RNMapUiSettings>`.
340
+ */
341
+ using std__optional_RNMapUiSettings_ = std::optional<RNMapUiSettings>;
342
+ inline std::optional<RNMapUiSettings> create_std__optional_RNMapUiSettings_(const RNMapUiSettings& value) noexcept {
343
+ return std::optional<RNMapUiSettings>(value);
344
+ }
345
+ inline bool has_value_std__optional_RNMapUiSettings_(const std::optional<RNMapUiSettings>& optional) noexcept {
346
+ return optional.has_value();
347
+ }
348
+ inline RNMapUiSettings get_std__optional_RNMapUiSettings_(const std::optional<RNMapUiSettings>& optional) noexcept {
349
+ return *optional;
350
+ }
351
+
316
352
  // pragma MARK: std::optional<RNUserInterfaceStyle>
317
353
  /**
318
354
  * Specialized version of `std::optional<RNUserInterfaceStyle>`.
@@ -373,6 +409,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
373
409
  return *optional;
374
410
  }
375
411
 
412
+ // pragma MARK: std::optional<RNMarkerSvg>
413
+ /**
414
+ * Specialized version of `std::optional<RNMarkerSvg>`.
415
+ */
416
+ using std__optional_RNMarkerSvg_ = std::optional<RNMarkerSvg>;
417
+ inline std::optional<RNMarkerSvg> create_std__optional_RNMarkerSvg_(const RNMarkerSvg& value) noexcept {
418
+ return std::optional<RNMarkerSvg>(value);
419
+ }
420
+ inline bool has_value_std__optional_RNMarkerSvg_(const std::optional<RNMarkerSvg>& optional) noexcept {
421
+ return optional.has_value();
422
+ }
423
+ inline RNMarkerSvg get_std__optional_RNMarkerSvg_(const std::optional<RNMarkerSvg>& optional) noexcept {
424
+ return *optional;
425
+ }
426
+
376
427
  // pragma MARK: std::vector<RNMarker>
377
428
  /**
378
429
  * Specialized version of `std::vector<RNMarker>`.
@@ -518,6 +569,81 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
518
569
  return *optional;
519
570
  }
520
571
 
572
+ // pragma MARK: std::optional<RNAndroidLocationPriority>
573
+ /**
574
+ * Specialized version of `std::optional<RNAndroidLocationPriority>`.
575
+ */
576
+ using std__optional_RNAndroidLocationPriority_ = std::optional<RNAndroidLocationPriority>;
577
+ inline std::optional<RNAndroidLocationPriority> create_std__optional_RNAndroidLocationPriority_(const RNAndroidLocationPriority& value) noexcept {
578
+ return std::optional<RNAndroidLocationPriority>(value);
579
+ }
580
+ inline bool has_value_std__optional_RNAndroidLocationPriority_(const std::optional<RNAndroidLocationPriority>& optional) noexcept {
581
+ return optional.has_value();
582
+ }
583
+ inline RNAndroidLocationPriority get_std__optional_RNAndroidLocationPriority_(const std::optional<RNAndroidLocationPriority>& optional) noexcept {
584
+ return *optional;
585
+ }
586
+
587
+ // pragma MARK: std::optional<RNAndroidLocationConfig>
588
+ /**
589
+ * Specialized version of `std::optional<RNAndroidLocationConfig>`.
590
+ */
591
+ using std__optional_RNAndroidLocationConfig_ = std::optional<RNAndroidLocationConfig>;
592
+ inline std::optional<RNAndroidLocationConfig> create_std__optional_RNAndroidLocationConfig_(const RNAndroidLocationConfig& value) noexcept {
593
+ return std::optional<RNAndroidLocationConfig>(value);
594
+ }
595
+ inline bool has_value_std__optional_RNAndroidLocationConfig_(const std::optional<RNAndroidLocationConfig>& optional) noexcept {
596
+ return optional.has_value();
597
+ }
598
+ inline RNAndroidLocationConfig get_std__optional_RNAndroidLocationConfig_(const std::optional<RNAndroidLocationConfig>& optional) noexcept {
599
+ return *optional;
600
+ }
601
+
602
+ // pragma MARK: std::optional<RNIOSLocationAccuracy>
603
+ /**
604
+ * Specialized version of `std::optional<RNIOSLocationAccuracy>`.
605
+ */
606
+ using std__optional_RNIOSLocationAccuracy_ = std::optional<RNIOSLocationAccuracy>;
607
+ inline std::optional<RNIOSLocationAccuracy> create_std__optional_RNIOSLocationAccuracy_(const RNIOSLocationAccuracy& value) noexcept {
608
+ return std::optional<RNIOSLocationAccuracy>(value);
609
+ }
610
+ inline bool has_value_std__optional_RNIOSLocationAccuracy_(const std::optional<RNIOSLocationAccuracy>& optional) noexcept {
611
+ return optional.has_value();
612
+ }
613
+ inline RNIOSLocationAccuracy get_std__optional_RNIOSLocationAccuracy_(const std::optional<RNIOSLocationAccuracy>& optional) noexcept {
614
+ return *optional;
615
+ }
616
+
617
+ // pragma MARK: std::optional<RNIOSLocationConfig>
618
+ /**
619
+ * Specialized version of `std::optional<RNIOSLocationConfig>`.
620
+ */
621
+ using std__optional_RNIOSLocationConfig_ = std::optional<RNIOSLocationConfig>;
622
+ inline std::optional<RNIOSLocationConfig> create_std__optional_RNIOSLocationConfig_(const RNIOSLocationConfig& value) noexcept {
623
+ return std::optional<RNIOSLocationConfig>(value);
624
+ }
625
+ inline bool has_value_std__optional_RNIOSLocationConfig_(const std::optional<RNIOSLocationConfig>& optional) noexcept {
626
+ return optional.has_value();
627
+ }
628
+ inline RNIOSLocationConfig get_std__optional_RNIOSLocationConfig_(const std::optional<RNIOSLocationConfig>& optional) noexcept {
629
+ return *optional;
630
+ }
631
+
632
+ // pragma MARK: std::optional<RNLocationConfig>
633
+ /**
634
+ * Specialized version of `std::optional<RNLocationConfig>`.
635
+ */
636
+ using std__optional_RNLocationConfig_ = std::optional<RNLocationConfig>;
637
+ inline std::optional<RNLocationConfig> create_std__optional_RNLocationConfig_(const RNLocationConfig& value) noexcept {
638
+ return std::optional<RNLocationConfig>(value);
639
+ }
640
+ inline bool has_value_std__optional_RNLocationConfig_(const std::optional<RNLocationConfig>& optional) noexcept {
641
+ return optional.has_value();
642
+ }
643
+ inline RNLocationConfig get_std__optional_RNLocationConfig_(const std::optional<RNLocationConfig>& optional) noexcept {
644
+ return *optional;
645
+ }
646
+
521
647
  // pragma MARK: std::function<void(RNMapErrorCode /* error */)>
522
648
  /**
523
649
  * 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,10 @@ 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; }
55
+ // Forward declaration of `RNMarkerSvg` to properly resolve imports.
56
+ namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
43
57
  // Forward declaration of `RNMarker` to properly resolve imports.
44
58
  namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
45
59
  // Forward declaration of `RNPolygon` to properly resolve imports.
@@ -56,21 +70,28 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
56
70
  // Include C++ defined types
57
71
  #include "HybridRNGoogleMapsPlusModuleSpec.hpp"
58
72
  #include "HybridRNGoogleMapsPlusViewSpec.hpp"
73
+ #include "RNAndroidLocationConfig.hpp"
59
74
  #include "RNAndroidLocationPermissionResult.hpp"
75
+ #include "RNAndroidLocationPriority.hpp"
60
76
  #include "RNCamera.hpp"
61
77
  #include "RNCircle.hpp"
78
+ #include "RNIOSLocationAccuracy.hpp"
79
+ #include "RNIOSLocationConfig.hpp"
62
80
  #include "RNIOSPermissionResult.hpp"
63
81
  #include "RNInitialProps.hpp"
64
82
  #include "RNLatLng.hpp"
65
83
  #include "RNLineCapType.hpp"
66
84
  #include "RNLineJoinType.hpp"
67
85
  #include "RNLocation.hpp"
86
+ #include "RNLocationConfig.hpp"
68
87
  #include "RNLocationErrorCode.hpp"
69
88
  #include "RNLocationPermissionResult.hpp"
70
89
  #include "RNMapErrorCode.hpp"
71
90
  #include "RNMapPadding.hpp"
72
91
  #include "RNMapType.hpp"
92
+ #include "RNMapUiSettings.hpp"
73
93
  #include "RNMarker.hpp"
94
+ #include "RNMarkerSvg.hpp"
74
95
  #include "RNPolygon.hpp"
75
96
  #include "RNPolyline.hpp"
76
97
  #include "RNPosition.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.
@@ -28,6 +30,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
28
30
  namespace margelo::nitro::rngooglemapsplus { struct RNMarker; }
29
31
  // Forward declaration of `RNPosition` to properly resolve imports.
30
32
  namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
33
+ // Forward declaration of `RNMarkerSvg` to properly resolve imports.
34
+ namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
31
35
  // Forward declaration of `RNPolygon` to properly resolve imports.
32
36
  namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
33
37
  // Forward declaration of `RNPolyline` to properly resolve imports.
@@ -38,6 +42,16 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
38
42
  namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
39
43
  // Forward declaration of `RNCircle` to properly resolve imports.
40
44
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
45
+ // Forward declaration of `RNLocationConfig` to properly resolve imports.
46
+ namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
47
+ // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
48
+ namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
49
+ // Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
50
+ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
51
+ // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
52
+ namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
53
+ // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
54
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
41
55
  // Forward declaration of `RNMapErrorCode` to properly resolve imports.
42
56
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
43
57
  // Forward declaration of `RNLocation` to properly resolve imports.
@@ -58,17 +72,24 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
58
72
  #include <string>
59
73
  #include "RNCamera.hpp"
60
74
  #include "RNLatLng.hpp"
75
+ #include "RNMapUiSettings.hpp"
61
76
  #include "RNUserInterfaceStyle.hpp"
62
77
  #include "RNMapPadding.hpp"
63
78
  #include "RNMapType.hpp"
64
79
  #include "RNMarker.hpp"
65
80
  #include <vector>
66
81
  #include "RNPosition.hpp"
82
+ #include "RNMarkerSvg.hpp"
67
83
  #include "RNPolygon.hpp"
68
84
  #include "RNPolyline.hpp"
69
85
  #include "RNLineCapType.hpp"
70
86
  #include "RNLineJoinType.hpp"
71
87
  #include "RNCircle.hpp"
88
+ #include "RNLocationConfig.hpp"
89
+ #include "RNAndroidLocationConfig.hpp"
90
+ #include "RNAndroidLocationPriority.hpp"
91
+ #include "RNIOSLocationConfig.hpp"
92
+ #include "RNIOSLocationAccuracy.hpp"
72
93
  #include "RNMapErrorCode.hpp"
73
94
  #include <functional>
74
95
  #include "RNLocation.hpp"
@@ -123,6 +144,20 @@ namespace margelo::nitro::rngooglemapsplus {
123
144
  inline void setInitialProps(const std::optional<RNInitialProps>& initialProps) noexcept override {
124
145
  _swiftPart.setInitialProps(initialProps);
125
146
  }
147
+ inline std::optional<RNMapUiSettings> getUiSettings() noexcept override {
148
+ auto __result = _swiftPart.getUiSettings();
149
+ return __result;
150
+ }
151
+ inline void setUiSettings(const std::optional<RNMapUiSettings>& uiSettings) noexcept override {
152
+ _swiftPart.setUiSettings(uiSettings);
153
+ }
154
+ inline std::optional<bool> getMyLocationEnabled() noexcept override {
155
+ auto __result = _swiftPart.getMyLocationEnabled();
156
+ return __result;
157
+ }
158
+ inline void setMyLocationEnabled(std::optional<bool> myLocationEnabled) noexcept override {
159
+ _swiftPart.setMyLocationEnabled(myLocationEnabled);
160
+ }
126
161
  inline std::optional<bool> getBuildingEnabled() noexcept override {
127
162
  auto __result = _swiftPart.getBuildingEnabled();
128
163
  return __result;
@@ -137,6 +172,13 @@ namespace margelo::nitro::rngooglemapsplus {
137
172
  inline void setTrafficEnabled(std::optional<bool> trafficEnabled) noexcept override {
138
173
  _swiftPart.setTrafficEnabled(trafficEnabled);
139
174
  }
175
+ inline std::optional<bool> getIndoorEnabled() noexcept override {
176
+ auto __result = _swiftPart.getIndoorEnabled();
177
+ return __result;
178
+ }
179
+ inline void setIndoorEnabled(std::optional<bool> indoorEnabled) noexcept override {
180
+ _swiftPart.setIndoorEnabled(indoorEnabled);
181
+ }
140
182
  inline std::optional<std::string> getCustomMapStyle() noexcept override {
141
183
  auto __result = _swiftPart.getCustomMapStyle();
142
184
  return __result;
@@ -207,6 +249,13 @@ namespace margelo::nitro::rngooglemapsplus {
207
249
  inline void setCircles(const std::optional<std::vector<RNCircle>>& circles) noexcept override {
208
250
  _swiftPart.setCircles(circles);
209
251
  }
252
+ inline std::optional<RNLocationConfig> getLocationConfig() noexcept override {
253
+ auto __result = _swiftPart.getLocationConfig();
254
+ return __result;
255
+ }
256
+ inline void setLocationConfig(const std::optional<RNLocationConfig>& locationConfig) noexcept override {
257
+ _swiftPart.setLocationConfig(locationConfig);
258
+ }
210
259
  inline std::optional<std::function<void(RNMapErrorCode /* error */)>> getOnMapError() noexcept override {
211
260
  auto __result = _swiftPart.getOnMapError();
212
261
  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 }
@@ -130,6 +130,47 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
130
130
  }
131
131
  }
132
132
 
133
+ public final var uiSettings: bridge.std__optional_RNMapUiSettings_ {
134
+ @inline(__always)
135
+ get {
136
+ return { () -> bridge.std__optional_RNMapUiSettings_ in
137
+ if let __unwrappedValue = self.__implementation.uiSettings {
138
+ return bridge.create_std__optional_RNMapUiSettings_(__unwrappedValue)
139
+ } else {
140
+ return .init()
141
+ }
142
+ }()
143
+ }
144
+ @inline(__always)
145
+ set {
146
+ self.__implementation.uiSettings = { () -> RNMapUiSettings? in
147
+ if bridge.has_value_std__optional_RNMapUiSettings_(newValue) {
148
+ let __unwrapped = bridge.get_std__optional_RNMapUiSettings_(newValue)
149
+ return __unwrapped
150
+ } else {
151
+ return nil
152
+ }
153
+ }()
154
+ }
155
+ }
156
+
157
+ public final var myLocationEnabled: bridge.std__optional_bool_ {
158
+ @inline(__always)
159
+ get {
160
+ return { () -> bridge.std__optional_bool_ in
161
+ if let __unwrappedValue = self.__implementation.myLocationEnabled {
162
+ return bridge.create_std__optional_bool_(__unwrappedValue)
163
+ } else {
164
+ return .init()
165
+ }
166
+ }()
167
+ }
168
+ @inline(__always)
169
+ set {
170
+ self.__implementation.myLocationEnabled = newValue.value
171
+ }
172
+ }
173
+
133
174
  public final var buildingEnabled: bridge.std__optional_bool_ {
134
175
  @inline(__always)
135
176
  get {
@@ -164,6 +205,23 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
164
205
  }
165
206
  }
166
207
 
208
+ public final var indoorEnabled: bridge.std__optional_bool_ {
209
+ @inline(__always)
210
+ get {
211
+ return { () -> bridge.std__optional_bool_ in
212
+ if let __unwrappedValue = self.__implementation.indoorEnabled {
213
+ return bridge.create_std__optional_bool_(__unwrappedValue)
214
+ } else {
215
+ return .init()
216
+ }
217
+ }()
218
+ }
219
+ @inline(__always)
220
+ set {
221
+ self.__implementation.indoorEnabled = newValue.value
222
+ }
223
+ }
224
+
167
225
  public final var customMapStyle: bridge.std__optional_std__string_ {
168
226
  @inline(__always)
169
227
  get {
@@ -400,6 +458,30 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
400
458
  }
401
459
  }
402
460
 
461
+ public final var locationConfig: bridge.std__optional_RNLocationConfig_ {
462
+ @inline(__always)
463
+ get {
464
+ return { () -> bridge.std__optional_RNLocationConfig_ in
465
+ if let __unwrappedValue = self.__implementation.locationConfig {
466
+ return bridge.create_std__optional_RNLocationConfig_(__unwrappedValue)
467
+ } else {
468
+ return .init()
469
+ }
470
+ }()
471
+ }
472
+ @inline(__always)
473
+ set {
474
+ self.__implementation.locationConfig = { () -> RNLocationConfig? in
475
+ if bridge.has_value_std__optional_RNLocationConfig_(newValue) {
476
+ let __unwrapped = bridge.get_std__optional_RNLocationConfig_(newValue)
477
+ return __unwrapped
478
+ } else {
479
+ return nil
480
+ }
481
+ }()
482
+ }
483
+ }
484
+
403
485
  public final var onMapError: bridge.std__optional_std__function_void_RNMapErrorCode____error______ {
404
486
  @inline(__always)
405
487
  get {
@@ -0,0 +1,93 @@
1
+ ///
2
+ /// RNAndroidLocationConfig.swift
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
+ import NitroModules
9
+
10
+ /**
11
+ * Represents an instance of `RNAndroidLocationConfig`, backed by a C++ struct.
12
+ */
13
+ public typealias RNAndroidLocationConfig = margelo.nitro.rngooglemapsplus.RNAndroidLocationConfig
14
+
15
+ public extension RNAndroidLocationConfig {
16
+ private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ /**
19
+ * Create a new instance of `RNAndroidLocationConfig`.
20
+ */
21
+ init(priority: RNAndroidLocationPriority?, interval: Double?, minUpdateInterval: Double?) {
22
+ self.init({ () -> bridge.std__optional_RNAndroidLocationPriority_ in
23
+ if let __unwrappedValue = priority {
24
+ return bridge.create_std__optional_RNAndroidLocationPriority_(__unwrappedValue)
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_double_ in
29
+ if let __unwrappedValue = interval {
30
+ return bridge.create_std__optional_double_(__unwrappedValue)
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), { () -> bridge.std__optional_double_ in
35
+ if let __unwrappedValue = minUpdateInterval {
36
+ return bridge.create_std__optional_double_(__unwrappedValue)
37
+ } else {
38
+ return .init()
39
+ }
40
+ }())
41
+ }
42
+
43
+ var priority: RNAndroidLocationPriority? {
44
+ @inline(__always)
45
+ get {
46
+ return self.__priority.has_value() ? self.__priority.pointee : nil
47
+ }
48
+ @inline(__always)
49
+ set {
50
+ self.__priority = { () -> bridge.std__optional_RNAndroidLocationPriority_ in
51
+ if let __unwrappedValue = newValue {
52
+ return bridge.create_std__optional_RNAndroidLocationPriority_(__unwrappedValue)
53
+ } else {
54
+ return .init()
55
+ }
56
+ }()
57
+ }
58
+ }
59
+
60
+ var interval: Double? {
61
+ @inline(__always)
62
+ get {
63
+ return self.__interval.value
64
+ }
65
+ @inline(__always)
66
+ set {
67
+ self.__interval = { () -> bridge.std__optional_double_ in
68
+ if let __unwrappedValue = newValue {
69
+ return bridge.create_std__optional_double_(__unwrappedValue)
70
+ } else {
71
+ return .init()
72
+ }
73
+ }()
74
+ }
75
+ }
76
+
77
+ var minUpdateInterval: Double? {
78
+ @inline(__always)
79
+ get {
80
+ return self.__minUpdateInterval.value
81
+ }
82
+ @inline(__always)
83
+ set {
84
+ self.__minUpdateInterval = { () -> bridge.std__optional_double_ in
85
+ if let __unwrappedValue = newValue {
86
+ return bridge.create_std__optional_double_(__unwrappedValue)
87
+ } else {
88
+ return .init()
89
+ }
90
+ }()
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,48 @@
1
+ ///
2
+ /// RNAndroidLocationPriority.swift
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
+ /**
9
+ * Represents the JS enum `RNAndroidLocationPriority`, backed by a C++ enum.
10
+ */
11
+ public typealias RNAndroidLocationPriority = margelo.nitro.rngooglemapsplus.RNAndroidLocationPriority
12
+
13
+ public extension RNAndroidLocationPriority {
14
+ /**
15
+ * Get a RNAndroidLocationPriority for the given String value, or
16
+ * return `nil` if the given value was invalid/unknown.
17
+ */
18
+ init?(fromString string: String) {
19
+ switch string {
20
+ case "PRIORITY_HIGH_ACCURACY":
21
+ self = .priorityHighAccuracy
22
+ case "PRIORITY_BALANCED_POWER_ACCURACY":
23
+ self = .priorityBalancedPowerAccuracy
24
+ case "PRIORITY_LOW_POWER":
25
+ self = .priorityLowPower
26
+ case "PRIORITY_PASSIVE":
27
+ self = .priorityPassive
28
+ default:
29
+ return nil
30
+ }
31
+ }
32
+
33
+ /**
34
+ * Get the String value this RNAndroidLocationPriority represents.
35
+ */
36
+ var stringValue: String {
37
+ switch self {
38
+ case .priorityHighAccuracy:
39
+ return "PRIORITY_HIGH_ACCURACY"
40
+ case .priorityBalancedPowerAccuracy:
41
+ return "PRIORITY_BALANCED_POWER_ACCURACY"
42
+ case .priorityLowPower:
43
+ return "PRIORITY_LOW_POWER"
44
+ case .priorityPassive:
45
+ return "PRIORITY_PASSIVE"
46
+ }
47
+ }
48
+ }