react-native-google-maps-plus 1.1.0-dev.2 → 1.1.0-dev.4

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 (67) hide show
  1. package/README.md +7 -5
  2. package/RNGoogleMapsPlus.podspec +2 -1
  3. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +91 -102
  4. package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +3 -3
  5. package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +16 -2
  6. package/android/src/main/java/com/rngooglemapsplus/MapHeatmapBuilder.kt +31 -0
  7. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +25 -0
  8. package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +18 -1
  9. package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +26 -9
  10. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +61 -71
  11. package/android/src/main/java/com/rngooglemapsplus/extensions/RNHeatmapPointExtension.kt +9 -0
  12. package/ios/GoogleMapViewImpl.swift +129 -213
  13. package/ios/LocationHandler.swift +2 -10
  14. package/ios/MapCircleBuilder.swift +23 -8
  15. package/ios/MapHeatmapBuilder.swift +27 -0
  16. package/ios/MapHelper.swift +6 -4
  17. package/ios/MapMarkerBuilder.swift +39 -41
  18. package/ios/MapPolygonBuilder.swift +25 -7
  19. package/ios/MapPolylineBuilder.swift +27 -11
  20. package/ios/RNGoogleMapsPlusView.swift +31 -14
  21. package/ios/extensions/RNCircle+Extension.swift +0 -13
  22. package/ios/extensions/RNHeatmap+Extension.swift +16 -0
  23. package/ios/extensions/RNPolygon+Extension.swift.swift +2 -19
  24. package/ios/extensions/RNPolyline+Extension.swift.swift +1 -26
  25. package/lib/module/types.js.map +1 -1
  26. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +3 -3
  27. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  28. package/lib/typescript/src/types.d.ts +24 -1
  29. package/lib/typescript/src/types.d.ts.map +1 -1
  30. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +48 -15
  31. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +4 -4
  32. package/nitrogen/generated/android/c++/JRNCircle.hpp +4 -4
  33. package/nitrogen/generated/android/c++/JRNHeatmap.hpp +100 -0
  34. package/nitrogen/generated/android/c++/JRNHeatmapGradient.hpp +89 -0
  35. package/nitrogen/generated/android/c++/JRNHeatmapPoint.hpp +61 -0
  36. package/nitrogen/generated/android/c++/JRNMapZoomConfig.hpp +57 -0
  37. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +6 -6
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +7 -7
  39. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCircle.kt +1 -1
  40. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmap.kt +47 -0
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapGradient.kt +35 -0
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNHeatmapPoint.kt +35 -0
  43. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapZoomConfig.kt +32 -0
  44. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +101 -0
  45. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +12 -0
  46. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +23 -11
  47. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +9 -9
  48. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +2 -2
  49. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +39 -19
  50. package/nitrogen/generated/ios/swift/RNCircle.swift +5 -17
  51. package/nitrogen/generated/ios/swift/RNHeatmap.swift +180 -0
  52. package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +81 -0
  53. package/nitrogen/generated/ios/swift/RNHeatmapPoint.swift +57 -0
  54. package/nitrogen/generated/ios/swift/RNMapZoomConfig.swift +70 -0
  55. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +4 -4
  56. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +10 -4
  57. package/nitrogen/generated/shared/c++/RNCircle.hpp +5 -5
  58. package/nitrogen/generated/shared/c++/RNHeatmap.hpp +98 -0
  59. package/nitrogen/generated/shared/c++/RNHeatmapGradient.hpp +76 -0
  60. package/nitrogen/generated/shared/c++/RNHeatmapPoint.hpp +75 -0
  61. package/nitrogen/generated/shared/c++/RNMapZoomConfig.hpp +71 -0
  62. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +19 -19
  63. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +4 -2
  64. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +2 -2
  65. package/package.json +12 -12
  66. package/src/RNGoogleMapsPlusView.nitro.ts +4 -2
  67. package/src/types.ts +28 -1
@@ -22,6 +22,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriorit
22
22
  namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
