react-native-google-maps-plus 1.6.2 → 1.7.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 (39) hide show
  1. package/android/proguard-rules.pro +29 -0
  2. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +64 -2
  3. package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +2 -0
  4. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +39 -0
  5. package/android/src/main/java/com/rngooglemapsplus/MapUrlTileOverlayBuilder.kt +40 -0
  6. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +27 -3
  7. package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapTypeExtension.kt +13 -0
  8. package/ios/GoogleMapViewImpl.swift +59 -2
  9. package/ios/MapUrlTileOverlayBuilder.swift +23 -0
  10. package/ios/RNGoogleMapsPlusView.swift +34 -3
  11. package/ios/extensions/RNMapType+Extension.swift +18 -0
  12. package/lib/module/types.js.map +1 -1
  13. package/lib/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +3 -0
  14. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +4 -1
  15. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  16. package/lib/typescript/src/types.d.ts +8 -0
  17. package/lib/typescript/src/types.d.ts.map +1 -1
  18. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +68 -0
  19. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +6 -0
  20. package/nitrogen/generated/android/c++/JRNUrlTileOverlay.hpp +78 -0
  21. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +12 -0
  22. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +34 -0
  23. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUrlTileOverlay.kt +52 -0
  24. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +44 -0
  25. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
  26. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +24 -0
  27. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +15 -0
  28. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +3 -0
  29. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +94 -0
  30. package/nitrogen/generated/ios/swift/RNUrlTileOverlay.swift +133 -0
  31. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +6 -0
  32. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +9 -0
  33. package/nitrogen/generated/shared/c++/RNUrlTileOverlay.hpp +96 -0
  34. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +36 -0
  35. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +4 -0
  36. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +3 -0
  37. package/package.json +5 -4
  38. package/src/RNGoogleMapsPlusView.nitro.ts +4 -0
  39. package/src/types.ts +9 -0
@@ -163,6 +163,14 @@ export type RNKMLayer = {
163
163
  id: string;
164
164
  kmlString: string;
165
165
  };
166
+ export type RNUrlTileOverlay = {
167
+ id: string;
168
+ zIndex?: number;
169
+ url: string;
170
+ tileSize: number;
171
+ opacity?: number;
172
+ fadeIn?: boolean;
173
+ };
166
174
  export type RNIndoorBuilding = {
167
175
  activeLevelIndex?: number;
168
176
  defaultLevelIndex?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"A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AAI;IAC9B,sBAAsB,IAAI;IAC1B,cAAc,KAAK;CACpB;AAED,oBAAY,cAAc;IACxB,qBAAqB,IAAI;IACzB,qBAAqB,IAAI;IACzB,sBAAsB,IAAI;IAC1B,sBAAsB,IAAI;IAC1B,6BAA6B,IAAI;IACjC,qBAAqB,IAAI;IACzB,OAAO,IAAI;CACZ"}
@@ -49,6 +49,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
49
49
  namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
50
50
  // Forward declaration of `RNKMLayer` to properly resolve imports.
51
51
  namespace margelo::nitro::rngooglemapsplus { struct RNKMLayer; }
52
+ // Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
53
+ namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
52
54
  // Forward declaration of `RNLocationConfig` to properly resolve imports.
53
55
  namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
54
56
  // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
@@ -137,6 +139,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
137
139
  #include "JRNHeatmapGradient.hpp"
138
140
  #include "RNKMLayer.hpp"
139
141
  #include "JRNKMLayer.hpp"
142
+ #include "RNUrlTileOverlay.hpp"
143
+ #include "JRNUrlTileOverlay.hpp"
140
144
  #include "RNLocationConfig.hpp"
141
145
  #include "JRNLocationConfig.hpp"
142
146
  #include "RNAndroidLocationConfig.hpp"
@@ -471,6 +475,32 @@ namespace margelo::nitro::rngooglemapsplus {
471
475
  return __array;
472
476
  }() : nullptr);
473
477
  }
