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
@@ -15,6 +15,8 @@
15
15
 
16
16
  // Forward declaration of `RNInitialProps` to properly resolve imports.
17
17
  namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
18
+ // Forward declaration of `RNMapUiSettings` to properly resolve imports.
19
+ namespace margelo::nitro::rngooglemapsplus { struct RNMapUiSettings; }
18
20
  // Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
19
21
  namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
20
22
  // Forward declaration of `RNMapPadding` to properly resolve imports.
@@ -29,6 +31,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPolygon; }
29
31
  namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
30
32
  // Forward declaration of `RNCircle` to properly resolve imports.
31
33
  namespace margelo::nitro::rngooglemapsplus { struct RNCircle; }
34
+ // Forward declaration of `RNLocationConfig` to properly resolve imports.
35
+ namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
32
36
  // Forward declaration of `RNMapErrorCode` to properly resolve imports.
33
37
  namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
34
38
  // Forward declaration of `RNLocation` to properly resolve imports.
@@ -46,6 +50,7 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult;
46
50
 
47
51
  #include "RNInitialProps.hpp"
48
52
  #include <optional>
53
+ #include "RNMapUiSettings.hpp"
49
54
  #include <string>
50
55
  #include "RNUserInterfaceStyle.hpp"
51
56
  #include "RNMapPadding.hpp"
@@ -55,6 +60,7 @@ namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult;
55
60
  #include "RNPolygon.hpp"
56
61
  #include "RNPolyline.hpp"
57
62
  #include "RNCircle.hpp"
63
+ #include "RNLocationConfig.hpp"
58
64
  #include "RNMapErrorCode.hpp"
59
65
  #include <functional>
60
66
  #include "RNLocation.hpp"