23
23
  // Forward declaration of `RNCircle` to properly resolve imports.
24
24
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
25
+ // Forward declaration of `RNHeatmapGradient` to properly resolve imports.
26
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
27
+ // Forward declaration of `RNHeatmapPoint` to properly resolve imports.
28
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
29
+ // Forward declaration of `RNHeatmap` to properly resolve imports.
30
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmap; }
25
31
  // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
26
32
  namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
27
33
  // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
@@ -52,6 +58,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
52
58
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
53
59
  // Forward declaration of `RNMapUiSettings` to properly resolve imports.
54
60
  namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
61
+ // Forward declaration of `RNMapZoomConfig` to properly resolve imports.
62
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
55
63
  // Forward declaration of `RNMarkerSvg` to properly resolve imports.
56
64
  namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
57
65
  // Forward declaration of `RNMarker` to properly resolve imports.
@@ -81,6 +89,9 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
81
89
  #include "RNAndroidLocationPriority.hpp"
82
90
  #include "RNCamera.hpp"
83
91
  #include "RNCircle.hpp"
92
+ #include "RNHeatmap.hpp"
93
+ #include "RNHeatmapGradient.hpp"
94
+ #include "RNHeatmapPoint.hpp"
84
95
  #include "RNIOSLocationAccuracy.hpp"
85
96
  #include "RNIOSLocationConfig.hpp"
86
97
  #include "RNIOSPermissionResult.hpp"
@@ -96,6 +107,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
96
107
  #include "RNMapPadding.hpp"
97
108
  #include "RNMapType.hpp"
98
109
  #include "RNMapUiSettings.hpp"
110
+ #include "RNMapZoomConfig.hpp"
99
111
  #include "RNMarker.hpp"
100
112
  #include "RNMarkerSvg.hpp"
101
113
  #include "RNPolygon.hpp"
@@ -364,6 +376,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
364
376
  return *optional;
365
377
  }
366
378
 
379
+ // pragma MARK: std::optional<RNMapZoomConfig>
380
+ /**
381
+ * Specialized version of `std::optional<RNMapZoomConfig>`.
382
+ */
383
+ using std__optional_RNMapZoomConfig_ = std::optional<RNMapZoomConfig>;
384
+ inline std::optional<RNMapZoomConfig> create_std__optional_RNMapZoomConfig_(const RNMapZoomConfig& value) noexcept {
385
+ return std::optional<RNMapZoomConfig>(value);
386
+ }
387
+ inline bool has_value_std__optional_RNMapZoomConfig_(const std::optional<RNMapZoomConfig>& optional) noexcept {
388
+ return optional.has_value();
389
+ }
390
+ inline RNMapZoomConfig get_std__optional_RNMapZoomConfig_(const std::optional<RNMapZoomConfig>& optional) noexcept {
391
+ return *optional;
392
+ }
393
+
367
394
  // pragma MARK: std::optional<RNMapPadding>