478
+ std::optional<std::vector<RNUrlTileOverlay>> JHybridRNGoogleMapsPlusViewSpec::getUrlTileOverlays() {
479
+ static const auto method = javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<JRNUrlTileOverlay>>()>("getUrlTileOverlays");
480
+ auto __result = method(_javaPart);
481
+ return __result != nullptr ? std::make_optional([&]() {
482
+ size_t __size = __result->size();
483
+ std::vector<RNUrlTileOverlay> __vector;
484
+ __vector.reserve(__size);
485
+ for (size_t __i = 0; __i < __size; __i++) {
486
+ auto __element = __result->getElement(__i);
487
+ __vector.push_back(__element->toCpp());
488
+ }
489
+ return __vector;
490
+ }()) : std::nullopt;
491
+ }
492
+ void JHybridRNGoogleMapsPlusViewSpec::setUrlTileOverlays(const std::optional<std::vector<RNUrlTileOverlay>>& urlTileOverlays) {
493
+ static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<JRNUrlTileOverlay>> /* urlTileOverlays */)>("setUrlTileOverlays");
494
+ method(_javaPart, urlTileOverlays.has_value() ? [&]() {
495
+ size_t __size = urlTileOverlays.value().size();
496
+ jni::local_ref<jni::JArrayClass<JRNUrlTileOverlay>> __array = jni::JArrayClass<JRNUrlTileOverlay>::newArray(__size);
497
+ for (size_t __i = 0; __i < __size; __i++) {
498
+ const auto& __element = urlTileOverlays.value()[__i];
499
+ __array->setElement(__i, *JRNUrlTileOverlay::fromCpp(__element));
500
+ }
501
+ return __array;
502
+ }() : nullptr);
503
+ }
474
504
  std::optional<RNLocationConfig> JHybridRNGoogleMapsPlusViewSpec::getLocationConfig() {
475
505
  static const auto method = javaClassStatic()->getMethod<jni::local_ref<JRNLocationConfig>()>("getLocationConfig");
476
506
  auto __result = method(_javaPart);
@@ -518,6 +548,25 @@ namespace margelo::nitro::rngooglemapsplus {
518
548
  static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_bool::javaobject> /* onMapReady */)>("setOnMapReady_cxx");
519
549
  method(_javaPart, onMapReady.has_value() ? JFunc_void_bool_cxx::fromCpp(onMapReady.value()) : nullptr);
520
550
  }