@@ -94,10 +100,16 @@ namespace margelo::nitro::rngooglemapsplus {
94
100
  // Properties
95
101
  virtual std::optional<RNInitialProps> getInitialProps() = 0;
96
102
  virtual void setInitialProps(const std::optional<RNInitialProps>& initialProps) = 0;
103
+ virtual std::optional<RNMapUiSettings> getUiSettings() = 0;
104
+ virtual void setUiSettings(const std::optional<RNMapUiSettings>& uiSettings) = 0;
105
+ virtual std::optional<bool> getMyLocationEnabled() = 0;
106
+ virtual void setMyLocationEnabled(std::optional<bool> myLocationEnabled) = 0;
97
107
  virtual std::optional<bool> getBuildingEnabled() = 0;
98
108
  virtual void setBuildingEnabled(std::optional<bool> buildingEnabled) = 0;
99
109
  virtual std::optional<bool> getTrafficEnabled() = 0;
100
110
  virtual void setTrafficEnabled(std::optional<bool> trafficEnabled) = 0;
111
+ virtual std::optional<bool> getIndoorEnabled() = 0;
112
+ virtual void setIndoorEnabled(std::optional<bool> indoorEnabled) = 0;
101
113
  virtual std::optional<std::string> getCustomMapStyle() = 0;
102
114
  virtual void setCustomMapStyle(const std::optional<std::string>& customMapStyle) = 0;
103
115
  virtual std::optional<RNUserInterfaceStyle> getUserInterfaceStyle() = 0;
@@ -118,6 +130,8 @@ namespace margelo::nitro::rngooglemapsplus {
118
130
  virtual void setPolylines(const std::optional<std::vector<RNPolyline>>& polylines) = 0;
119
131
  virtual std::optional<std::vector<RNCircle>> getCircles() = 0;
120
132
  virtual void setCircles(const std::optional<std::vector<RNCircle>>& circles) = 0;
133
+ virtual std::optional<RNLocationConfig> getLocationConfig() = 0;
134
+ virtual void setLocationConfig(const std::optional<RNLocationConfig>& locationConfig) = 0;
121
135
  virtual std::optional<std::function<void(RNMapErrorCode /* error */)>> getOnMapError() = 0;
122
136
  virtual void setOnMapError(const std::optional<std::function<void(RNMapErrorCode /* error */)>>& onMapError) = 0;
123
137
  virtual std::optional<std::function<void(bool /* ready */)>> getOnMapReady() = 0;
@@ -0,0 +1,77 @@
1
+ ///
2
+ /// RNAndroidLocationConfig.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
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+ // Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
22
+ namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
23
+
24
+ #include "RNAndroidLocationPriority.hpp"
25
+ #include <optional>
26
+
27
+ namespace margelo::nitro::rngooglemapsplus {
28
+
29
+ /**
30
+ * A struct which can be represented as a JavaScript object (RNAndroidLocationConfig).
31
+ */
32
+ struct RNAndroidLocationConfig {
33
+ public:
34
+ std::optional<RNAndroidLocationPriority> priority SWIFT_PRIVATE;
35
+ std::optional<double> interval SWIFT_PRIVATE;
36
+ std::optional<double> minUpdateInterval SWIFT_PRIVATE;
37
+
38
+ public:
39
+ RNAndroidLocationConfig() = default;
40
+ explicit RNAndroidLocationConfig(std::optional<RNAndroidLocationPriority> priority, std::optional<double> interval, std::optional<double> minUpdateInterval): priority(priority), interval(interval), minUpdateInterval(minUpdateInterval) {}
41
+ };
42
+
43
+ } // namespace margelo::nitro::rngooglemapsplus
44
+
45
+ namespace margelo::nitro {
46
+
47
+ // C++ RNAndroidLocationConfig <> JS RNAndroidLocationConfig (object)
48
+ template <>
49
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig> final {
50
+ static inline margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
51
+ jsi::Object obj = arg.asObject(runtime);
52
+ return margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig(
53
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority>>::fromJSI(runtime, obj.getProperty(runtime, "priority")),
54
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "interval")),
55
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "minUpdateInterval"))
56
+ );
57
+ }
58
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig& arg) {
59
+ jsi::Object obj(runtime);
60
+ obj.setProperty(runtime, "priority", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority>>::toJSI(runtime, arg.priority));
61
+ obj.setProperty(runtime, "interval", JSIConverter<std::optional<double>>::toJSI(runtime, arg.interval));
62
+ obj.setProperty(runtime, "minUpdateInterval", JSIConverter<std::optional<double>>::toJSI(runtime, arg.minUpdateInterval));
63
+ return obj;
64
+ }
65
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
66
+ if (!value.isObject()) {
67
+ return false;
68
+ }
69
+ jsi::Object obj = value.getObject(runtime);
70
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority>>::canConvert(runtime, obj.getProperty(runtime, "priority"))) return false;
71
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "interval"))) return false;
72
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "minUpdateInterval"))) return false;
73
+ return true;
74
+ }
75
+ };
76
+
77
+ } // namespace margelo::nitro
@@ -0,0 +1,64 @@
1
+ ///
2
+ /// RNAndroidLocationPriority.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
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+ namespace margelo::nitro::rngooglemapsplus {
22
+
23
+ /**
24
+ * An enum which can be represented as a JavaScript enum (RNAndroidLocationPriority).
25
+ */
26
+ enum class RNAndroidLocationPriority {
27
+ PRIORITY_HIGH_ACCURACY SWIFT_NAME(priorityHighAccuracy) = 0,
28
+ PRIORITY_BALANCED_POWER_ACCURACY SWIFT_NAME(priorityBalancedPowerAccuracy) = 1,
29
+ PRIORITY_LOW_POWER SWIFT_NAME(priorityLowPower) = 2,
30
+ PRIORITY_PASSIVE SWIFT_NAME(priorityPassive) = 3,
31
+ } CLOSED_ENUM;
32
+
33
+ } // namespace margelo::nitro::rngooglemapsplus
34
+
35
+ namespace margelo::nitro {
36
+
37
+ // C++ RNAndroidLocationPriority <> JS RNAndroidLocationPriority (enum)
38
+ template <>
39
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority> final {
40
+ static inline margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
41
+ int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
42
+ return static_cast<margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority>(enumValue);
43
+ }
44
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNAndroidLocationPriority arg) {
45
+ int enumValue = static_cast<int>(arg);
46
+ return JSIConverter<int>::toJSI(runtime, enumValue);
47
+ }
48
+ static inline bool canConvert(jsi::Runtime&, const jsi::Value& value) {
49
+ if (!value.isNumber()) {
50
+ return false;
51
+ }
52
+ double number = value.getNumber();
53
+ int integer = static_cast<int>(number);
54
+ if (number != integer) {
55
+ // The integer is not the same value as the double - we truncated floating points.
56
+ // Enums are all integers, so the input floating point number is obviously invalid.
57
+ return false;
58
+ }
59
+ // Check if we are within the bounds of the enum.
60
+ return integer >= 0 && integer <= 3;
61
+ }
62
+ };
63
+
64
+ } // namespace margelo::nitro
@@ -0,0 +1,64 @@
1
+ ///
2
+ /// RNIOSLocationAccuracy.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
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+ namespace margelo::nitro::rngooglemapsplus {
22
+
23
+ /**
24
+ * An enum which can be represented as a JavaScript enum (RNIOSLocationAccuracy).
25
+ */
26
+ enum class RNIOSLocationAccuracy {
27
+ ACCURACY_BEST SWIFT_NAME(accuracyBest) = 0,
28
+ ACCURACY_NEAREST_TEN_METER SWIFT_NAME(accuracyNearestTenMeter) = 1,
29
+ ACCURACY_NEAREST_HUNDRED_METER SWIFT_NAME(accuracyNearestHundredMeter) = 2,
30
+ ACCURACY_KILOMETER SWIFT_NAME(accuracyKilometer) = 3,
31
+ } CLOSED_ENUM;
32
+
33
+ } // namespace margelo::nitro::rngooglemapsplus
34
+
35
+ namespace margelo::nitro {
36
+
37
+ // C++ RNIOSLocationAccuracy <> JS RNIOSLocationAccuracy (enum)
38
+ template <>
39
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy> final {
40
+ static inline margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
41
+ int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
42
+ return static_cast<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>(enumValue);
43
+ }
44
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy arg) {
45
+ int enumValue = static_cast<int>(arg);
46
+ return JSIConverter<int>::toJSI(runtime, enumValue);
47
+ }
48
+ static inline bool canConvert(jsi::Runtime&, const jsi::Value& value) {
49
+ if (!value.isNumber()) {
50
+ return false;
51
+ }
52
+ double number = value.getNumber();
53
+ int integer = static_cast<int>(number);
54
+ if (number != integer) {
55
+ // The integer is not the same value as the double - we truncated floating points.
56
+ // Enums are all integers, so the input floating point number is obviously invalid.
57
+ return false;
58
+ }
59
+ // Check if we are within the bounds of the enum.
60
+ return integer >= 0 && integer <= 3;
61
+ }
62
+ };
63
+
64
+ } // namespace margelo::nitro
@@ -0,0 +1,73 @@
1
+ ///
2
+ /// RNIOSLocationConfig.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
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+ // Forward declaration of `RNIOSLocationAccuracy` to properly resolve imports.
22
+ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
23
+
24
+ #include "RNIOSLocationAccuracy.hpp"
25
+ #include <optional>
26
+
27
+ namespace margelo::nitro::rngooglemapsplus {
28
+
29
+ /**
30
+ * A struct which can be represented as a JavaScript object (RNIOSLocationConfig).
31
+ */
32
+ struct RNIOSLocationConfig {
33
+ public:
34
+ std::optional<RNIOSLocationAccuracy> desiredAccuracy SWIFT_PRIVATE;
35
+ std::optional<double> distanceFilterMeters SWIFT_PRIVATE;
36
+
37
+ public:
38
+ RNIOSLocationConfig() = default;
39
+ explicit RNIOSLocationConfig(std::optional<RNIOSLocationAccuracy> desiredAccuracy, std::optional<double> distanceFilterMeters): desiredAccuracy(desiredAccuracy), distanceFilterMeters(distanceFilterMeters) {}
40
+ };
41
+
42
+ } // namespace margelo::nitro::rngooglemapsplus
43
+
44
+ namespace margelo::nitro {
45
+
46
+ // C++ RNIOSLocationConfig <> JS RNIOSLocationConfig (object)
47
+ template <>
48
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNIOSLocationConfig> final {
49
+ static inline margelo::nitro::rngooglemapsplus::RNIOSLocationConfig fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
50
+ jsi::Object obj = arg.asObject(runtime);
51
+ return margelo::nitro::rngooglemapsplus::RNIOSLocationConfig(
52
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>>::fromJSI(runtime, obj.getProperty(runtime, "desiredAccuracy")),
53
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "distanceFilterMeters"))
54
+ );
55
+ }
56
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNIOSLocationConfig& arg) {
57
+ jsi::Object obj(runtime);
58
+ obj.setProperty(runtime, "desiredAccuracy", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>>::toJSI(runtime, arg.desiredAccuracy));
59
+ obj.setProperty(runtime, "distanceFilterMeters", JSIConverter<std::optional<double>>::toJSI(runtime, arg.distanceFilterMeters));
60
+ return obj;
61
+ }
62
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
63
+ if (!value.isObject()) {
64
+ return false;
65
+ }
66
+ jsi::Object obj = value.getObject(runtime);
67
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationAccuracy>>::canConvert(runtime, obj.getProperty(runtime, "desiredAccuracy"))) return false;
68
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "distanceFilterMeters"))) return false;
69
+ return true;
70
+ }
71
+ };
72
+
73
+ } // namespace margelo::nitro
@@ -34,11 +34,11 @@ namespace margelo::nitro::rngooglemapsplus {
34
34
  public:
35
35
  std::optional<std::string> mapId SWIFT_PRIVATE;
36
36
  std::optional<bool> liteMode SWIFT_PRIVATE;
37
- std::optional<RNCamera> initialCamera SWIFT_PRIVATE;
37
+ std::optional<RNCamera> camera SWIFT_PRIVATE;
38
38
 
39
39
  public:
40
40
  RNInitialProps() = default;
41
- explicit RNInitialProps(std::optional<std::string> mapId, std::optional<bool> liteMode, std::optional<RNCamera> initialCamera): mapId(mapId), liteMode(liteMode), initialCamera(initialCamera) {}
41
+ explicit RNInitialProps(std::optional<std::string> mapId, std::optional<bool> liteMode, std::optional<RNCamera> camera): mapId(mapId), liteMode(liteMode), camera(camera) {}
42
42
  };