368
395
  /**
369
396
  * Specialized version of `std::optional<RNMapPadding>`.
@@ -569,6 +596,80 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
569
596
  return *optional;
570
597
  }
571
598
 
599
+ // pragma MARK: std::vector<RNHeatmapPoint>
600
+ /**
601
+ * Specialized version of `std::vector<RNHeatmapPoint>`.
602
+ */
603
+ using std__vector_RNHeatmapPoint_ = std::vector<RNHeatmapPoint>;
604
+ inline std::vector<RNHeatmapPoint> create_std__vector_RNHeatmapPoint_(size_t size) noexcept {
605
+ std::vector<RNHeatmapPoint> vector;
606
+ vector.reserve(size);
607
+ return vector;
608
+ }
609
+
610
+ // pragma MARK: std::vector<std::string>
611
+ /**
612
+ * Specialized version of `std::vector<std::string>`.
613
+ */
614
+ using std__vector_std__string_ = std::vector<std::string>;
615
+ inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
616
+ std::vector<std::string> vector;
617
+ vector.reserve(size);
618
+ return vector;
619
+ }
620
+
621
+ // pragma MARK: std::vector<double>
622
+ /**
623
+ * Specialized version of `std::vector<double>`.
624
+ */
625
+ using std__vector_double_ = std::vector<double>;
626
+ inline std::vector<double> create_std__vector_double_(size_t size) noexcept {
627
+ std::vector<double> vector;
628
+ vector.reserve(size);
629
+ return vector;
630
+ }
631
+
632
+ // pragma MARK: std::optional<RNHeatmapGradient>
633
+ /**
634
+ * Specialized version of `std::optional<RNHeatmapGradient>`.
635
+ */
636
+ using std__optional_RNHeatmapGradient_ = std::optional<RNHeatmapGradient>;
637
+ inline std::optional<RNHeatmapGradient> create_std__optional_RNHeatmapGradient_(const RNHeatmapGradient& value) noexcept {
638
+ return std::optional<RNHeatmapGradient>(value);
639
+ }
640
+ inline bool has_value_std__optional_RNHeatmapGradient_(const std::optional<RNHeatmapGradient>& optional) noexcept {
641
+ return optional.has_value();
642
+ }
643
+ inline RNHeatmapGradient get_std__optional_RNHeatmapGradient_(const std::optional<RNHeatmapGradient>& optional) noexcept {
644
+ return *optional;
645
+ }
646
+
647
+ // pragma MARK: std::vector<RNHeatmap>
648
+ /**
649
+ * Specialized version of `std::vector<RNHeatmap>`.
650
+ */
651
+ using std__vector_RNHeatmap_ = std::vector<RNHeatmap>;
652
+ inline std::vector<RNHeatmap> create_std__vector_RNHeatmap_(size_t size) noexcept {
653
+ std::vector<RNHeatmap> vector;
654
+ vector.reserve(size);
655
+ return vector;
656
+ }
657
+
658
+ // pragma MARK: std::optional<std::vector<RNHeatmap>>
659
+ /**
660
+ * Specialized version of `std::optional<std::vector<RNHeatmap>>`.
661
+ */
662
+ using std__optional_std__vector_RNHeatmap__ = std::optional<std::vector<RNHeatmap>>;
663
+ inline std::optional<std::vector<RNHeatmap>> create_std__optional_std__vector_RNHeatmap__(const std::vector<RNHeatmap>& value) noexcept {
664
+ return std::optional<std::vector<RNHeatmap>>(value);
665
+ }
666
+ inline bool has_value_std__optional_std__vector_RNHeatmap__(const std::optional<std::vector<RNHeatmap>>& optional) noexcept {
667
+ return optional.has_value();
668
+ }
669
+ inline std::vector<RNHeatmap> get_std__optional_std__vector_RNHeatmap__(const std::optional<std::vector<RNHeatmap>>& optional) noexcept {
670
+ return *optional;
671
+ }
672
+
572
673
  // pragma MARK: std::optional<RNAndroidLocationPriority>