551
+ std::optional<std::function<void(bool /* loaded */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMapLoaded() {
552
+ static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_bool::javaobject>()>("getOnMapLoaded_cxx");
553
+ auto __result = method(_javaPart);
554
+ return __result != nullptr ? std::make_optional([&]() -> std::function<void(bool /* loaded */)> {
555
+ if (__result->isInstanceOf(JFunc_void_bool_cxx::javaClassStatic())) [[likely]] {
556
+ auto downcast = jni::static_ref_cast<JFunc_void_bool_cxx::javaobject>(__result);
557
+ return downcast->cthis()->getFunction();
558
+ } else {
559
+ auto __resultRef = jni::make_global(__result);
560
+ return [__resultRef](bool loaded) -> void {
561
+ return __resultRef->invoke(loaded);
562
+ };
563
+ }
564
+ }()) : std::nullopt;
565
+ }
566
+ void JHybridRNGoogleMapsPlusViewSpec::setOnMapLoaded(const std::optional<std::function<void(bool /* loaded */)>>& onMapLoaded) {
567
+ static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_bool::javaobject> /* onMapLoaded */)>("setOnMapLoaded_cxx");
568
+ method(_javaPart, onMapLoaded.has_value() ? JFunc_void_bool_cxx::fromCpp(onMapLoaded.value()) : nullptr);
569
+ }
521
570
  std::optional<std::function<void(const RNLocation& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnLocationUpdate() {
522
571
  static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLocation::javaobject>()>("getOnLocationUpdate_cxx");
523
572
  auto __result = method(_javaPart);
@@ -575,6 +624,25 @@ namespace margelo::nitro::rngooglemapsplus {
575
624
  static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNLatLng::javaobject> /* onMapPress */)>("setOnMapPress_cxx");
576
625
  method(_javaPart, onMapPress.has_value() ? JFunc_void_RNLatLng_cxx::fromCpp(onMapPress.value()) : nullptr);
577
626
  }
627
+ std::optional<std::function<void(const RNLatLng& /* coordinate */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMapLongPress() {
628
+ static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLatLng::javaobject>()>("getOnMapLongPress_cxx");
629
+ auto __result = method(_javaPart);
630
+ return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNLatLng& /* coordinate */)> {
631
+ if (__result->isInstanceOf(JFunc_void_RNLatLng_cxx::javaClassStatic())) [[likely]] {
632
+ auto downcast = jni::static_ref_cast<JFunc_void_RNLatLng_cxx::javaobject>(__result);
633
+ return downcast->cthis()->getFunction();
634
+ } else {
635
+ auto __resultRef = jni::make_global(__result);
636
+ return [__resultRef](RNLatLng coordinate) -> void {
637
+ return __resultRef->invoke(coordinate);
638
+ };
639
+ }
640
+ }()) : std::nullopt;
641
+ }
642
+ void JHybridRNGoogleMapsPlusViewSpec::setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) {
643
+ static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNLatLng::javaobject> /* onMapLongPress */)>("setOnMapLongPress_cxx");
644
+ method(_javaPart, onMapLongPress.has_value() ? JFunc_void_RNLatLng_cxx::fromCpp(onMapLongPress.value()) : nullptr);
645
+ }
578
646
  std::optional<std::function<void(const std::optional<std::string>& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMarkerPress() {
579
647
  static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__optional_std__string_::javaobject>()>("getOnMarkerPress_cxx");
580
648
  auto __result = method(_javaPart);
@@ -83,18 +83,24 @@ namespace margelo::nitro::rngooglemapsplus {
83
83
  void setHeatmaps(const std::optional<std::vector<RNHeatmap>>& heatmaps) override;
84
84
  std::optional<std::vector<RNKMLayer>> getKmlLayers() override;
85
85
  void setKmlLayers(const std::optional<std::vector<RNKMLayer>>& kmlLayers) override;
86
+ std::optional<std::vector<RNUrlTileOverlay>> getUrlTileOverlays() override;
87
+ void setUrlTileOverlays(const std::optional<std::vector<RNUrlTileOverlay>>& urlTileOverlays) override;
86
88
  std::optional<RNLocationConfig> getLocationConfig() override;
87
89
  void setLocationConfig(const std::optional<RNLocationConfig>& locationConfig) override;
88
90
  std::optional<std::function<void(RNMapErrorCode /* error */)>> getOnMapError() override;
89
91
  void setOnMapError(const std::optional<std::function<void(RNMapErrorCode /* error */)>>& onMapError) override;
90
92
  std::optional<std::function<void(bool /* ready */)>> getOnMapReady() override;
91
93
  void setOnMapReady(const std::optional<std::function<void(bool /* ready */)>>& onMapReady) override;
94
+ std::optional<std::function<void(bool /* loaded */)>> getOnMapLoaded() override;
95
+ void setOnMapLoaded(const std::optional<std::function<void(bool /* loaded */)>>& onMapLoaded) override;
92
96
  std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() override;
93
97
  void setOnLocationUpdate(const std::optional<std::function<void(const RNLocation& /* location */)>>& onLocationUpdate) override;
94
98
  std::optional<std::function<void(RNLocationErrorCode /* error */)>> getOnLocationError() override;
95
99
  void setOnLocationError(const std::optional<std::function<void(RNLocationErrorCode /* error */)>>& onLocationError) override;
96
100
  std::optional<std::function<void(const RNLatLng& /* coordinate */)>> getOnMapPress() override;
97
101
  void setOnMapPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapPress) override;
102
+ std::optional<std::function<void(const RNLatLng& /* coordinate */)>> getOnMapLongPress() override;
103
+ void setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) override;
98
104
  std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnMarkerPress() override;
99
105
  void setOnMarkerPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onMarkerPress) override;
100
106
  std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnPolylinePress() override;