43
43
 
44
44
  } // namespace margelo::nitro::rngooglemapsplus
@@ -53,14 +53,14 @@ namespace margelo::nitro {
53
53
  return margelo::nitro::rngooglemapsplus::RNInitialProps(
54
54
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "mapId")),
55
55
  JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "liteMode")),
56
- JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::fromJSI(runtime, obj.getProperty(runtime, "initialCamera"))
56
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::fromJSI(runtime, obj.getProperty(runtime, "camera"))
57
57
  );
58
58
  }
59
59
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNInitialProps& arg) {
60
60
  jsi::Object obj(runtime);
61
61
  obj.setProperty(runtime, "mapId", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.mapId));
62
62
  obj.setProperty(runtime, "liteMode", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.liteMode));
63
- obj.setProperty(runtime, "initialCamera", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::toJSI(runtime, arg.initialCamera));
63
+ obj.setProperty(runtime, "camera", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::toJSI(runtime, arg.camera));
64
64
  return obj;
65
65
  }
66
66
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -70,7 +70,7 @@ namespace margelo::nitro {
70
70
  jsi::Object obj = value.getObject(runtime);
71
71
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "mapId"))) return false;
72
72
  if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "liteMode"))) return false;
73
- if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::canConvert(runtime, obj.getProperty(runtime, "initialCamera"))) return false;
73
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNCamera>>::canConvert(runtime, obj.getProperty(runtime, "camera"))) return false;
74
74
  return true;