573
674
  /**
574
675
  * Specialized version of `std::optional<RNAndroidLocationPriority>`.
@@ -22,6 +22,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriorit
22
22
  namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
23
23
  // Forward declaration of `RNCircle` to properly resolve imports.
24
24
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
25
+ // Forward declaration of `RNHeatmapGradient` to properly resolve imports.
26
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
27
+ // Forward declaration of `RNHeatmapPoint` to properly resolve imports.
28
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
29
+ // Forward declaration of `RNHeatmap` to properly resolve imports.
30
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmap; }
25
31
  // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
26
32
  namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
27
33
  // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
@@ -52,6 +58,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
52
58
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapType; }
53
59
  // Forward declaration of `RNMapUiSettings` to properly resolve imports.
54
60
  namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
61
+ // Forward declaration of `RNMapZoomConfig` to properly resolve imports.
62
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
55
63
  // Forward declaration of `RNMarkerSvg` to properly resolve imports.
56
64
  namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
57
65
  // Forward declaration of `RNMarker` to properly resolve imports.
@@ -75,6 +83,9 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
75
83
  #include "RNAndroidLocationPriority.hpp"
76
84
  #include "RNCamera.hpp"
77
85
  #include "RNCircle.hpp"
86
+ #include "RNHeatmap.hpp"
87
+ #include "RNHeatmapGradient.hpp"
88
+ #include "RNHeatmapPoint.hpp"
78
89
  #include "RNIOSLocationAccuracy.hpp"
79
90
  #include "RNIOSLocationConfig.hpp"
80
91
  #include "RNIOSPermissionResult.hpp"
@@ -90,6 +101,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
90
101
  #include "RNMapPadding.hpp"
91
102
  #include "RNMapType.hpp"
92
103
  #include "RNMapUiSettings.hpp"
104
+ #include "RNMapZoomConfig.hpp"
93
105
  #include "RNMarker.hpp"
94
106
  #include "RNMarkerSvg.hpp"
95
107
  #include "RNPolygon.hpp"
@@ -22,6 +22,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
22
22
  namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
23
23
  // Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
24
24
  namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
25
+ // Forward declaration of `RNMapZoomConfig` to properly resolve imports.
26
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapZoomConfig; }
25
27
  // Forward declaration of `RNMapPadding` to properly resolve imports.
26
28
  namespace margelo::nitro::rngooglemapsplus { struct RNMapPadding; }
27
29
  // Forward declaration of `RNMapType` to properly resolve imports.
@@ -42,6 +44,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNLineCapType; }
42
44
  namespace margelo::nitro::rngooglemapsplus { enum class RNLineJoinType; }
43
45
  // Forward declaration of `RNCircle` to properly resolve imports.
44
46
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
47
+ // Forward declaration of `RNHeatmap` to properly resolve imports.
48
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmap; }
49
+ // Forward declaration of `RNHeatmapPoint` to properly resolve imports.
50
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
51
+ // Forward declaration of `RNHeatmapGradient` to properly resolve imports.
52
+ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
45
53
  // Forward declaration of `RNLocationConfig` to properly resolve imports.
46
54
  namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
47
55
  // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
@@ -74,6 +82,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
74
82
  #include "RNLatLng.hpp"
75
83
  #include "RNMapUiSettings.hpp"
76
84
  #include "RNUserInterfaceStyle.hpp"
85
+ #include "RNMapZoomConfig.hpp"
77
86
  #include "RNMapPadding.hpp"
78
87
  #include "RNMapType.hpp"
79
88
  #include "RNMarker.hpp"
@@ -85,6 +94,9 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
85
94
  #include "RNLineCapType.hpp"
86
95
  #include "RNLineJoinType.hpp"
87
96
  #include "RNCircle.hpp"
97
+ #include "RNHeatmap.hpp"
98
+ #include "RNHeatmapPoint.hpp"
99
+ #include "RNHeatmapGradient.hpp"
88
100
  #include "RNLocationConfig.hpp"
89
101
  #include "RNAndroidLocationConfig.hpp"
90
102
  #include "RNAndroidLocationPriority.hpp"
@@ -193,19 +205,12 @@ namespace margelo::nitro::rngooglemapsplus {
193
205
  inline void setUserInterfaceStyle(std::optional<RNUserInterfaceStyle> userInterfaceStyle) noexcept override {
194
206
  _swiftPart.setUserInterfaceStyle(userInterfaceStyle);
195
207
  }
196
- inline std::optional<double> getMinZoomLevel() noexcept override {
197
- auto __result = _swiftPart.getMinZoomLevel();
208
+ inline std::optional<RNMapZoomConfig> getMapZoomConfig() noexcept override {
209
+ auto __result = _swiftPart.getMapZoomConfig();
198
210
  return __result;
199
211
  }
200
- inline void setMinZoomLevel(std::optional<double> minZoomLevel) noexcept override {
201
- _swiftPart.setMinZoomLevel(minZoomLevel);
202
- }
203
- inline std::optional<double> getMaxZoomLevel() noexcept override {
204
- auto __result = _swiftPart.getMaxZoomLevel();
205
- return __result;
206
- }
207
- inline void setMaxZoomLevel(std::optional<double> maxZoomLevel) noexcept override {
208
- _swiftPart.setMaxZoomLevel(maxZoomLevel);
212
+ inline void setMapZoomConfig(const std::optional<RNMapZoomConfig>& mapZoomConfig) noexcept override {
213
+ _swiftPart.setMapZoomConfig(mapZoomConfig);
209
214
  }
210
215
  inline std::optional<RNMapPadding> getMapPadding() noexcept override {
211
216
  auto __result = _swiftPart.getMapPadding();
@@ -249,6 +254,13 @@ namespace margelo::nitro::rngooglemapsplus {
249
254
  inline void setCircles(const std::optional<std::vector<RNCircle>>& circles) noexcept override {
250
255
  _swiftPart.setCircles(circles);
251
256
  }
257
+ inline std::optional<std::vector<RNHeatmap>> getHeatmaps() noexcept override {
258
+ auto __result = _swiftPart.getHeatmaps();
259
+ return __result;
260
+ }
261
+ inline void setHeatmaps(const std::optional<std::vector<RNHeatmap>>& heatmaps) noexcept override {
262
+ _swiftPart.setHeatmaps(heatmaps);
263
+ }
252
264
  inline std::optional<RNLocationConfig> getLocationConfig() noexcept override {
253
265
  auto __result = _swiftPart.getLocationConfig();
254
266
  return __result;
@@ -111,15 +111,10 @@ using namespace margelo::nitro::rngooglemapsplus::views;
111
111
  swiftPart.setUserInterfaceStyle(newViewProps.userInterfaceStyle.value);
112
112
  newViewProps.userInterfaceStyle.isDirty = false;
113
113
  }
114
- // minZoomLevel: optional
115
- if (newViewProps.minZoomLevel.isDirty) {
116
- swiftPart.setMinZoomLevel(newViewProps.minZoomLevel.value);
117
- newViewProps.minZoomLevel.isDirty = false;
118
- }
119
- // maxZoomLevel: optional
120
- if (newViewProps.maxZoomLevel.isDirty) {
121
- swiftPart.setMaxZoomLevel(newViewProps.maxZoomLevel.value);
122
- newViewProps.maxZoomLevel.isDirty = false;
114
+ // mapZoomConfig: optional
115
+ if (newViewProps.mapZoomConfig.isDirty) {
116
+ swiftPart.setMapZoomConfig(newViewProps.mapZoomConfig.value);
117
+ newViewProps.mapZoomConfig.isDirty = false;
123
118
  }
124
119
  // mapPadding: optional
125
120
  if (newViewProps.mapPadding.isDirty) {
@@ -151,6 +146,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
151
146
  swiftPart.setCircles(newViewProps.circles.value);
152
147
  newViewProps.circles.isDirty = false;
153
148
  }
149
+ // heatmaps: optional
150
+ if (newViewProps.heatmaps.isDirty) {
151
+ swiftPart.setHeatmaps(newViewProps.heatmaps.value);
152
+ newViewProps.heatmaps.isDirty = false;
153
+ }
154
154
  // locationConfig: optional
155
155
  if (newViewProps.locationConfig.isDirty) {
156
156
  swiftPart.setLocationConfig(newViewProps.locationConfig.value);
@@ -19,14 +19,14 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
19
19
  var indoorEnabled: Bool? { get set }
20
20
  var customMapStyle: String? { get set }
21
21
  var userInterfaceStyle: RNUserInterfaceStyle? { get set }
22
- var minZoomLevel: Double? { get set }
23
- var maxZoomLevel: Double? { get set }
22
+ var mapZoomConfig: RNMapZoomConfig? { get set }
24
23
  var mapPadding: RNMapPadding? { get set }
25
24
  var mapType: RNMapType? { get set }
26
25
  var markers: [RNMarker]? { get set }
27
26
  var polygons: [RNPolygon]? { get set }
28
27
  var polylines: [RNPolyline]? { get set }
29
28
  var circles: [RNCircle]? { get set }
29
+ var heatmaps: [RNHeatmap]? { get set }
30
30
  var locationConfig: RNLocationConfig? { get set }
31
31
  var onMapError: ((_ error: RNMapErrorCode) -> Void)? { get set }
32
32
  var onMapReady: ((_ ready: Bool) -> Void)? { get set }
@@ -263,12 +263,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
263
263
  }
264
264
  }
265
265
 
266
- public final var minZoomLevel: bridge.std__optional_double_ {
266
+ public final var mapZoomConfig: bridge.std__optional_RNMapZoomConfig_ {
267
267
  @inline(__always)
268
268
  get {
269
- return { () -> bridge.std__optional_double_ in
270
- if let __unwrappedValue = self.__implementation.minZoomLevel {
271
- return bridge.create_std__optional_double_(__unwrappedValue)
269
+ return { () -> bridge.std__optional_RNMapZoomConfig_ in
270
+ if let __unwrappedValue = self.__implementation.mapZoomConfig {
271
+ return bridge.create_std__optional_RNMapZoomConfig_(__unwrappedValue)
272
272
  } else {
273
273
  return .init()
274
274
  }
@@ -276,25 +276,15 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
276
276
  }
277
277
  @inline(__always)
278
278
  set {
279
- self.__implementation.minZoomLevel = newValue.value
280
- }
281
- }
282
-
283
- public final var maxZoomLevel: bridge.std__optional_double_ {
284
- @inline(__always)
285
- get {
286
- return { () -> bridge.std__optional_double_ in
287
- if let __unwrappedValue = self.__implementation.maxZoomLevel {
288
- return bridge.create_std__optional_double_(__unwrappedValue)
279
+ self.__implementation.mapZoomConfig = { () -> RNMapZoomConfig? in
280
+ if bridge.has_value_std__optional_RNMapZoomConfig_(newValue) {
281
+ let __unwrapped = bridge.get_std__optional_RNMapZoomConfig_(newValue)
282
+ return __unwrapped
289
283
  } else {
290
- return .init()
284
+ return nil
291
285
  }
292
286
  }()
293
287
  }
294
- @inline(__always)
295
- set {
296
- self.__implementation.maxZoomLevel = newValue.value
297
- }
298
288
  }
299
289
 
300
290
  public final var mapPadding: bridge.std__optional_RNMapPadding_ {
@@ -458,6 +448,36 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
458
448
  }
459
449
  }
460
450
 
451
+ public final var heatmaps: bridge.std__optional_std__vector_RNHeatmap__ {
452
+ @inline(__always)
453
+ get {
454
+ return { () -> bridge.std__optional_std__vector_RNHeatmap__ in
455
+ if let __unwrappedValue = self.__implementation.heatmaps {
456
+ return bridge.create_std__optional_std__vector_RNHeatmap__({ () -> bridge.std__vector_RNHeatmap_ in
457
+ var __vector = bridge.create_std__vector_RNHeatmap_(__unwrappedValue.count)
458
+ for __item in __unwrappedValue {
459
+ __vector.push_back(__item)
460
+ }
461
+ return __vector
462
+ }())
463
+ } else {
464
+ return .init()
465
+ }
466
+ }()
467
+ }
468
+ @inline(__always)
469
+ set {
470
+ self.__implementation.heatmaps = { () -> [RNHeatmap]? in
471
+ if bridge.has_value_std__optional_std__vector_RNHeatmap__(newValue) {
472
+ let __unwrapped = bridge.get_std__optional_std__vector_RNHeatmap__(newValue)
473
+ return __unwrapped.map({ __item in __item })
474
+ } else {
475
+ return nil
476
+ }
477
+ }()
478
+ }
479
+ }
480
+
461
481
  public final var locationConfig: bridge.std__optional_RNLocationConfig_ {
462
482
  @inline(__always)
463
483
  get {
@@ -18,7 +18,7 @@ public extension RNCircle {
18
18
  /**
19
19
  * Create a new instance of `RNCircle`.
20
20
  */