@@ -0,0 +1,78 @@
1
+ ///
2
+ /// JRNUrlTileOverlay.hpp
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
+ #pragma once
9
+
10
+ #include <fbjni/fbjni.h>
11
+ #include "RNUrlTileOverlay.hpp"
12
+
13
+ #include <optional>
14
+ #include <string>
15
+
16
+ namespace margelo::nitro::rngooglemapsplus {
17
+
18
+ using namespace facebook;
19
+
20
+ /**
21
+ * The C++ JNI bridge between the C++ struct "RNUrlTileOverlay" and the the Kotlin data class "RNUrlTileOverlay".
22
+ */
23
+ struct JRNUrlTileOverlay final: public jni::JavaClass<JRNUrlTileOverlay> {
24
+ public:
25
+ static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNUrlTileOverlay;";
26
+
27
+ public:
28
+ /**
29
+ * Convert this Java/Kotlin-based struct to the C++ struct RNUrlTileOverlay by copying all values to C++.
30
+ */
31
+ [[maybe_unused]]
32
+ [[nodiscard]]
33
+ RNUrlTileOverlay toCpp() const {
34
+ static const auto clazz = javaClassStatic();
35
+ static const auto fieldId = clazz->getField<jni::JString>("id");
36
+ jni::local_ref<jni::JString> id = this->getFieldValue(fieldId);
37
+ static const auto fieldZIndex = clazz->getField<jni::JDouble>("zIndex");
38
+ jni::local_ref<jni::JDouble> zIndex = this->getFieldValue(fieldZIndex);
39
+ static const auto fieldUrl = clazz->getField<jni::JString>("url");
40
+ jni::local_ref<jni::JString> url = this->getFieldValue(fieldUrl);
41
+ static const auto fieldTileSize = clazz->getField<double>("tileSize");
42
+ double tileSize = this->getFieldValue(fieldTileSize);
43
+ static const auto fieldOpacity = clazz->getField<jni::JDouble>("opacity");
44
+ jni::local_ref<jni::JDouble> opacity = this->getFieldValue(fieldOpacity);
45
+ static const auto fieldFadeIn = clazz->getField<jni::JBoolean>("fadeIn");
46
+ jni::local_ref<jni::JBoolean> fadeIn = this->getFieldValue(fieldFadeIn);
47
+ return RNUrlTileOverlay(
48
+ id->toStdString(),
49
+ zIndex != nullptr ? std::make_optional(zIndex->value()) : std::nullopt,
50
+ url->toStdString(),
51
+ tileSize,
52
+ opacity != nullptr ? std::make_optional(opacity->value()) : std::nullopt,
53
+ fadeIn != nullptr ? std::make_optional(static_cast<bool>(fadeIn->value())) : std::nullopt
54
+ );
55
+ }
56
+
57
+ public:
58
+ /**
59
+ * Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
60
+ */
61
+ [[maybe_unused]]
62
+ static jni::local_ref<JRNUrlTileOverlay::javaobject> fromCpp(const RNUrlTileOverlay& value) {
63
+ using JSignature = JRNUrlTileOverlay(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<jni::JString>, double, jni::alias_ref<jni::JDouble>, jni::alias_ref<jni::JBoolean>);
64
+ static const auto clazz = javaClassStatic();
65
+ static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
66
+ return create(
67
+ clazz,
68
+ jni::make_jstring(value.id),
69
+ value.zIndex.has_value() ? jni::JDouble::valueOf(value.zIndex.value()) : nullptr,
70
+ jni::make_jstring(value.url),
71
+ value.tileSize,
72
+ value.opacity.has_value() ? jni::JDouble::valueOf(value.opacity.value()) : nullptr,
73
+ value.fadeIn.has_value() ? jni::JBoolean::valueOf(value.fadeIn.value()) : nullptr
74
+ );
75
+ }
76
+ };
77
+
78
+ } // namespace margelo::nitro::rngooglemapsplus
@@ -104,6 +104,10 @@ void JHybridRNGoogleMapsPlusViewStateUpdater::updateViewProps(jni::alias_ref<jni
104
104
  view->setKmlLayers(props.kmlLayers.value);
105
105
  // TODO: Set isDirty = false
106
106
  }