75
75
  }
76
76
  };
@@ -0,0 +1,76 @@
1
+ ///
2
+ /// RNLocationConfig.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
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+ // Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
22
+ namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
23
+ // Forward declaration of `RNIOSLocationConfig` to properly resolve imports.
24
+ namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
25
+
26
+ #include "RNAndroidLocationConfig.hpp"
27
+ #include <optional>
28
+ #include "RNIOSLocationConfig.hpp"
29
+
30
+ namespace margelo::nitro::rngooglemapsplus {
31
+
32
+ /**
33
+ * A struct which can be represented as a JavaScript object (RNLocationConfig).
34
+ */
35
+ struct RNLocationConfig {
36
+ public:
37
+ std::optional<RNAndroidLocationConfig> android SWIFT_PRIVATE;
38
+ std::optional<RNIOSLocationConfig> ios SWIFT_PRIVATE;
39
+
40
+ public:
41
+ RNLocationConfig() = default;
42
+ explicit RNLocationConfig(std::optional<RNAndroidLocationConfig> android, std::optional<RNIOSLocationConfig> ios): android(android), ios(ios) {}
43
+ };
44
+
45
+ } // namespace margelo::nitro::rngooglemapsplus
46
+
47
+ namespace margelo::nitro {
48
+
49
+ // C++ RNLocationConfig <> JS RNLocationConfig (object)
50
+ template <>
51
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNLocationConfig> final {
52
+ static inline margelo::nitro::rngooglemapsplus::RNLocationConfig fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
53
+ jsi::Object obj = arg.asObject(runtime);
54
+ return margelo::nitro::rngooglemapsplus::RNLocationConfig(
55
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig>>::fromJSI(runtime, obj.getProperty(runtime, "android")),
56
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationConfig>>::fromJSI(runtime, obj.getProperty(runtime, "ios"))
57
+ );
58
+ }
59
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNLocationConfig& arg) {
60
+ jsi::Object obj(runtime);
61
+ obj.setProperty(runtime, "android", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig>>::toJSI(runtime, arg.android));
62
+ obj.setProperty(runtime, "ios", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationConfig>>::toJSI(runtime, arg.ios));
63
+ return obj;
64
+ }
65
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
66
+ if (!value.isObject()) {
67
+ return false;
68
+ }
69
+ jsi::Object obj = value.getObject(runtime);
70
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNAndroidLocationConfig>>::canConvert(runtime, obj.getProperty(runtime, "android"))) return false;
71
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNIOSLocationConfig>>::canConvert(runtime, obj.getProperty(runtime, "ios"))) return false;
72
+ return true;
73
+ }
74
+ };
75
+
76
+ } // namespace margelo::nitro
@@ -0,0 +1,107 @@
1
+ ///
2
+ /// RNMapUiSettings.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
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+
21
+
22
+
23
+ #include <optional>
24
+
25
+ namespace margelo::nitro::rngooglemapsplus {
26
+
27
+ /**
28
+ * A struct which can be represented as a JavaScript object (RNMapUiSettings).
29
+ */
30
+ struct RNMapUiSettings {
31
+ public:
32
+ std::optional<bool> allGesturesEnabled SWIFT_PRIVATE;
33
+ std::optional<bool> compassEnabled SWIFT_PRIVATE;
34
+ std::optional<bool> indoorLevelPickerEnabled SWIFT_PRIVATE;
35
+ std::optional<bool> mapToolbarEnabled SWIFT_PRIVATE;
36
+ std::optional<bool> myLocationButtonEnabled SWIFT_PRIVATE;
37
+ std::optional<bool> rotateEnabled SWIFT_PRIVATE;
38
+ std::optional<bool> scrollEnabled SWIFT_PRIVATE;
39
+ std::optional<bool> scrollDuringRotateOrZoomEnabled SWIFT_PRIVATE;
40
+ std::optional<bool> tiltEnabled SWIFT_PRIVATE;
41
+ std::optional<bool> zoomControlsEnabled SWIFT_PRIVATE;
42
+ std::optional<bool> zoomGesturesEnabled SWIFT_PRIVATE;
43
+
44
+ public:
45
+ RNMapUiSettings() = default;
46
+ explicit RNMapUiSettings(std::optional<bool> allGesturesEnabled, std::optional<bool> compassEnabled, std::optional<bool> indoorLevelPickerEnabled, std::optional<bool> mapToolbarEnabled, std::optional<bool> myLocationButtonEnabled, std::optional<bool> rotateEnabled, std::optional<bool> scrollEnabled, std::optional<bool> scrollDuringRotateOrZoomEnabled, std::optional<bool> tiltEnabled, std::optional<bool> zoomControlsEnabled, std::optional<bool> zoomGesturesEnabled): allGesturesEnabled(allGesturesEnabled), compassEnabled(compassEnabled), indoorLevelPickerEnabled(indoorLevelPickerEnabled), mapToolbarEnabled(mapToolbarEnabled), myLocationButtonEnabled(myLocationButtonEnabled), rotateEnabled(rotateEnabled), scrollEnabled(scrollEnabled), scrollDuringRotateOrZoomEnabled(scrollDuringRotateOrZoomEnabled), tiltEnabled(tiltEnabled), zoomControlsEnabled(zoomControlsEnabled), zoomGesturesEnabled(zoomGesturesEnabled) {}
47
+ };
48
+
49
+ } // namespace margelo::nitro::rngooglemapsplus
50
+
51
+ namespace margelo::nitro {
52
+
53
+ // C++ RNMapUiSettings <> JS RNMapUiSettings (object)
54
+ template <>
55
+ struct JSIConverter<margelo::nitro::rngooglemapsplus::RNMapUiSettings> final {
56
+ static inline margelo::nitro::rngooglemapsplus::RNMapUiSettings fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
57
+ jsi::Object obj = arg.asObject(runtime);
58
+ return margelo::nitro::rngooglemapsplus::RNMapUiSettings(
59
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "allGesturesEnabled")),
60
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "compassEnabled")),
61
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "indoorLevelPickerEnabled")),
62
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "mapToolbarEnabled")),
63
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "myLocationButtonEnabled")),
64
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "rotateEnabled")),
65
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "scrollEnabled")),
66
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "scrollDuringRotateOrZoomEnabled")),
67
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "tiltEnabled")),
68
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "zoomControlsEnabled")),
69
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "zoomGesturesEnabled"))
70
+ );
71
+ }
72
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNMapUiSettings& arg) {
73
+ jsi::Object obj(runtime);
74
+ obj.setProperty(runtime, "allGesturesEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.allGesturesEnabled));
75
+ obj.setProperty(runtime, "compassEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.compassEnabled));
76
+ obj.setProperty(runtime, "indoorLevelPickerEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.indoorLevelPickerEnabled));
77
+ obj.setProperty(runtime, "mapToolbarEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.mapToolbarEnabled));
78
+ obj.setProperty(runtime, "myLocationButtonEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.myLocationButtonEnabled));
79
+ obj.setProperty(runtime, "rotateEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.rotateEnabled));
80
+ obj.setProperty(runtime, "scrollEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.scrollEnabled));
81
+ obj.setProperty(runtime, "scrollDuringRotateOrZoomEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.scrollDuringRotateOrZoomEnabled));
82
+ obj.setProperty(runtime, "tiltEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.tiltEnabled));
83
+ obj.setProperty(runtime, "zoomControlsEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.zoomControlsEnabled));
84
+ obj.setProperty(runtime, "zoomGesturesEnabled", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.zoomGesturesEnabled));
85
+ return obj;
86
+ }
87
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
88
+ if (!value.isObject()) {
89
+ return false;
90
+ }
91
+ jsi::Object obj = value.getObject(runtime);
92
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "allGesturesEnabled"))) return false;
93
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "compassEnabled"))) return false;
94
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "indoorLevelPickerEnabled"))) return false;
95
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "mapToolbarEnabled"))) return false;
96
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "myLocationButtonEnabled"))) return false;
97
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "rotateEnabled"))) return false;
98
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "scrollEnabled"))) return false;
99
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "scrollDuringRotateOrZoomEnabled"))) return false;
100
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "tiltEnabled"))) return false;
101
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "zoomControlsEnabled"))) return false;
102
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "zoomGesturesEnabled"))) return false;
103
+ return true;
104
+ }
105
+ };
106
+
107
+ } // namespace margelo::nitro
@@ -22,11 +22,14 @@
22
22
  namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