21
- init(id: String, pressable: Bool?, zIndex: Double?, center: RNLatLng, radius: Double?, strokeWidth: Double?, strokeColor: String?, fillColor: String?) {
21
+ init(id: String, pressable: Bool?, zIndex: Double?, center: RNLatLng, radius: Double, strokeWidth: Double?, strokeColor: String?, fillColor: String?) {
22
22
  self.init(std.string(id), { () -> bridge.std__optional_bool_ in
23
23
  if let __unwrappedValue = pressable {
24
24
  return bridge.create_std__optional_bool_(__unwrappedValue)
@@ -31,13 +31,7 @@ public extension RNCircle {
31
31
  } else {
32
32
  return .init()
33
33
  }
34
- }(), center, { () -> bridge.std__optional_double_ in
35
- if let __unwrappedValue = radius {
36
- return bridge.create_std__optional_double_(__unwrappedValue)
37
- } else {
38
- return .init()
39
- }
40
- }(), { () -> bridge.std__optional_double_ in
34
+ }(), center, radius, { () -> bridge.std__optional_double_ in
41
35
  if let __unwrappedValue = strokeWidth {
42
36
  return bridge.create_std__optional_double_(__unwrappedValue)
43
37
  } else {
@@ -114,20 +108,14 @@ public extension RNCircle {
114
108
  }
115
109
  }
116
110
 
117
- var radius: Double? {
111
+ var radius: Double {
118
112
  @inline(__always)
119
113
  get {
120
- return self.__radius.value
114
+ return self.__radius
121
115
  }
122
116
  @inline(__always)
123
117
  set {
124
- self.__radius = { () -> bridge.std__optional_double_ in
125
- if let __unwrappedValue = newValue {
126
- return bridge.create_std__optional_double_(__unwrappedValue)
127
- } else {
128
- return .init()
129
- }
130
- }()
118
+ self.__radius = newValue
131
119
  }
132
120
  }
133
121
 
@@ -0,0 +1,180 @@
1
+ ///
2
+ /// RNHeatmap.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 `RNHeatmap`, backed by a C++ struct.
12
+ */
13
+ public typealias RNHeatmap = margelo.nitro.rngooglemapsplus.RNHeatmap
14
+
15
+ public extension RNHeatmap {
16
+ private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ /**
19
+ * Create a new instance of `RNHeatmap`.
20
+ */
21
+ init(id: String, pressable: Bool?, zIndex: Double?, weightedData: [RNHeatmapPoint], radius: Double?, opacity: Double?, gradient: RNHeatmapGradient?) {
22
+ self.init(std.string(id), { () -> bridge.std__optional_bool_ in
23
+ if let __unwrappedValue = pressable {
24
+ return bridge.create_std__optional_bool_(__unwrappedValue)
25
+ } else {
26
+ return .init()
27
+ }
28
+ }(), { () -> bridge.std__optional_double_ in
29
+ if let __unwrappedValue = zIndex {
30
+ return bridge.create_std__optional_double_(__unwrappedValue)
31
+ } else {
32
+ return .init()
33
+ }
34
+ }(), { () -> bridge.std__vector_RNHeatmapPoint_ in
35
+ var __vector = bridge.create_std__vector_RNHeatmapPoint_(weightedData.count)
36
+ for __item in weightedData {
37
+ __vector.push_back(__item)
38
+ }
39
+ return __vector
40
+ }(), { () -> bridge.std__optional_double_ in
41
+ if let __unwrappedValue = radius {
42
+ return bridge.create_std__optional_double_(__unwrappedValue)
43
+ } else {
44
+ return .init()
45
+ }
46
+ }(), { () -> bridge.std__optional_double_ in
47
+ if let __unwrappedValue = opacity {
48
+ return bridge.create_std__optional_double_(__unwrappedValue)
49
+ } else {
50
+ return .init()
51
+ }
52
+ }(), { () -> bridge.std__optional_RNHeatmapGradient_ in
53
+ if let __unwrappedValue = gradient {
54
+ return bridge.create_std__optional_RNHeatmapGradient_(__unwrappedValue)
55
+ } else {
56
+ return .init()
57
+ }
58
+ }())
59
+ }
60
+
61
+ var id: String {
62
+ @inline(__always)
63
+ get {
64
+ return String(self.__id)
65
+ }
66
+ @inline(__always)
67
+ set {
68
+ self.__id = std.string(newValue)
69
+ }
70
+ }
71
+
72
+ var pressable: Bool? {
73
+ @inline(__always)
74
+ get {
75
+ return self.__pressable.value
76
+ }
77
+ @inline(__always)
78
+ set {
79
+ self.__pressable = { () -> bridge.std__optional_bool_ in
80
+ if let __unwrappedValue = newValue {
81
+ return bridge.create_std__optional_bool_(__unwrappedValue)
82
+ } else {
83
+ return .init()
84
+ }
85
+ }()
86
+ }
87
+ }
88
+
89
+ var zIndex: Double? {
90
+ @inline(__always)
91
+ get {
92
+ return self.__zIndex.value
93
+ }
94
+ @inline(__always)
95
+ set {
96
+ self.__zIndex = { () -> bridge.std__optional_double_ in
97
+ if let __unwrappedValue = newValue {
98
+ return bridge.create_std__optional_double_(__unwrappedValue)
99
+ } else {
100
+ return .init()
101
+ }
102
+ }()
103
+ }
104
+ }
105
+
106
+ var weightedData: [RNHeatmapPoint] {
107
+ @inline(__always)
108
+ get {
109
+ return self.__weightedData.map({ __item in __item })
110
+ }
111
+ @inline(__always)
112
+ set {
113
+ self.__weightedData = { () -> bridge.std__vector_RNHeatmapPoint_ in
114
+ var __vector = bridge.create_std__vector_RNHeatmapPoint_(newValue.count)
115
+ for __item in newValue {
116
+ __vector.push_back(__item)
117
+ }
118
+ return __vector
119
+ }()
120
+ }
121
+ }
122
+
123
+ var radius: Double? {
124
+ @inline(__always)
125
+ get {
126
+ return self.__radius.value
127
+ }
128
+ @inline(__always)
129
+ set {
130
+ self.__radius = { () -> bridge.std__optional_double_ in
131
+ if let __unwrappedValue = newValue {
132
+ return bridge.create_std__optional_double_(__unwrappedValue)
133
+ } else {
134
+ return .init()
135
+ }
136
+ }()
137
+ }
138
+ }
139
+
140
+ var opacity: Double? {
141
+ @inline(__always)
142
+ get {
143
+ return self.__opacity.value
144
+ }
145
+ @inline(__always)
146
+ set {
147
+ self.__opacity = { () -> bridge.std__optional_double_ in
148
+ if let __unwrappedValue = newValue {
149
+ return bridge.create_std__optional_double_(__unwrappedValue)
150
+ } else {
151
+ return .init()
152
+ }
153
+ }()
154
+ }
155
+ }
156
+
157
+ var gradient: RNHeatmapGradient? {
158
+ @inline(__always)
159
+ get {
160
+ return { () -> RNHeatmapGradient? in
161
+ if bridge.has_value_std__optional_RNHeatmapGradient_(self.__gradient) {
162
+ let __unwrapped = bridge.get_std__optional_RNHeatmapGradient_(self.__gradient)
163
+ return __unwrapped
164
+ } else {
165
+ return nil
166
+ }
167
+ }()
168
+ }
169
+ @inline(__always)
170
+ set {
171
+ self.__gradient = { () -> bridge.std__optional_RNHeatmapGradient_ in
172
+ if let __unwrappedValue = newValue {
173
+ return bridge.create_std__optional_RNHeatmapGradient_(__unwrappedValue)
174
+ } else {
175
+ return .init()
176
+ }
177
+ }()
178
+ }
179
+ }
180
+ }