107
+ if (props.urlTileOverlays.isDirty) {
108
+ view->setUrlTileOverlays(props.urlTileOverlays.value);
109
+ // TODO: Set isDirty = false
110
+ }
107
111
  if (props.locationConfig.isDirty) {
108
112
  view->setLocationConfig(props.locationConfig.value);
109
113
  // TODO: Set isDirty = false
@@ -116,6 +120,10 @@ void JHybridRNGoogleMapsPlusViewStateUpdater::updateViewProps(jni::alias_ref<jni
116
120
  view->setOnMapReady(props.onMapReady.value);
117
121
  // TODO: Set isDirty = false
118
122
  }
123
+ if (props.onMapLoaded.isDirty) {
124
+ view->setOnMapLoaded(props.onMapLoaded.value);
125
+ // TODO: Set isDirty = false
126
+ }
119
127
  if (props.onLocationUpdate.isDirty) {
120
128
  view->setOnLocationUpdate(props.onLocationUpdate.value);
121
129
  // TODO: Set isDirty = false
@@ -128,6 +136,10 @@ void JHybridRNGoogleMapsPlusViewStateUpdater::updateViewProps(jni::alias_ref<jni
128
136
  view->setOnMapPress(props.onMapPress.value);
129
137
  // TODO: Set isDirty = false
130
138
  }
139
+ if (props.onMapLongPress.isDirty) {
140
+ view->setOnMapLongPress(props.onMapLongPress.value);
141
+ // TODO: Set isDirty = false
142
+ }
131
143
  if (props.onMarkerPress.isDirty) {
132
144
  view->setOnMarkerPress(props.onMarkerPress.value);
133
145
  // TODO: Set isDirty = false
@@ -140,6 +140,12 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
140
140
  @set:Keep
141
141
  abstract var kmlLayers: Array<RNKMLayer>?
142
142
 
143
+ @get:DoNotStrip
144
+ @get:Keep
145
+ @set:DoNotStrip
146
+ @set:Keep
147
+ abstract var urlTileOverlays: Array<RNUrlTileOverlay>?
148
+
143
149
  @get:DoNotStrip
144
150
  @get:Keep
145
151
  @set:DoNotStrip
@@ -174,6 +180,20 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
174
180
  onMapReady = value?.let { it }
175
181
  }
176
182
 
183
+ abstract var onMapLoaded: ((loaded: Boolean) -> Unit)?
184
+
185
+ private var onMapLoaded_cxx: Func_void_bool?
186
+ @Keep
187
+ @DoNotStrip
188
+ get() {
189
+ return onMapLoaded?.let { Func_void_bool_java(it) }
190
+ }
191
+ @Keep
192
+ @DoNotStrip
193
+ set(value) {
194
+ onMapLoaded = value?.let { it }
195
+ }
196
+
177
197
  abstract var onLocationUpdate: ((location: RNLocation) -> Unit)?
178
198
 
179
199
  private var onLocationUpdate_cxx: Func_void_RNLocation?
@@ -216,6 +236,20 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
216
236
  onMapPress = value?.let { it }
217
237
  }
218
238
 
239
+ abstract var onMapLongPress: ((coordinate: RNLatLng) -> Unit)?
240
+
241
+ private var onMapLongPress_cxx: Func_void_RNLatLng?
242
+ @Keep
243
+ @DoNotStrip
244
+ get() {
245
+ return onMapLongPress?.let { Func_void_RNLatLng_java(it) }
246
+ }
247
+ @Keep
248
+ @DoNotStrip
249
+ set(value) {
250
+ onMapLongPress = value?.let { it }
251
+ }
252
+
219
253
  abstract var onMarkerPress: ((id: String?) -> Unit)?
220
254
 
221
255
  private var onMarkerPress_cxx: Func_void_std__optional_std__string_?
@@ -0,0 +1,52 @@
1
+ ///
2
+ /// RNUrlTileOverlay.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 "RNUrlTileOverlay".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNUrlTileOverlay(
21
+ @DoNotStrip
22
+ @Keep
23
+ val id: String,
24
+ @DoNotStrip
25
+ @Keep
26
+ val zIndex: Double?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val url: String,
30
+ @DoNotStrip
31
+ @Keep
32
+ val tileSize: Double,
33
+ @DoNotStrip
34
+ @Keep
35
+ val opacity: Double?,
36
+ @DoNotStrip
37
+ @Keep
38
+ val fadeIn: Boolean?
39
+ ) {
40
+ private companion object {
41
+ /**
42
+ * Constructor called from C++
43
+ */
44
+ @DoNotStrip
45
+ @Keep
46
+ @Suppress("unused")
47
+ @JvmStatic
48
+ private fun fromCpp(id: String, zIndex: Double?, url: String, tileSize: Double, opacity: Double?, fadeIn: Boolean?): RNUrlTileOverlay {
49
+ return RNUrlTileOverlay(id, zIndex, url, tileSize, opacity, fadeIn)
50
+ }
51
+ }
52
+ }
@@ -88,6 +88,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
88
88
  namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
