react-native-google-maps-plus 1.10.2-dev.1 → 1.10.2-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 (98) hide show
  1. package/README.md +12 -114
  2. package/ios/GoogleMapViewImpl.swift +3 -0
  3. package/lib/module/GoogleMapsPlus.js +10 -1
  4. package/lib/module/GoogleMapsPlus.js.map +1 -1
  5. package/lib/module/index.js +90 -1
  6. package/lib/module/index.js.map +1 -1
  7. package/lib/module/types.js +145 -39
  8. package/lib/module/types.js.map +1 -1
  9. package/lib/typescript/src/GoogleMapsPlus.d.ts +8 -0
  10. package/lib/typescript/src/GoogleMapsPlus.d.ts.map +1 -1
  11. package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts +17 -1
  12. package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -1
  13. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +87 -3
  14. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  15. package/lib/typescript/src/index.d.ts +89 -1
  16. package/lib/typescript/src/index.d.ts.map +1 -1
  17. package/lib/typescript/src/types.d.ts +340 -17
  18. package/lib/typescript/src/types.d.ts.map +1 -1
  19. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorBuilding.hpp +12 -11
  20. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorLevel.hpp +12 -11
  21. package/nitrogen/generated/android/c++/JFunc_void_RNLatLng.hpp +2 -1
  22. package/nitrogen/generated/android/c++/JFunc_void_RNLocation.hpp +2 -1
  23. package/nitrogen/generated/android/c++/JFunc_void_RNLocationErrorCode.hpp +2 -1
  24. package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode.hpp +2 -1
  25. package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera.hpp +2 -1
  26. package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +2 -1
  27. package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +2 -1
  28. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +2 -1
  29. package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +2 -1
  30. package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string_RNLatLng.hpp +2 -1
  31. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +32 -81
  32. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +4 -4
  33. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +9 -9
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +9 -9
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +2 -2
  36. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +7 -6
  37. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +28 -28
  38. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +4 -4
  39. package/nitrogen/generated/ios/swift/Func_void_RNIndoorBuilding.swift +6 -6
  40. package/nitrogen/generated/ios/swift/Func_void_RNIndoorLevel.swift +6 -6
  41. package/nitrogen/generated/ios/swift/Func_void_RNLatLng.swift +1 -1
  42. package/nitrogen/generated/ios/swift/Func_void_RNLocation.swift +1 -1
  43. package/nitrogen/generated/ios/swift/Func_void_RNLocationErrorCode.swift +1 -1
  44. package/nitrogen/generated/ios/swift/Func_void_RNLocationPermissionResult.swift +1 -1
  45. package/nitrogen/generated/ios/swift/Func_void_RNMapErrorCode.swift +1 -1
  46. package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera.swift +1 -1
  47. package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera_bool.swift +1 -1
  48. package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
  49. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
  50. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +1 -1
  51. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
  52. package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +1 -1
  53. package/nitrogen/generated/ios/swift/Func_void_std__string_std__string_RNLatLng.swift +1 -1
  54. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +0 -1
  55. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec_cxx.swift +0 -1
  56. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +2 -3
  57. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +16 -17
  58. package/nitrogen/generated/ios/swift/RNAndroidLocationConfig.swift +1 -0
  59. package/nitrogen/generated/ios/swift/RNCamera.swift +1 -0
  60. package/nitrogen/generated/ios/swift/RNCameraUpdate.swift +1 -0
  61. package/nitrogen/generated/ios/swift/RNCircle.swift +1 -0
  62. package/nitrogen/generated/ios/swift/RNHeatmap.swift +1 -0
  63. package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +1 -0
  64. package/nitrogen/generated/ios/swift/RNHeatmapPoint.swift +1 -0
  65. package/nitrogen/generated/ios/swift/RNIOSLocationConfig.swift +1 -0
  66. package/nitrogen/generated/ios/swift/RNIndoorBuilding.swift +1 -0
  67. package/nitrogen/generated/ios/swift/RNIndoorLevel.swift +1 -0
  68. package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -0
  69. package/nitrogen/generated/ios/swift/RNKMLayer.swift +1 -0
  70. package/nitrogen/generated/ios/swift/RNLatLng.swift +1 -0
  71. package/nitrogen/generated/ios/swift/RNLatLngBounds.swift +1 -0
  72. package/nitrogen/generated/ios/swift/RNLocation.swift +1 -0
  73. package/nitrogen/generated/ios/swift/RNLocationAndroid.swift +1 -0
  74. package/nitrogen/generated/ios/swift/RNLocationConfig.swift +1 -0
  75. package/nitrogen/generated/ios/swift/RNLocationIOS.swift +1 -0
  76. package/nitrogen/generated/ios/swift/RNLocationPermissionResult.swift +1 -0
  77. package/nitrogen/generated/ios/swift/RNMapPadding.swift +1 -0
  78. package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +1 -0
  79. package/nitrogen/generated/ios/swift/RNMapZoomConfig.swift +1 -0
  80. package/nitrogen/generated/ios/swift/RNMarker.swift +1 -0
  81. package/nitrogen/generated/ios/swift/RNMarkerSvg.swift +1 -0
  82. package/nitrogen/generated/ios/swift/RNPolygon.swift +1 -0
  83. package/nitrogen/generated/ios/swift/RNPolygonHole.swift +1 -0
  84. package/nitrogen/generated/ios/swift/RNPolyline.swift +1 -0
  85. package/nitrogen/generated/ios/swift/RNPosition.swift +1 -0
  86. package/nitrogen/generated/ios/swift/RNRegion.swift +1 -0
  87. package/nitrogen/generated/ios/swift/RNSize.swift +1 -0
  88. package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +1 -0
  89. package/nitrogen/generated/ios/swift/RNUrlTileOverlay.swift +1 -0
  90. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +4 -4
  91. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +4 -4
  92. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -2
  93. package/package.json +11 -7
  94. package/src/GoogleMapsPlus.tsx +9 -1
  95. package/src/RNGoogleMapsPlusModule.nitro.ts +21 -4
  96. package/src/RNGoogleMapsPlusView.nitro.ts +143 -18
  97. package/src/index.tsx +90 -1
  98. package/src/types.ts +475 -67