23
23
  // Forward declaration of `RNPosition` to properly resolve imports.
24
24
  namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
25
+ // Forward declaration of `RNMarkerSvg` to properly resolve imports.
26
+ namespace margelo::nitro::rngooglemapsplus { struct RNMarkerSvg; }
25
27
 
26
28
  #include <string>
27
29
  #include <optional>
28
30
  #include "RNLatLng.hpp"
29
31
  #include "RNPosition.hpp"
32
+ #include "RNMarkerSvg.hpp"
30
33
 
31
34
  namespace margelo::nitro::rngooglemapsplus {
32
35
 
@@ -39,13 +42,11 @@ namespace margelo::nitro::rngooglemapsplus {
39
42
  std::optional<double> zIndex SWIFT_PRIVATE;
40
43
  RNLatLng coordinate SWIFT_PRIVATE;
41
44
  std::optional<RNPosition> anchor SWIFT_PRIVATE;
42
- double width SWIFT_PRIVATE;
43
- double height SWIFT_PRIVATE;
44
- std::string iconSvg SWIFT_PRIVATE;
45
+ std::optional<RNMarkerSvg> iconSvg SWIFT_PRIVATE;
45
46
 
46
47
  public:
47
48
  RNMarker() = default;
48
- explicit RNMarker(std::string id, std::optional<double> zIndex, RNLatLng coordinate, std::optional<RNPosition> anchor, double width, double height, std::string iconSvg): id(id), zIndex(zIndex), coordinate(coordinate), anchor(anchor), width(width), height(height), iconSvg(iconSvg) {}
49
+ explicit RNMarker(std::string id, std::optional<double> zIndex, RNLatLng coordinate, std::optional<RNPosition> anchor, std::optional<RNMarkerSvg> iconSvg): id(id), zIndex(zIndex), coordinate(coordinate), anchor(anchor), iconSvg(iconSvg) {}
49
50
  };
50
51
 
51
52
  } // namespace margelo::nitro::rngooglemapsplus