89
89
  // Forward declaration of `RNSize` to properly resolve imports.
90
90
  namespace margelo::nitro::rngooglemapsplus { struct RNSize; }
91
+ // Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
92
+ namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
91
93
  // Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
92
94
  namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
93
95
 
@@ -138,6 +140,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
138
140
  #include "RNPosition.hpp"
139
141
  #include "RNRegion.hpp"
140
142
  #include "RNSize.hpp"
143
+ #include "RNUrlTileOverlay.hpp"
141
144
  #include "RNUserInterfaceStyle.hpp"
142
145
  #include <NitroModules/FastVectorCopy.hpp>
143
146
  #include <NitroModules/Promise.hpp>
@@ -748,6 +751,32 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
748
751
  return *optional;
749
752
  }
750
753
 
754
+ // pragma MARK: std::vector<RNUrlTileOverlay>
755
+ /**
756
+ * Specialized version of `std::vector<RNUrlTileOverlay>`.
757
+ */
758
+ using std__vector_RNUrlTileOverlay_ = std::vector<RNUrlTileOverlay>;
759
+ inline std::vector<RNUrlTileOverlay> create_std__vector_RNUrlTileOverlay_(size_t size) noexcept {
760
+ std::vector<RNUrlTileOverlay> vector;
761
+ vector.reserve(size);
762
+ return vector;
763
+ }
764
+
765
+ // pragma MARK: std::optional<std::vector<RNUrlTileOverlay>>
766
+ /**
767
+ * Specialized version of `std::optional<std::vector<RNUrlTileOverlay>>`.
768
+ */
769
+ using std__optional_std__vector_RNUrlTileOverlay__ = std::optional<std::vector<RNUrlTileOverlay>>;
770
+ inline std::optional<std::vector<RNUrlTileOverlay>> create_std__optional_std__vector_RNUrlTileOverlay__(const std::vector<RNUrlTileOverlay>& value) noexcept {
771
+ return std::optional<std::vector<RNUrlTileOverlay>>(value);
772
+ }
773
+ inline bool has_value_std__optional_std__vector_RNUrlTileOverlay__(const std::optional<std::vector<RNUrlTileOverlay>>& optional) noexcept {
774
+ return optional.has_value();
775
+ }
776
+ inline std::vector<RNUrlTileOverlay> get_std__optional_std__vector_RNUrlTileOverlay__(const std::optional<std::vector<RNUrlTileOverlay>>& optional) noexcept {
777
+ return *optional;
778
+ }
779
+
751
780
  // pragma MARK: std::optional<RNAndroidLocationPriority>
752
781
  /**
753
782
  * Specialized version of `std::optional<RNAndroidLocationPriority>`.
@@ -897,6 +926,21 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
897
926
  return *optional;
898
927
  }
899
928
 
929
+ // pragma MARK: std::optional<std::function<void(bool /* loaded */)>>
930
+ /**
931
+ * Specialized version of `std::optional<std::function<void(bool / * loaded * /)>>`.
932
+ */
933
+ using std__optional_std__function_void_bool____loaded______ = std::optional<std::function<void(bool /* loaded */)>>;
934
+ inline std::optional<std::function<void(bool /* loaded */)>> create_std__optional_std__function_void_bool____loaded______(const std::function<void(bool /* loaded */)>& value) noexcept {
935
+ return std::optional<std::function<void(bool /* loaded */)>>(value);
936
+ }
937
+ inline bool has_value_std__optional_std__function_void_bool____loaded______(const std::optional<std::function<void(bool /* loaded */)>>& optional) noexcept {
938
+ return optional.has_value();
939
+ }
940
+ inline std::function<void(bool /* loaded */)> get_std__optional_std__function_void_bool____loaded______(const std::optional<std::function<void(bool /* loaded */)>>& optional) noexcept {
941
+ return *optional;
942
+ }
943
+
900
944
  // pragma MARK: std::optional<RNLocationAndroid>