package/README.md CHANGED
@@ -3,131 +3,29 @@
3
3
  [![npm version](https://img.shields.io/npm/v/react-native-google-maps-plus.svg?logo=npm&color=cb0000)](https://www.npmjs.com/package/react-native-google-maps-plus)
4
4
  [![Dev Release](https://img.shields.io/npm/v/react-native-google-maps-plus/dev.svg?label=dev%20release&color=orange)](https://www.npmjs.com/package/react-native-google-maps-plus)
5
5
  [![Build](https://github.com/pinpong/react-native-google-maps-plus/actions/workflows/release.yml/badge.svg)](https://github.com/pinpong/react-native-google-maps-plus/actions/workflows/release.yml)
6
+ [![API Docs](https://img.shields.io/static/v1?label=typedoc&message=docs&color=informational)](https://pinpong.github.io/react-native-google-maps-plus)
6
7
  ![React Native](https://img.shields.io/badge/react--native-%3E%3D0.81.0-61dafb.svg?logo=react)
7
8
 
8
9
  React Native wrapper for Android & iOS Google Maps SDK.
9
10
 
10
- ## Installation
11
+ ## Documentation
11
12
 
12
- `react-native-nitro-modules` is required as this library relies on [Nitro Modules](https://nitro.margelo.com/).
13
+ Full installation guide and API reference:
14
+ https://pinpong.github.io/react-native-google-maps-plus
13
15
 
14
- ```sh
15
- yarn add react-native-google-maps-plus react-native-nitro-modules
16
- ```
17
-
18
- **iOS**
19
-
20
- Add this to your Podfile only for bare React Native apps.
21
- (Not required for Expo, handled by the config plugin.)
22
-
23
- ```ruby
24
- post_install do |installer|
25
- react_native_post_install(
26
- installer,
27
- config[:reactNativePath],
28
- :mac_catalyst_enabled => false,
29
- # :ccache_enabled => true
30
- )
31
-
32
- require_relative '../node_modules/react-native-google-maps-plus/scripts/svgkit_patch'
33
- apply_svgkit_patch(installer)
34
- end
35
- ```
36
-
37
- ### Expo Projects
38
-
39
- Add your keys to the `app.json`.
40
- The config plugin automatically injects them into your native Android and iOS builds during `expo prebuild`.
41
-
42
- ```json
43
- {
44
- "expo": {
45
- "plugins": [
46
- [
47
- "react-native-google-maps-plus",
48
- {
49
- "googleMapsAndroidApiKey": "YOUR_ANDROID_MAPS_API_KEY",
50
- "googleMapsIosApiKey": "YOUR_IOS_MAPS_API_KEY"
51
- }
52
- ]
53
- ]
54
- }
55
- }
56
- ```
57
-
58
- ## Setup API Key
59
-
60
- You will need a valid **Google Maps API Key** from the [Google Cloud Console](https://console.cloud.google.com/).
61
-
62
- ### Android
63
-
64
- **Note:** These instructions apply to **bare React Native apps only**.
65
- Expo projects should use the config plugin instead (see Expo section above).
66
-
67
- See the official [Google Maps Android SDK configuration guide](https://developers.google.com/maps/documentation/android-sdk/config#step_3_add_your_api_key_to_the_project) for more details.
68
-
69
- ### iOS
70
-
71
- **Note:** These instructions apply to **bare React Native apps only**.
72
- Expo projects should use the config plugin instead (see Expo section above).
73
-
74
- See the official [Google Maps iOS SDK configuration guide](https://developers.google.com/maps/documentation/ios-sdk/config#get-key) for more details.
75
-
76
- ## Dependencies & Native Documentation
77
-
78
- This package is React Native wrapper around the official Google Maps SDKs.
79
- For full API behavior, configuration options, and feature reference, please consult the native documentation:
80
-
81
- - **iOS Google Maps SDK**
82
- https://developers.google.com/maps/documentation/ios-sdk
83
-
84
- - **Android Google Maps SDK**
85
- https://developers.google.com/maps/documentation/android-sdk
86
-
87
- - **Maps Utility Libraries (iOS & Android)**
88
- https://developers.google.com/maps/documentation/ios-sdk/utility
89
- https://developers.google.com/maps/documentation/android-sdk/utility
90
-
91
- - **SVG Rendering** (used for custom marker icons)
92
- - iOS: https://github.com/SVGKit/SVGKit
93
- - Android: https://bigbadaboom.github.io/androidsvg/
94
-
95
- These libraries are automatically linked during installation.
96
- If you encounter build issues, try cleaning and rebuilding your native project.
97
-
98
- > **Note:** This package follows the native SDKs closely. Props and behavior match the underlying Google Maps APIs whenever possible.
16
+ ## Contributing
99
17
 
100
- ## Usage
18
+ - [Development workflow](CONTRIBUTING.md#development-workflow)
19
+ - [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
20
+ - [Code of conduct](CODE_OF_CONDUCT.md)
101
21
 
102
- Basic map:
22
+ ## License
103
23
 
104
- ```tsx
105
- import React from 'react';
106
- import { GoogleMapsView } from 'react-native-google-maps-plus';
24
+ MIT
107
25
 
108
- export default function App() {
109
- return (
110
- <GoogleMapsView
111
- style={{ flex: 1 }}
112
- initialProps={{
113
- camera: {
114
- center: { latitude: 37.7749, longitude: -122.4194 },
115
- zoom: 12,
116
- },
117
- }}
118
- markers={[
119
- {
120
- id: '1',
121
- zIndex: 1,
122
- coordinate: { latitude: 37.7749, longitude: -122.4194 },
123
- },
124
- ]}
125
- />
126
- );
127
- }
128
- ```
26
+ ---
129
27
 
130
- Check out the example app in the [example](./example) folder.
28
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
131
29
 
132
30
  ## Contributing
133
31
 
@@ -206,6 +206,9 @@ GMSIndoorDisplayDelegate {
206
206
  self.uiSettings?.tiltEnabled ?? true
207
207
  self.mapView?.settings.zoomGestures =
208
208
  self.uiSettings?.zoomGesturesEnabled ?? true
209
+
210
+ /* self.uiSettings?.mapToolbarEnabled → unsupported on iOS */
211
+ /* self.uiSettings?.zoomControlsEnabled → unsupported on iOS */
209
212
  }
210
213
  }
211
214
  }
@@ -1,7 +1,16 @@
1
1
  "use strict";
2
2
 
3
- import { getHostComponent, NitroModules } from 'react-native-nitro-modules';
3
+ import { NitroModules, getHostComponent } from 'react-native-nitro-modules';
4
4
  import ViewConfig from '../nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json' with { type: 'json' };
5
+ /**
6
+ * Native Google Maps view.
7
+ * Direct bindings to the underlying Google Maps SDKs.
8
+ */
5
9
  export const GoogleMapsView = getHostComponent('RNGoogleMapsPlusView', () => ViewConfig);
10
+
11
+ /**
12
+ * Platform-level module.
13
+ * Exposes system APIs such as permissions and Play Services checks.
14
+ */
6
15
  export const GoogleMapsModule = NitroModules.createHybridObject('RNGoogleMapsPlusModule');
7
16
  //# sourceMappingURL=GoogleMapsPlus.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getHostComponent","NitroModules","ViewConfig","type","GoogleMapsView","GoogleMapsModule","createHybridObject"],"sourceRoot":"../../src","sources":["GoogleMapsPlus.tsx"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,YAAY,QAAQ,4BAA4B;AAE3E,OAAOC,UAAU,MAAM,mEAAmE,QAAQC,IAAI,EAAE,MAAM;AAQ9G,OAAO,MAAMC,cAAc,GAAGJ,gBAAgB,CAG5C,sBAAsB,EAAE,MAAME,UAAU,CAAC;AAE3C,OAAO,MAAMG,gBAAgB,GAC3BJ,YAAY,CAACK,kBAAkB,CAC7B,wBACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NitroModules","getHostComponent","ViewConfig","type","GoogleMapsView","GoogleMapsModule","createHybridObject"],"sourceRoot":"../../src","sources":["GoogleMapsPlus.tsx"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,gBAAgB,QAAQ,4BAA4B;AAE3E,OAAOC,UAAU,MAAM,mEAAmE,QAAQC,IAAI,EAAE,MAAM;AAQ9G;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGH,gBAAgB,CAG5C,sBAAsB,EAAE,MAAMC,UAAU,CAAC;;AAE3C;AACA;AACA;AACA;AACA,OAAO,MAAMG,gBAAgB,GAC3BL,YAAY,CAACM,kBAAkB,CAC7B,wBACF,CAAC","ignoreList":[]}
@@ -1,6 +1,95 @@
1
1
  "use strict";
2
2
 
3
- import { GoogleMapsView, GoogleMapsModule } from './GoogleMapsPlus';
3
+ /**
4
+ * @packageDocumentation
5
+ *
6
+ * # Installation
7
+ *
8
+ * `react-native-nitro-modules` is required as this library relies on Nitro Modules.
9
+ *
10
+ * ```sh
11
+ * yarn add react-native-google-maps-plus react-native-nitro-modules
12
+ * ```
13
+ *
14
+ * ## iOS Setup (Bare RN only)
15
+ *
16
+ * Add this to your Podfile:
17
+ *
18
+ * ```ruby
19
+ * post_install do |installer|
20
+ * react_native_post_install(
21
+ * installer,
22
+ * config[:reactNativePath],
23
+ * :mac_catalyst_enabled => false,
24
+ * )
25
+ *
26
+ * require_relative '../node_modules/react-native-google-maps-plus/scripts/svgkit_patch'
27
+ * apply_svgkit_patch(installer)
28
+ * end
29
+ * ```
30
+ *
31
+ * ## Expo Setup
32
+ *
33
+ * Add your keys via the config plugin:
34
+ *
35
+ * ```json
36
+ * {
37
+ * "expo": {
38
+ * "plugins": [
39
+ * [
40
+ * "react-native-google-maps-plus",
41
+ * {
42
+ * "googleMapsAndroidApiKey": "YOUR_ANDROID_MAPS_API_KEY",
43
+ * "googleMapsIosApiKey": "YOUR_IOS_MAPS_API_KEY"
44
+ * }
45
+ * ]
46
+ * ]
47
+ * }
48
+ * }
49
+ * ```
50
+ *
51
+ * # API Keys
52
+ *
53
+ * You need a valid Google Maps API key.
54
+ *
55
+ * Android Guide:
56
+ * https://developers.google.com/maps/documentation/android-sdk/config
57
+ *
58
+ * iOS Guide:
59
+ * https://developers.google.com/maps/documentation/ios-sdk/config
60
+ *
61
+ *
62
+ * # Native Dependencies
63
+ *
64
+ * - iOS Google Maps SDK
65
+ * https://developers.google.com/maps/documentation/ios-sdk
66
+ *
67
+ * - Android Google Maps SDK
68
+ * https://developers.google.com/maps/documentation/android-sdk
69
+ *
70
+ * - SVG Rendering
71
+ * iOS: SVGKit
72
+ * Android: AndroidSVG
73
+ *
74
+ *
75
+ * # Usage Example
76
+ *
77
+ * ```tsx
78
+ * <GoogleMapsView
79
+ * style={{ flex: 1 }}
80
+ * initialProps={{
81
+ * camera: {
82
+ * center: { latitude: 37.7749, longitude: -122.4194 },
83
+ * zoom: 12,
84
+ * },
85
+ * }}
86
+ * />
87
+ * ```
88
+ *
89
+ * Check out the example app in the [example directory](https://github.com/pinpong/react-native-google-maps-plus/tree/main/example).
90
+ */
91
+
92
+ import { GoogleMapsModule, GoogleMapsView } from './GoogleMapsPlus';
4
93
  export * from './types';
5
94
  export { GoogleMapsView, GoogleMapsModule };
6
95
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GoogleMapsView","GoogleMapsModule"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,cAAc,EAAEC,gBAAgB,QAAQ,kBAAkB;AAQnE,cAAc,SAAS;AAQvB,SAASD,cAAc,EAAEC,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["GoogleMapsModule","GoogleMapsView"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,gBAAgB,EAAEC,cAAc,QAAQ,kBAAkB;AAQnE,cAAc,SAAS;AAQvB,SAASA,cAAc,EAAED,gBAAgB","ignoreList":[]}
@@ -1,99 +1,205 @@
1
1
  "use strict";
2
2
 
3
- /*
4
- | 'administrative'
5
- | 'administrative.country'
6
- | 'administrative.land_parcel'
7
- | 'administrative.locality'
8
- | 'administrative.neighborhood'
9
- | 'administrative.province'
10
- | 'landscape'
11
- | 'landscape.man_made'
12
- | 'landscape.natural'
13
- | 'poi'
14
- | 'poi.attraction'
15
- | 'poi.business'
16
- | 'poi.government'
17
- | 'poi.medical'
18
- | 'poi.park'
19
- | 'poi.place_of_worship'
20
- | 'poi.school'
21
- | 'poi.sports_complex'
22
- | 'road'
23
- | 'road.arterial'
24
- | 'road.highway'
25
- | 'road.local'
26
- | 'transit'
27
- | 'transit.line'
28
- | 'transit.station'
29
- | 'water';
3
+ /**
4
+ * Platform behavior
5
+ *
6
+ * Thin TypeScript layer over the native Google Maps SDKs for Android and iOS.
7
+ * Behavior follows the underlying SDKs unless explicitly documented otherwise.
30
8
  */
31
9
 
32
- /*
33
- | 'all'
34
- | 'geometry'
35
- | 'geometry.fill'
36
- | 'geometry.stroke'
37
- | 'labels'
38
- | 'labels.icon'
39
- | 'labels.text'
40
- | 'labels.text.fill'
41
- | 'labels.text.stroke'
10
+ /** Reference to the native Google Maps view. */
11
+
12
+ /** Initial map configuration. */
13
+
14
+ /** UI and gesture settings. */
15
+
16
+ /** Geographic coordinate. */
17
+
18
+ /** Geographic bounds. */
19
+
20
+ /** Snapshot configuration. */
21
+
22
+ /**
23
+ * Logical size of an image or view.
24
+ * iOS: points (pt)
25
+ * Android: dp
26
+ * Converted internally to physical pixels.
42
27
  */
43
28
 
44
- /*
45
- 'on' | 'off' | 'simplified';
29
+ /** Snapshot image formats. */
30
+
31
+ /** Snapshot result types. */
32
+
33
+ /**
34
+ * Map padding in logical units (pt on iOS, dp on Android).
35
+ * Both are converted internally to device pixels.
46
36
  */
47
37
 
38
+ /** Base map types. */
39
+
40
+ /** UI style mode. */
41
+
42
+ /** Camera definition. */
43
+
44
+ /** Partial camera update. */
45
+
46
+ /** Visible region. */
47
+
48
+ /** 2D position in view coordinates. */
49
+
50
+ /** Zoom configuration. */
51
+
52
+ /**
53
+ * Line cap styles.
54
+ *
55
+ * Android: supported.
56
+ * iOS: not supported.
57
+ */
58
+
59
+ /**
60
+ * Line join styles.
61
+ *
62
+ * Android: supported.
63
+ * iOS: not supported.
64
+ */
65
+
66
+ /**
67
+ * Marker definition.
68
+ *
69
+ * On iOS, some default animations are suppressed for parity with Android.
70
+ */
71
+
72
+ /** Marker SVG definition. */
73
+
74
+ /** Polygon definition. */
75
+
76
+ /** Polygon hole definition. */
77
+
78
+ /** Polyline definition. */
79
+
80
+ /** Circle definition. */
81
+
82
+ /** Heatmap configuration. */
83
+
84
+ /** Heatmap point definition. */
85
+
86
+ /** Heatmap gradient configuration. */
87
+
88
+ /** KML layer configuration. */
89
+
90
+ /** URL tile overlay configuration. */
91
+
92
+ /** Indoor building information. */
93
+
94
+ /** Indoor level information. */
95
+
96
+ /** Location configuration. */
97
+
98
+ /** Android location configuration. */
99
+
100
+ /** Android location priorities. */
48
101
  export let RNAndroidLocationPriority = /*#__PURE__*/function (RNAndroidLocationPriority) {
102
+ /** High accuracy, higher power usage. */
49
103
  RNAndroidLocationPriority[RNAndroidLocationPriority["PRIORITY_HIGH_ACCURACY"] = 0] = "PRIORITY_HIGH_ACCURACY";
104
+ /** Balanced accuracy and power usage. */
50
105
  RNAndroidLocationPriority[RNAndroidLocationPriority["PRIORITY_BALANCED_POWER_ACCURACY"] = 1] = "PRIORITY_BALANCED_POWER_ACCURACY";
106
+ /** Low power usage, coarse accuracy. */
51
107
  RNAndroidLocationPriority[RNAndroidLocationPriority["PRIORITY_LOW_POWER"] = 2] = "PRIORITY_LOW_POWER";
108
+ /** Passive updates, no active requests. */
52
109
  RNAndroidLocationPriority[RNAndroidLocationPriority["PRIORITY_PASSIVE"] = 3] = "PRIORITY_PASSIVE";
53
110
  return RNAndroidLocationPriority;
54
111
  }({});
112
+
113
+ /** iOS location configuration. */
114
+
115
+ /** iOS location accuracy levels. */
55
116
  export let RNIOSLocationAccuracy = /*#__PURE__*/function (RNIOSLocationAccuracy) {
117
+ /** Best possible accuracy. */
56
118
  RNIOSLocationAccuracy[RNIOSLocationAccuracy["ACCURACY_BEST"] = 0] = "ACCURACY_BEST";
119
+ /** Approximately 10 m accuracy. */
57
120
  RNIOSLocationAccuracy[RNIOSLocationAccuracy["ACCURACY_NEAREST_TEN_METER"] = 1] = "ACCURACY_NEAREST_TEN_METER";
121
+ /** Approximately 100 m accuracy. */
58
122
  RNIOSLocationAccuracy[RNIOSLocationAccuracy["ACCURACY_NEAREST_HUNDRED_METER"] = 2] = "ACCURACY_NEAREST_HUNDRED_METER";
123
+ /** Approximately 1 km accuracy. */
59
124
  RNIOSLocationAccuracy[RNIOSLocationAccuracy["ACCURACY_KILOMETER"] = 3] = "ACCURACY_KILOMETER";
60
125
  return RNIOSLocationAccuracy;
61
126
  }({});
127
+
128
+ /** iOS activity types for location updates. */
62
129
  export let RNIOSLocationActivityType = /*#__PURE__*/function (RNIOSLocationActivityType) {
130
+ /** Default activity type. */
63
131
  RNIOSLocationActivityType[RNIOSLocationActivityType["OTHER"] = 0] = "OTHER";
132
+ /** Turn-by-turn navigation. */
64
133
  RNIOSLocationActivityType[RNIOSLocationActivityType["NAVIGATION"] = 1] = "NAVIGATION";
134
+ /** Automotive navigation. */
65
135
  RNIOSLocationActivityType[RNIOSLocationActivityType["AUTOMOTIVE"] = 2] = "AUTOMOTIVE";
136
+ /** Fitness and outdoor activities. */
66
137
  RNIOSLocationActivityType[RNIOSLocationActivityType["FITNESS"] = 3] = "FITNESS";
138
+ /** Airborne activity. */
67
139
  RNIOSLocationActivityType[RNIOSLocationActivityType["AIRBORNE"] = 4] = "AIRBORNE";
68
140
  return RNIOSLocationActivityType;
69
141
  }({});
142
+
143
+ /** Combined location permission result. */
144
+
145
+ /** Android location permission results. */
70
146
  export let RNAndroidLocationPermissionResult = /*#__PURE__*/function (RNAndroidLocationPermissionResult) {
147
+ /** Permission was granted. */
71
148
  RNAndroidLocationPermissionResult[RNAndroidLocationPermissionResult["GRANTED"] = 1] = "GRANTED";
149
+ /** Permission was denied. */
72
150
  RNAndroidLocationPermissionResult[RNAndroidLocationPermissionResult["DENIED"] = -1] = "DENIED";
151
+ /** User chose "never ask again". */
73
152
  RNAndroidLocationPermissionResult[RNAndroidLocationPermissionResult["NEVER_ASK_AGAIN"] = -2] = "NEVER_ASK_AGAIN";
74
153
  return RNAndroidLocationPermissionResult;
75
154
  }({});
155
+
156
+ /** iOS location permission results. */
76
157
  export let RNIOSPermissionResult = /*#__PURE__*/function (RNIOSPermissionResult) {
158
+ /** Permission was denied. */
77
159
  RNIOSPermissionResult[RNIOSPermissionResult["DENIED"] = -1] = "DENIED";
160
+ /** Permission was granted. */
78
161
  RNIOSPermissionResult[RNIOSPermissionResult["AUTHORIZED"] = 1] = "AUTHORIZED";
79
162
  return RNIOSPermissionResult;
80
163
  }({});
164
+
165
+ /** Location object. */
166
+
167
+ /** Android location. */
168
+
169
+ /** iOS location. */
170
+
171
+ /** Location error codes. */
81
172
  export let RNLocationErrorCode = /*#__PURE__*/function (RNLocationErrorCode) {
173
+ /** Location permission was denied by the user. */
82
174
  RNLocationErrorCode[RNLocationErrorCode["PERMISSION_DENIED"] = 1] = "PERMISSION_DENIED";
175
+ /** The device was unable to determine a position. */
83
176
  RNLocationErrorCode[RNLocationErrorCode["POSITION_UNAVAILABLE"] = 2] = "POSITION_UNAVAILABLE";
177
+ /** The location request timed out. */
84
178
  RNLocationErrorCode[RNLocationErrorCode["TIMEOUT"] = 3] = "TIMEOUT";
179
+ /** Required Google Play Services are not available. */
85
180
  RNLocationErrorCode[RNLocationErrorCode["PLAY_SERVICE_NOT_AVAILABLE"] = 4] = "PLAY_SERVICE_NOT_AVAILABLE";
181
+ /** Device location settings do not satisfy the request. */
86
182
  RNLocationErrorCode[RNLocationErrorCode["SETTINGS_NOT_SATISFIED"] = 5] = "SETTINGS_NOT_SATISFIED";
183
+ /** Internal or unknown error. */
87
184
  RNLocationErrorCode[RNLocationErrorCode["INTERNAL_ERROR"] = -1] = "INTERNAL_ERROR";
88
185
  return RNLocationErrorCode;
89
186
  }({});
187
+
188
+ /** Error codes related to Google Play Services Maps integration. */
90
189
  export let RNMapErrorCode = /*#__PURE__*/function (RNMapErrorCode) {
190
+ /** Google Play Services are missing on the device. */
91
191
  RNMapErrorCode[RNMapErrorCode["PLAY_SERVICES_MISSING"] = 0] = "PLAY_SERVICES_MISSING";
192
+ /** Google Play Services are present but invalid. */
92
193
  RNMapErrorCode[RNMapErrorCode["PLAY_SERVICES_INVALID"] = 1] = "PLAY_SERVICES_INVALID";
194
+ /** Google Play Services are disabled on the device. */
93
195
  RNMapErrorCode[RNMapErrorCode["PLAY_SERVICES_DISABLED"] = 2] = "PLAY_SERVICES_DISABLED";
196
+ /** Google Play Services are installed, but outdated. */
94
197
  RNMapErrorCode[RNMapErrorCode["PLAY_SERVICES_OUTDATED"] = 3] = "PLAY_SERVICES_OUTDATED";
198
+ /** A newer version of Google Play Services is available. */
95
199
  RNMapErrorCode[RNMapErrorCode["PLAY_SERVICE_UPDATE_AVAILABLE"] = 4] = "PLAY_SERVICE_UPDATE_AVAILABLE";
200
+ /** Google Play Services are currently updating. */
96
201
  RNMapErrorCode[RNMapErrorCode["PLAY_SERVICE_UPDATING"] = 5] = "PLAY_SERVICE_UPDATING";
202
+ /** Unknown error. */
97
203
  RNMapErrorCode[RNMapErrorCode["UNKNOWN"] = 6] = "UNKNOWN";
98
204
  return RNMapErrorCode;
99
205
  }({});
@@ -1 +1 @@
1
- {"version":3,"names":["RNAndroidLocationPriority","RNIOSLocationAccuracy","RNIOSLocationActivityType","RNAndroidLocationPermissionResult","RNIOSPermissionResult","RNLocationErrorCode","RNMapErrorCode"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":";;AAmEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;;AA+KA,WAAYA,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;AAarC,WAAYC,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAOjC,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;AAarC,WAAYC,iCAAiC,0BAAjCA,iCAAiC;EAAjCA,iCAAiC,CAAjCA,iCAAiC;EAAjCA,iCAAiC,CAAjCA,iCAAiC;EAAjCA,iCAAiC,CAAjCA,iCAAiC;EAAA,OAAjCA,iCAAiC;AAAA;AAM7C,WAAYC,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAoCjC,WAAYC,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAS/B,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["RNAndroidLocationPriority","RNIOSLocationAccuracy","RNIOSLocationActivityType","RNAndroidLocationPermissionResult","RNIOSPermissionResult","RNLocationErrorCode","RNMapErrorCode"],"sourceRoot":"../../src","sources":["types.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAKA;;AAGA;;AAoBA;;AAwEA;;AASA;;AASA;;AAeA;AACA;AACA;AACA;AACA;AACA;;AASA;;AAGA;;AAGA;AACA;AACA;AACA;;AAeA;;AAGA;;AAGA;;AAeA;;AAeA;;AAkBA;;AASA;;AASA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;;AAgDA;;AAgCA;;AAqCA;;AAMA;;AAqCA;;AAkCA;;AAwBA;;AAYA;;AAYA;;AASA;;AAqBA;;AAeA;;AAeA;;AASA;;AAYA;AACA,WAAYA,yBAAyB,0BAAzBA,yBAAyB;EACnC;EADUA,yBAAyB,CAAzBA,yBAAyB;EAGnC;EAHUA,yBAAyB,CAAzBA,yBAAyB;EAKnC;EALUA,yBAAyB,CAAzBA,yBAAyB;EAOnC;EAPUA,yBAAyB,CAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;;AAWrC;;AAYA;AACA,WAAYC,qBAAqB,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB,CAArBA,qBAAqB;EAG/B;EAHUA,qBAAqB,CAArBA,qBAAqB;EAK/B;EALUA,qBAAqB,CAArBA,qBAAqB;EAO/B;EAPUA,qBAAqB,CAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;;AAWjC;AACA,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EACnC;EADUA,yBAAyB,CAAzBA,yBAAyB;EAGnC;EAHUA,yBAAyB,CAAzBA,yBAAyB;EAKnC;EALUA,yBAAyB,CAAzBA,yBAAyB;EAOnC;EAPUA,yBAAyB,CAAzBA,yBAAyB;EASnC;EATUA,yBAAyB,CAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;;AAarC;;AASA;AACA,WAAYC,iCAAiC,0BAAjCA,iCAAiC;EAC3C;EADUA,iCAAiC,CAAjCA,iCAAiC;EAG3C;EAHUA,iCAAiC,CAAjCA,iCAAiC;EAK3C;EALUA,iCAAiC,CAAjCA,iCAAiC;EAAA,OAAjCA,iCAAiC;AAAA;;AAS7C;AACA,WAAYC,qBAAqB,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB,CAArBA,qBAAqB;EAG/B;EAHUA,qBAAqB,CAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;;AAOjC;;AA2BA;;AA2BA;;AAwBA;AACA,WAAYC,mBAAmB,0BAAnBA,mBAAmB;EAC7B;EADUA,mBAAmB,CAAnBA,mBAAmB;EAI7B;EAJUA,mBAAmB,CAAnBA,mBAAmB;EAO7B;EAPUA,mBAAmB,CAAnBA,mBAAmB;EAU7B;EAVUA,mBAAmB,CAAnBA,mBAAmB;EAa7B;EAbUA,mBAAmB,CAAnBA,mBAAmB;EAgB7B;EAhBUA,mBAAmB,CAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;;AAoB/B;AACA,WAAYC,cAAc,0BAAdA,cAAc;EACxB;EADUA,cAAc,CAAdA,cAAc;EAIxB;EAJUA,cAAc,CAAdA,cAAc;EAOxB;EAPUA,cAAc,CAAdA,cAAc;EAUxB;EAVUA,cAAc,CAAdA,cAAc;EAaxB;EAbUA,cAAc,CAAdA,cAAc;EAgBxB;EAhBUA,cAAc,CAAdA,cAAc;EAmBxB;EAnBUA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
@@ -1,5 +1,13 @@
1
1
  import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro.js';
2
2
  import type { RNGoogleMapsPlusViewMethods, RNGoogleMapsPlusViewProps } from './RNGoogleMapsPlusView.nitro.js';
3
+ /**
4
+ * Native Google Maps view.
5
+ * Direct bindings to the underlying Google Maps SDKs.
6
+ */
3
7
  export declare const GoogleMapsView: import("react-native-nitro-modules").ReactNativeView<RNGoogleMapsPlusViewProps, RNGoogleMapsPlusViewMethods>;
8
+ /**
9
+ * Platform-level module.
10
+ * Exposes system APIs such as permissions and Play Services checks.
11
+ */
4
12
  export declare const GoogleMapsModule: RNGoogleMapsPlusModule;
5
13
  //# sourceMappingURL=GoogleMapsPlus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleMapsPlus.d.ts","sourceRoot":"","sources":["../../../src/GoogleMapsPlus.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EACV,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,cAAc,8GAGgB,CAAC;AAE5C,eAAO,MAAM,gBAAgB,wBAG1B,CAAC"}
1
+ {"version":3,"file":"GoogleMapsPlus.d.ts","sourceRoot":"","sources":["../../../src/GoogleMapsPlus.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EACV,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,cAAc,8GAGgB,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,wBAG1B,CAAC"}
@@ -1,12 +1,28 @@
1
- import { type HybridObject } from 'react-native-nitro-modules';
2
1
  import type { RNLocationPermissionResult } from './types';
2
+ import type { HybridObject } from 'react-native-nitro-modules';
3
+ /**
4
+ * Platform utilities for react-native-google-maps-plus.
5
+ * Provides system-level operations unrelated to a specific map instance.
6
+ */
3
7
  export interface RNGoogleMapsPlusModule extends HybridObject<{
4
8
  ios: 'swift';
5
9
  android: 'kotlin';
6
10
  }> {
11
+ /** Shows a native system dialog prompting the user to enable location services. */
7
12
  showLocationDialog(): void;
13
+ /**
14
+ * Opens the OS location settings.
15
+ * iOS: opens the app settings.
16
+ * Android: opens system location settings.
17
+ */
8
18
  openLocationSettings(): void;
19
+ /** Requests runtime location permission. */
9
20
  requestLocationPermission(): Promise<RNLocationPermissionResult>;
21
+ /**
22
+ * Checks Google Play Services availability.
23
+ * iOS: always returns false.
24
+ * Android: performs a real system check.
25
+ */
10
26
  isGooglePlayServicesAvailable(): boolean;
11
27
  }
12
28
  //# sourceMappingURL=RNGoogleMapsPlusModule.nitro.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RNGoogleMapsPlusModule.nitro.d.ts","sourceRoot":"","sources":["../../../src/RNGoogleMapsPlusModule.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,WAAW,sBACf,SAAQ,YAAY,CAAC;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC;IACzD,kBAAkB,IAAI,IAAI,CAAC;IAE3B,oBAAoB,IAAI,IAAI,CAAC;IAE7B,yBAAyB,IAAI,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAEjE,6BAA6B,IAAI,OAAO,CAAC;CAC1C"}
1
+ {"version":3,"file":"RNGoogleMapsPlusModule.nitro.d.ts","sourceRoot":"","sources":["../../../src/RNGoogleMapsPlusModule.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,YAAY,CAAC;IAC3D,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,QAAQ,CAAC;CACnB,CAAC;IACA,mFAAmF;IACnF,kBAAkB,IAAI,IAAI,CAAC;IAE3B;;;;OAIG;IACH,oBAAoB,IAAI,IAAI,CAAC;IAE7B,4CAA4C;IAC5C,yBAAyB,IAAI,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAEjE;;;;OAIG;IACH,6BAA6B,IAAI,OAAO,CAAC;CAC1C"}