@@ -62,9 +63,7 @@ namespace margelo::nitro {
62
63
  JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "zIndex")),
63
64
  JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::fromJSI(runtime, obj.getProperty(runtime, "coordinate")),
64
65
  JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::fromJSI(runtime, obj.getProperty(runtime, "anchor")),
65
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "width")),
66
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "height")),
67
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "iconSvg"))
66
+ JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNMarkerSvg>>::fromJSI(runtime, obj.getProperty(runtime, "iconSvg"))
68
67
  );
69
68
  }
70
69
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rngooglemapsplus::RNMarker& arg) {
@@ -73,9 +72,7 @@ namespace margelo::nitro {
73
72
  obj.setProperty(runtime, "zIndex", JSIConverter<std::optional<double>>::toJSI(runtime, arg.zIndex));
74
73
  obj.setProperty(runtime, "coordinate", JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::toJSI(runtime, arg.coordinate));
75
74
  obj.setProperty(runtime, "anchor", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::toJSI(runtime, arg.anchor));
76
- obj.setProperty(runtime, "width", JSIConverter<double>::toJSI(runtime, arg.width));
77
- obj.setProperty(runtime, "height", JSIConverter<double>::toJSI(runtime, arg.height));
78
- obj.setProperty(runtime, "iconSvg", JSIConverter<std::string>::toJSI(runtime, arg.iconSvg));
75
+ obj.setProperty(runtime, "iconSvg", JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNMarkerSvg>>::toJSI(runtime, arg.iconSvg));
79
76
  return obj;
80
77
  }
81
78
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -87,9 +84,7 @@ namespace margelo::nitro {
87
84
  if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "zIndex"))) return false;
88
85
  if (!JSIConverter<margelo::nitro::rngooglemapsplus::RNLatLng>::canConvert(runtime, obj.getProperty(runtime, "coordinate"))) return false;
89
86
  if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNPosition>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
90
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "width"))) return false;
91
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "height"))) return false;
92
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "iconSvg"))) return false;
87
+ if (!JSIConverter<std::optional<margelo::nitro::rngooglemapsplus::RNMarkerSvg>>::canConvert(runtime, obj.getProperty(runtime, "iconSvg"))) return false;
93
88
  return true;
94
89
  }
95
90
  };