901
945
  /**
902
946
  * Specialized version of `std::optional<RNLocationAndroid>`.
@@ -94,6 +94,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotFormat; }
94
94
  namespace margelo::nitro::rngooglemapsplus { struct RNSnapshotOptions; }
95
95
  // Forward declaration of `RNSnapshotResultType` to properly resolve imports.
96
96
  namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
97
+ // Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
98
+ namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
97
99
  // Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
98
100
  namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
99
101
 
@@ -141,6 +143,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
141
143
  #include "RNSnapshotFormat.hpp"
142
144
  #include "RNSnapshotOptions.hpp"
143
145
  #include "RNSnapshotResultType.hpp"
146
+ #include "RNUrlTileOverlay.hpp"
144
147
  #include "RNUserInterfaceStyle.hpp"
145
148
  #include <NitroModules/Promise.hpp>
146
149
  #include <NitroModules/Result.hpp>
@@ -54,6 +54,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
54
54
  namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
55
55
  // Forward declaration of `RNKMLayer` to properly resolve imports.
56
56
  namespace margelo::nitro::rngooglemapsplus { struct RNKMLayer; }
57
+ // Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
58
+ namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
57
59
  // Forward declaration of `RNLocationConfig` to properly resolve imports.
58
60
  namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
59
61
  // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
@@ -121,6 +123,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
121
123
  #include "RNHeatmapPoint.hpp"
122
124
  #include "RNHeatmapGradient.hpp"
123
125
  #include "RNKMLayer.hpp"
126
+ #include "RNUrlTileOverlay.hpp"
124
127
  #include "RNLocationConfig.hpp"
125
128
  #include "RNAndroidLocationConfig.hpp"
126
129
  #include "RNAndroidLocationPriority.hpp"
@@ -301,6 +304,13 @@ namespace margelo::nitro::rngooglemapsplus {
301
304
  inline void setKmlLayers(const std::optional<std::vector<RNKMLayer>>& kmlLayers) noexcept override {
302
305
  _swiftPart.setKmlLayers(kmlLayers);
303
306
  }
307
+ inline std::optional<std::vector<RNUrlTileOverlay>> getUrlTileOverlays() noexcept override {
308
+ auto __result = _swiftPart.getUrlTileOverlays();
309
+ return __result;
310
+ }
311
+ inline void setUrlTileOverlays(const std::optional<std::vector<RNUrlTileOverlay>>& urlTileOverlays) noexcept override {
312
+ _swiftPart.setUrlTileOverlays(urlTileOverlays);
313
+ }
304
314
  inline std::optional<RNLocationConfig> getLocationConfig() noexcept override {
305
315
  auto __result = _swiftPart.getLocationConfig();
306
316
  return __result;
@@ -322,6 +332,13 @@ namespace margelo::nitro::rngooglemapsplus {
322
332
  inline void setOnMapReady(const std::optional<std::function<void(bool /* ready */)>>& onMapReady) noexcept override {
323
333
  _swiftPart.setOnMapReady(onMapReady);
324
334
  }
335
+ inline std::optional<std::function<void(bool /* loaded */)>> getOnMapLoaded() noexcept override {
336
+ auto __result = _swiftPart.getOnMapLoaded();
337
+ return __result;
338
+ }
339
+ inline void setOnMapLoaded(const std::optional<std::function<void(bool /* loaded */)>>& onMapLoaded) noexcept override {
340
+ _swiftPart.setOnMapLoaded(onMapLoaded);
341
+ }
325
342
  inline std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() noexcept override {
326
343
  auto __result = _swiftPart.getOnLocationUpdate();
327
344
  return __result;
@@ -343,6 +360,13 @@ namespace margelo::nitro::rngooglemapsplus {
343
360
  inline void setOnMapPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapPress) noexcept override {
344
361
  _swiftPart.setOnMapPress(onMapPress);
345
362
  }
363
+ inline std::optional<std::function<void(const RNLatLng& /* coordinate */)>> getOnMapLongPress() noexcept override {
364
+ auto __result = _swiftPart.getOnMapLongPress();
365
+ return __result;
366
+ }
367
+ inline void setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) noexcept override {
368
+ _swiftPart.setOnMapLongPress(onMapLongPress);
369
+ }
346
370
  inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnMarkerPress() noexcept override {
347
371
  auto __result = _swiftPart.getOnMarkerPress();
348
372
  return __result;
@@ -171,6 +171,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
171
171
  swiftPart.setKmlLayers(newViewProps.kmlLayers.value);
172
172
  newViewProps.kmlLayers.isDirty = false;
173
173
  }
174
+ // urlTileOverlays: optional
175
+ if (newViewProps.urlTileOverlays.isDirty) {
176
+ swiftPart.setUrlTileOverlays(newViewProps.urlTileOverlays.value);
177
+ newViewProps.urlTileOverlays.isDirty = false;
178
+ }
174
179
  // locationConfig: optional
175
180
  if (newViewProps.locationConfig.isDirty) {
176
181
  swiftPart.setLocationConfig(newViewProps.locationConfig.value);
@@ -186,6 +191,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
186
191
  swiftPart.setOnMapReady(newViewProps.onMapReady.value);
187
192
  newViewProps.onMapReady.isDirty = false;
188
193
  }
194
+ // onMapLoaded: optional
195
+ if (newViewProps.onMapLoaded.isDirty) {
196
+ swiftPart.setOnMapLoaded(newViewProps.onMapLoaded.value);
197
+ newViewProps.onMapLoaded.isDirty = false;
198
+ }
189
199
  // onLocationUpdate: optional
190
200
  if (newViewProps.onLocationUpdate.isDirty) {
191
201
  swiftPart.setOnLocationUpdate(newViewProps.onLocationUpdate.value);
@@ -201,6 +211,11 @@ using namespace margelo::nitro::rngooglemapsplus::views;
201
211
  swiftPart.setOnMapPress(newViewProps.onMapPress.value);
202
212
  newViewProps.onMapPress.isDirty = false;
203
213
  }
214
+ // onMapLongPress: optional
215
+ if (newViewProps.onMapLongPress.isDirty) {
216
+ swiftPart.setOnMapLongPress(newViewProps.onMapLongPress.value);
217
+ newViewProps.onMapLongPress.isDirty = false;
218
+ }
204
219
  // onMarkerPress: optional
205
220
  if (newViewProps.onMarkerPress.isDirty) {
206
221
  swiftPart.setOnMarkerPress(newViewProps.onMarkerPress.value);
@@ -28,12 +28,15 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
28
28
  var circles: [RNCircle]? { get set }
29
29
  var heatmaps: [RNHeatmap]? { get set }
30
30
  var kmlLayers: [RNKMLayer]? { get set }
31
+ var urlTileOverlays: [RNUrlTileOverlay]? { get set }
31
32
  var locationConfig: RNLocationConfig? { get set }
32
33
  var onMapError: ((_ error: RNMapErrorCode) -> Void)? { get set }
33
34
  var onMapReady: ((_ ready: Bool) -> Void)? { get set }
35
+ var onMapLoaded: ((_ loaded: Bool) -> Void)? { get set }
34
36
  var onLocationUpdate: ((_ location: RNLocation) -> Void)? { get set }
35
37
  var onLocationError: ((_ error: RNLocationErrorCode) -> Void)? { get set }
36
38
  var onMapPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
39
+ var onMapLongPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
37
40
  var onMarkerPress: ((_ id: String?) -> Void)? { get set }
38
41
  var onPolylinePress: ((_ id: String?) -> Void)? { get set }
39
42
  var onPolygonPress: ((_ id: String?) -> Void)? { get set }