react-native-google-maps-plus 1.9.0-dev.1 → 1.10.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.
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +64 -80
- package/android/src/main/java/com/rngooglemapsplus/MapLifecycleEventObserver.kt +78 -0
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +6 -13
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngBoundsExtension.kt +0 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/ThrowableExtension.kt +2 -0
- package/expoConfig/build/index.js +2 -2
- package/ios/GoogleMapViewImpl.swift +20 -9
- package/ios/RNGoogleMapsPlusView.swift +8 -16
- package/ios/extensions/CLLocation+Extension.swift +1 -1
- package/ios/extensions/RNLineCapType+Extension.swift +0 -1
- package/ios/extensions/RNLineJoinType+Extension.swift +0 -2
- package/ios/extensions/String+Extensions.swift +6 -6
- package/lib/module/GoogleMapsPlus.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/GoogleMapsPlus.d.ts +1 -1
- package/lib/typescript/src/GoogleMapsPlus.d.ts.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +2 -2
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +16 -8
- package/nitrogen/generated/android/c++/JRNHeatmap.hpp +2 -1
- package/nitrogen/generated/android/c++/JRNHeatmapGradient.hpp +2 -1
- package/nitrogen/generated/android/c++/JRNIndoorBuilding.hpp +2 -1
- package/nitrogen/generated/android/c++/JRNPolygon.hpp +4 -2
- package/nitrogen/generated/android/c++/JRNPolygonHole.hpp +2 -1
- package/nitrogen/generated/android/c++/JRNPolyline.hpp +2 -1
- package/package.json +19 -69
- package/src/GoogleMapsPlus.tsx +1 -2
- package/src/RNGoogleMapsPlusModule.nitro.ts +1 -0
- package/src/RNGoogleMapsPlusView.nitro.ts +5 -5
- package/src/index.tsx +2 -1
- package/src/types.ts +2 -2
- package/scripts/create-dev-tag.sh +0 -8
- package/scripts/nitrogen-patch.js +0 -191
|
@@ -6,4 +6,4 @@ RNGoogleMapsPlus_ndkVersion=27.1.12297006
|
|
|
6
6
|
RNGoogleMapsPlus_googlePlayServicesBaseVersion=18.9.0
|
|
7
7
|
RNGoogleMapsPlus_googlePlayServicesMapsVersion=19.2.0
|
|
8
8
|
RNGoogleMapsPlus_googlePlayServicesLocationVersion=21.3.0
|
|
9
|
-
RNGoogleMapsPlus_mapsUtilsVersion=3.19.
|
|
9
|
+
RNGoogleMapsPlus_mapsUtilsVersion=3.19.1
|
|
@@ -12,7 +12,8 @@ import android.location.Location
|
|
|
12
12
|
import android.util.Size
|
|
13
13
|
import android.view.View
|
|
14
14
|
import android.widget.FrameLayout
|
|
15
|
-
import
|
|
15
|
+
import androidx.lifecycle.Lifecycle
|
|
16
|
+
import androidx.lifecycle.findViewTreeLifecycleOwner
|
|
16
17
|
import com.facebook.react.uimanager.PixelUtil.dpToPx
|
|
17
18
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
18
19
|
import com.google.android.gms.maps.CameraUpdateFactory
|
|
@@ -81,10 +82,12 @@ class GoogleMapsViewImpl(
|
|
|
81
82
|
GoogleMap.OnInfoWindowLongClickListener,
|
|
82
83
|
GoogleMap.OnMyLocationClickListener,
|
|
83
84
|
GoogleMap.OnMyLocationButtonClickListener,
|
|
84
|
-
GoogleMap.InfoWindowAdapter
|
|
85
|
-
|
|
86
|
-
private var
|
|
87
|
-
|
|
85
|
+
GoogleMap.InfoWindowAdapter {
|
|
86
|
+
private var lifecycleObserver: MapLifecycleEventObserver? = null
|
|
87
|
+
private var lifecycle: Lifecycle? = null
|
|
88
|
+
|
|
89
|
+
private var mapViewInitialized = false
|
|
90
|
+
private var mapViewLoaded = false
|
|
88
91
|
private var destroyed = false
|
|
89
92
|
private var googleMap: GoogleMap? = null
|
|
90
93
|
private var mapView: MapView? = null
|
|
@@ -125,13 +128,12 @@ class GoogleMapsViewImpl(
|
|
|
125
128
|
init {
|
|
126
129
|
MapsInitializer.initialize(reactContext)
|
|
127
130
|
reactContext.registerComponentCallbacks(componentCallbacks)
|
|
128
|
-
reactContext.addLifecycleEventListener(this)
|
|
129
131
|
}
|
|
130
132
|
|
|
131
|
-
fun initMapView(
|
|
133
|
+
fun initMapView() =
|
|
132
134
|
onUi {
|
|
133
|
-
if (
|
|
134
|
-
|
|
135
|
+
if (mapViewInitialized) return@onUi
|
|
136
|
+
mapViewInitialized = true
|
|
135
137
|
|
|
136
138
|
val result = playServiceHandler.playServicesAvailability()
|
|
137
139
|
val errorCode = result.toRNMapErrorCodeOrNull()
|
|
@@ -144,45 +146,46 @@ class GoogleMapsViewImpl(
|
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
mapView =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
149
|
+
mapView =
|
|
150
|
+
MapView(reactContext, googleMapsOptions).also {
|
|
151
|
+
lifecycleObserver = MapLifecycleEventObserver(it, locationHandler)
|
|
152
|
+
super.addView(it)
|
|
153
|
+
it.getMapAsync { map ->
|
|
154
|
+
googleMap = map
|
|
155
|
+
googleMap?.setOnMapLoadedCallback {
|
|
156
|
+
googleMap?.setOnCameraMoveStartedListener(this@GoogleMapsViewImpl)
|
|
157
|
+
googleMap?.setOnCameraMoveListener(this@GoogleMapsViewImpl)
|
|
158
|
+
googleMap?.setOnCameraIdleListener(this@GoogleMapsViewImpl)
|
|
159
|
+
googleMap?.setOnMarkerClickListener(this@GoogleMapsViewImpl)
|
|
160
|
+
googleMap?.setOnPolylineClickListener(this@GoogleMapsViewImpl)
|
|
161
|
+
googleMap?.setOnPolygonClickListener(this@GoogleMapsViewImpl)
|
|
162
|
+
googleMap?.setOnCircleClickListener(this@GoogleMapsViewImpl)
|
|
163
|
+
googleMap?.setOnMapClickListener(this@GoogleMapsViewImpl)
|
|
164
|
+
googleMap?.setOnMapLongClickListener(this@GoogleMapsViewImpl)
|
|
165
|
+
googleMap?.setOnPoiClickListener(this@GoogleMapsViewImpl)
|
|
166
|
+
googleMap?.setOnMarkerDragListener(this@GoogleMapsViewImpl)
|
|
167
|
+
googleMap?.setOnInfoWindowClickListener(this@GoogleMapsViewImpl)
|
|
168
|
+
googleMap?.setOnInfoWindowCloseListener(this@GoogleMapsViewImpl)
|
|
169
|
+
googleMap?.setOnInfoWindowLongClickListener(this@GoogleMapsViewImpl)
|
|
170
|
+
googleMap?.setOnMyLocationClickListener(this@GoogleMapsViewImpl)
|
|
171
|
+
googleMap?.setOnMyLocationButtonClickListener(this@GoogleMapsViewImpl)
|
|
172
|
+
googleMap?.setInfoWindowAdapter(this@GoogleMapsViewImpl)
|
|
173
|
+
mapViewLoaded = true
|
|
174
|
+
onMapLoaded?.invoke(
|
|
175
|
+
map.projection.visibleRegion.toRnRegion(),
|
|
176
|
+
map.cameraPosition.toRnCamera(),
|
|
177
|
+
)
|
|
178
|
+
}
|
|
179
|
+
applyProps()
|
|
180
|
+
initLocationCallbacks()
|
|
181
|
+
onMapReady?.invoke(true)
|
|
182
|
+
}
|
|
176
183
|
}
|
|
177
|
-
applyProps()
|
|
178
|
-
initLocationCallbacks()
|
|
179
|
-
onMapReady?.invoke(true)
|
|
180
|
-
}
|
|
181
184
|
}
|
|
182
185
|
|
|
183
186
|
override fun onCameraMoveStarted(reason: Int) =
|
|
184
187
|
onUi {
|
|
185
|
-
if (!
|
|
188
|
+
if (!mapViewLoaded) return@onUi
|
|
186
189
|
cameraMoveReason = reason
|
|
187
190
|
val visibleRegion = googleMap?.projection?.visibleRegion ?: return@onUi
|
|
188
191
|
val cameraPosition = googleMap?.cameraPosition ?: return@onUi
|
|
@@ -195,7 +198,7 @@ class GoogleMapsViewImpl(
|
|
|
195
198
|
|
|
196
199
|
override fun onCameraMove() =
|
|
197
200
|
onUi {
|
|
198
|
-
if (!
|
|
201
|
+
if (!mapViewLoaded) return@onUi
|
|
199
202
|
val visibleRegion = googleMap?.projection?.visibleRegion ?: return@onUi
|
|
200
203
|
val cameraPosition = googleMap?.cameraPosition ?: return@onUi
|
|
201
204
|
val gesture = GoogleMap.OnCameraMoveStartedListener.REASON_GESTURE == cameraMoveReason
|
|
@@ -208,7 +211,7 @@ class GoogleMapsViewImpl(
|
|
|
208
211
|
|
|
209
212
|
override fun onCameraIdle() =
|
|
210
213
|
onUi {
|
|
211
|
-
if (!
|
|
214
|
+
if (!mapViewLoaded) return@onUi
|
|
212
215
|
val visibleRegion = googleMap?.projection?.visibleRegion ?: return@onUi
|
|
213
216
|
val cameraPosition = googleMap?.cameraPosition ?: return@onUi
|
|
214
217
|
val gesture = GoogleMap.OnCameraMoveStartedListener.REASON_GESTURE == cameraMoveReason
|
|
@@ -226,7 +229,6 @@ class GoogleMapsViewImpl(
|
|
|
226
229
|
locationHandler.onError = { error ->
|
|
227
230
|
onUi { onLocationError?.invoke(error) }
|
|
228
231
|
}
|
|
229
|
-
locationHandler.start()
|
|
230
232
|
}
|
|
231
233
|
|
|
232
234
|
fun applyProps() {
|
|
@@ -275,7 +277,7 @@ class GoogleMapsViewImpl(
|
|
|
275
277
|
val currentCamera: CameraPosition?
|
|
276
278
|
get() = onUiSync { googleMap?.cameraPosition }
|
|
277
279
|
|
|
278
|
-
var
|
|
280
|
+
var googleMapsOptions: GoogleMapOptions = GoogleMapOptions()
|
|
279
281
|
|
|
280
282
|
var uiSettings: RNMapUiSettings? = null
|
|
281
283
|
set(value) {
|
|
@@ -811,7 +813,7 @@ class GoogleMapsViewImpl(
|
|
|
811
813
|
onUi {
|
|
812
814
|
if (destroyed) return@onUi
|
|
813
815
|
destroyed = true
|
|
814
|
-
|
|
816
|
+
lifecycleObserver?.toDestroyedState()
|
|
815
817
|
markerBuilder.cancelAllJobs()
|
|
816
818
|
clearMarkers()
|
|
817
819
|
clearPolylines()
|
|
@@ -840,16 +842,10 @@ class GoogleMapsViewImpl(
|
|
|
840
842
|
setInfoWindowAdapter(null)
|
|
841
843
|
}
|
|
842
844
|
googleMap = null
|
|
843
|
-
mapView?.
|
|
844
|
-
onPause()
|
|
845
|
-
onStop()
|
|
846
|
-
onDestroy()
|
|
847
|
-
removeAllViews()
|
|
848
|
-
}
|
|
845
|
+
mapView?.removeAllViews()
|
|
849
846
|
super.removeAllViews()
|
|
850
847
|
reactContext.unregisterComponentCallbacks(componentCallbacks)
|
|
851
|
-
|
|
852
|
-
initialized = false
|
|
848
|
+
mapViewInitialized = false
|
|
853
849
|
}
|
|
854
850
|
|
|
855
851
|
override fun requestLayout() {
|
|
@@ -864,32 +860,20 @@ class GoogleMapsViewImpl(
|
|
|
864
860
|
}
|
|
865
861
|
}
|
|
866
862
|
|
|
867
|
-
override fun onAttachedToWindow()
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
override fun onDetachedFromWindow() =
|
|
874
|
-
onUi {
|
|
875
|
-
super.onDetachedFromWindow()
|
|
876
|
-
locationHandler.stop()
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
override fun onHostResume() =
|
|
880
|
-
onUi {
|
|
881
|
-
locationHandler.start()
|
|
882
|
-
mapView?.onResume()
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
override fun onHostPause() =
|
|
886
|
-
onUi {
|
|
887
|
-
locationHandler.stop()
|
|
888
|
-
mapView?.onPause()
|
|
863
|
+
override fun onAttachedToWindow() {
|
|
864
|
+
super.onAttachedToWindow()
|
|
865
|
+
initMapView()
|
|
866
|
+
lifecycle = mapView?.findViewTreeLifecycleOwner()?.lifecycle
|
|
867
|
+
lifecycleObserver?.let { observer ->
|
|
868
|
+
lifecycle?.addObserver(observer)
|
|
889
869
|
}
|
|
870
|
+
}
|
|
890
871
|
|
|
891
|
-
override fun
|
|
892
|
-
|
|
872
|
+
override fun onDetachedFromWindow() {
|
|
873
|
+
super.onDetachedFromWindow()
|
|
874
|
+
lifecycleObserver?.let { lifecycle?.removeObserver(it) }
|
|
875
|
+
lifecycle = null
|
|
876
|
+
lifecycleObserver?.toCreatedState()
|
|
893
877
|
}
|
|
894
878
|
|
|
895
879
|
override fun onMarkerClick(marker: Marker): Boolean {
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
package com.rngooglemapsplus
|
|
2
|
+
|
|
3
|
+
import android.os.Bundle
|
|
4
|
+
import androidx.lifecycle.Lifecycle
|
|
5
|
+
import androidx.lifecycle.LifecycleEventObserver
|
|
6
|
+
import androidx.lifecycle.LifecycleOwner
|
|
7
|
+
import com.google.android.gms.maps.MapView
|
|
8
|
+
|
|
9
|
+
class MapLifecycleEventObserver(
|
|
10
|
+
private val mapView: MapView?,
|
|
11
|
+
private val locationHandler: LocationHandler,
|
|
12
|
+
) : LifecycleEventObserver {
|
|
13
|
+
private var currentState: Lifecycle.State = Lifecycle.State.INITIALIZED
|
|
14
|
+
|
|
15
|
+
override fun onStateChanged(
|
|
16
|
+
source: LifecycleOwner,
|
|
17
|
+
event: Lifecycle.Event,
|
|
18
|
+
) {
|
|
19
|
+
when (event) {
|
|
20
|
+
Lifecycle.Event.ON_DESTROY -> toCreatedState()
|
|
21
|
+
else -> toState(event.targetState)
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
fun toCreatedState() {
|
|
26
|
+
if (currentState > Lifecycle.State.CREATED) {
|
|
27
|
+
toState(Lifecycle.State.CREATED)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
fun toDestroyedState() {
|
|
32
|
+
if (currentState > Lifecycle.State.INITIALIZED) {
|
|
33
|
+
toState(Lifecycle.State.DESTROYED)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
private fun toState(state: Lifecycle.State) {
|
|
38
|
+
while (currentState != state) {
|
|
39
|
+
when {
|
|
40
|
+
currentState < state -> upFromCurrentState()
|
|
41
|
+
currentState > state -> downFromCurrentState()
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
private fun downFromCurrentState() {
|
|
47
|
+
Lifecycle.Event.downFrom(currentState)?.also {
|
|
48
|
+
invokeEvent(it)
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private fun upFromCurrentState() {
|
|
53
|
+
Lifecycle.Event.upFrom(currentState)?.also {
|
|
54
|
+
invokeEvent(it)
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
private fun invokeEvent(event: Lifecycle.Event) {
|
|
59
|
+
when (event) {
|
|
60
|
+
Lifecycle.Event.ON_CREATE -> mapView?.onCreate(Bundle())
|
|
61
|
+
Lifecycle.Event.ON_START -> mapView?.onStart()
|
|
62
|
+
Lifecycle.Event.ON_RESUME -> {
|
|
63
|
+
locationHandler.start()
|
|
64
|
+
mapView?.onResume()
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
Lifecycle.Event.ON_PAUSE -> {
|
|
68
|
+
mapView?.onPause()
|
|
69
|
+
locationHandler.stop()
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
Lifecycle.Event.ON_STOP -> mapView?.onStop()
|
|
73
|
+
Lifecycle.Event.ON_DESTROY -> mapView?.onDestroy()
|
|
74
|
+
Lifecycle.Event.ON_ANY -> {}
|
|
75
|
+
}
|
|
76
|
+
currentState = event.targetState
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -24,7 +24,6 @@ import com.rngooglemapsplus.extensions.toSize
|
|
|
24
24
|
class RNGoogleMapsPlusView(
|
|
25
25
|
val context: ThemedReactContext,
|
|
26
26
|
) : HybridRNGoogleMapsPlusViewSpec() {
|
|
27
|
-
private var propsInitialized = false
|
|
28
27
|
private var currentCustomMapStyle: String? = null
|
|
29
28
|
private var permissionHandler = PermissionHandler(context)
|
|
30
29
|
private var locationHandler = LocationHandler(context)
|
|
@@ -40,10 +39,11 @@ class RNGoogleMapsPlusView(
|
|
|
40
39
|
override val view =
|
|
41
40
|
GoogleMapsViewImpl(context, locationHandler, playServiceHandler, markerBuilder)
|
|
42
41
|
|
|
43
|
-
override
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
override var initialProps: RNInitialProps? = null
|
|
43
|
+
set(value) {
|
|
44
|
+
if (field == value) return
|
|
45
|
+
field = value
|
|
46
|
+
|
|
47
47
|
val options =
|
|
48
48
|
GoogleMapOptions().apply {
|
|
49
49
|
initialProps?.mapId?.let { mapId(it) }
|
|
@@ -51,15 +51,8 @@ class RNGoogleMapsPlusView(
|
|
|
51
51
|
initialProps?.camera?.let { camera(it.toCameraPosition(current = null)) }
|
|
52
52
|
initialProps?.backgroundColor?.let { backgroundColor(it.toColor()) }
|
|
53
53
|
}
|
|
54
|
-
view.initMapView(options)
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
set(value) {
|
|
60
|
-
if (field == value) return
|
|
61
|
-
field = value
|
|
62
|
-
view.initialProps = value
|
|
55
|
+
view.googleMapsOptions = options
|
|
63
56
|
}
|
|
64
57
|
|
|
65
58
|
override var uiSettings: RNMapUiSettings? = null
|
|
@@ -16,10 +16,12 @@ fun Throwable.toLocationErrorCode(context: Context): RNLocationErrorCode {
|
|
|
16
16
|
when (statusCode) {
|
|
17
17
|
CommonStatusCodes.NETWORK_ERROR ->
|
|
18
18
|
RNLocationErrorCode.POSITION_UNAVAILABLE
|
|
19
|
+
|
|
19
20
|
LocationSettingsStatusCodes.RESOLUTION_REQUIRED,
|
|
20
21
|
LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE,
|
|
21
22
|
->
|
|
22
23
|
RNLocationErrorCode.SETTINGS_NOT_SATISFIED
|
|
24
|
+
|
|
23
25
|
else ->
|
|
24
26
|
RNLocationErrorCode.INTERNAL_ERROR
|
|
25
27
|
}
|
|
@@ -5,10 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var fs_1 = __importDefault(require("fs"));
|
|
7
7
|
var path_1 = __importDefault(require("path"));
|
|
8
|
-
var pkg = JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(__dirname, '../../package.json'), 'utf8'));
|
|
9
8
|
var config_plugins_1 = require("@expo/config-plugins");
|
|
10
|
-
var withIosGoogleMapsPlus_1 = __importDefault(require("./ios/withIosGoogleMapsPlus"));
|
|
11
9
|
var withAndroidGoogleMapsPlus_1 = __importDefault(require("./android/withAndroidGoogleMapsPlus"));
|
|
10
|
+
var withIosGoogleMapsPlus_1 = __importDefault(require("./ios/withIosGoogleMapsPlus"));
|
|
11
|
+
var pkg = JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(__dirname, '../../package.json'), 'utf8'));
|
|
12
12
|
var withGoogleMapsPlus = function (config, props) {
|
|
13
13
|
config = (0, withAndroidGoogleMapsPlus_1.default)(config, props);
|
|
14
14
|
config = (0, withIosGoogleMapsPlus_1.default)(config, props);
|
|
@@ -40,14 +40,18 @@ GMSIndoorDisplayDelegate {
|
|
|
40
40
|
self.locationHandler = locationHandler
|
|
41
41
|
self.markerBuilder = markerBuilder
|
|
42
42
|
super.init(frame: frame)
|
|
43
|
-
setupAppLifecycleObservers()
|
|
44
43
|
}
|
|
45
44
|
|
|
45
|
+
@MainActor
|
|
46
|
+
private var lifecycleAttached = false
|
|
47
|
+
|
|
46
48
|
@MainActor
|
|
47
49
|
private var lifecycleTasks = [Task<Void, Never>]()
|
|
48
50
|
|
|
49
51
|
@MainActor
|
|
50
|
-
private func
|
|
52
|
+
private func attachLifecycleObservers() {
|
|
53
|
+
if lifecycleAttached { return }
|
|
54
|
+
lifecycleAttached = true
|
|
51
55
|
lifecycleTasks.append(
|
|
52
56
|
Task { @MainActor in
|
|
53
57
|
for await _ in NotificationCenter.default.notifications(
|
|
@@ -79,12 +83,20 @@ GMSIndoorDisplayDelegate {
|
|
|
79
83
|
)
|
|
80
84
|
}
|
|
81
85
|
|
|
86
|
+
@MainActor
|
|
87
|
+
private func detachLifecycleObservers() {
|
|
88
|
+
if !lifecycleAttached { return }
|
|
89
|
+
lifecycleAttached = false
|
|
90
|
+
lifecycleTasks.forEach { $0.cancel() }
|
|
91
|
+
lifecycleTasks.removeAll()
|
|
92
|
+
}
|
|
93
|
+
|
|
82
94
|
required init?(coder: NSCoder) {
|
|
83
95
|
fatalError("init(coder:) has not been implemented")
|
|
84
96
|
}
|
|
85
97
|
|
|
86
98
|
@MainActor
|
|
87
|
-
func initMapView(
|
|
99
|
+
func initMapView() {
|
|
88
100
|
if initialized { return }
|
|
89
101
|
initialized = true
|
|
90
102
|
googleMapOptions.frame = bounds
|
|
@@ -108,7 +120,6 @@ GMSIndoorDisplayDelegate {
|
|
|
108
120
|
locationHandler.onError = { [weak self] error in
|
|
109
121
|
self?.onLocationError?(error)
|
|
110
122
|
}
|
|
111
|
-
locationHandler.start()
|
|
112
123
|
}
|
|
113
124
|
|
|
114
125
|
@MainActor
|
|
@@ -171,9 +182,7 @@ GMSIndoorDisplayDelegate {
|
|
|
171
182
|
}
|
|
172
183
|
|
|
173
184
|
@MainActor
|
|
174
|
-
var
|
|
175
|
-
didSet {}
|
|
176
|
-
}
|
|
185
|
+
var googleMapOptions: GMSMapViewOptions = GMSMapViewOptions()
|
|
177
186
|
|
|
178
187
|
@MainActor
|
|
179
188
|
var uiSettings: RNMapUiSettings? {
|
|
@@ -693,6 +702,7 @@ GMSIndoorDisplayDelegate {
|
|
|
693
702
|
func deinitInternal() {
|
|
694
703
|
guard !deInitialized else { return }
|
|
695
704
|
deInitialized = true
|
|
705
|
+
detachLifecycleObservers()
|
|
696
706
|
onMain {
|
|
697
707
|
self.locationHandler.stop()
|
|
698
708
|
self.markerBuilder.cancelAllIconTasks()
|
|
@@ -728,16 +738,17 @@ GMSIndoorDisplayDelegate {
|
|
|
728
738
|
override func didMoveToWindow() {
|
|
729
739
|
super.didMoveToWindow()
|
|
730
740
|
if window != nil {
|
|
741
|
+
attachLifecycleObservers()
|
|
731
742
|
locationHandler.start()
|
|
743
|
+
initMapView()
|
|
732
744
|
} else {
|
|
733
745
|
locationHandler.stop()
|
|
746
|
+
detachLifecycleObservers()
|
|
734
747
|
}
|
|
735
748
|
}
|
|
736
749
|
|
|
737
750
|
deinit {
|
|
738
751
|
deinitInternal()
|
|
739
|
-
lifecycleTasks.forEach { $0.cancel() }
|
|
740
|
-
lifecycleTasks.removeAll()
|
|
741
752
|
}
|
|
742
753
|
|
|
743
754
|
func mapViewDidFinishTileRendering(_ mapView: GMSMapView) {
|
|
@@ -8,7 +8,6 @@ final class RNGoogleMapsPlusView: HybridRNGoogleMapsPlusViewSpec {
|
|
|
8
8
|
private let permissionHandler: PermissionHandler
|
|
9
9
|
private let locationHandler: LocationHandler
|
|
10
10
|
|
|
11
|
-
private var propsInitialized = false
|
|
12
11
|
private let markerBuilder = MapMarkerBuilder()
|
|
13
12
|
private let polylineBuilder = MapPolylineBuilder()
|
|
14
13
|
private let polygonBuilder = MapPolygonBuilder()
|
|
@@ -32,9 +31,13 @@ final class RNGoogleMapsPlusView: HybridRNGoogleMapsPlusViewSpec {
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
@MainActor
|
|
35
|
-
func
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
func dispose() {
|
|
35
|
+
impl.deinitInternal()
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@MainActor
|
|
39
|
+
var initialProps: RNInitialProps? {
|
|
40
|
+
didSet {
|
|
38
41
|
let options = GMSMapViewOptions()
|
|
39
42
|
initialProps?.mapId.map { options.mapID = GMSMapID(identifier: $0) }
|
|
40
43
|
initialProps?.liteMode.map { _ in /* not supported */ }
|
|
@@ -44,19 +47,8 @@ final class RNGoogleMapsPlusView: HybridRNGoogleMapsPlusViewSpec {
|
|
|
44
47
|
initialProps?.backgroundColor.map {
|
|
45
48
|
options.backgroundColor = $0.toUIColor()
|
|
46
49
|
}
|
|
47
|
-
impl.initMapView(googleMapOptions: options)
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
func dispose() {
|
|
53
|
-
impl.deinitInternal()
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@MainActor
|
|
57
|
-
var initialProps: RNInitialProps? {
|
|
58
|
-
didSet {
|
|
59
|
-
impl.initialProps = initialProps
|
|
51
|
+
impl.googleMapOptions = options
|
|
60
52
|
}
|
|
61
53
|
}
|
|
62
54
|
|
|
@@ -18,7 +18,7 @@ extension CLLocation {
|
|
|
18
18
|
verticalAccuracy: verticalAccuracy,
|
|
19
19
|
speedAccuracy: speedAccuracy,
|
|
20
20
|
courseAccuracy: courseAccuracy,
|
|
21
|
-
floor: floor.map { Double($0.level)},
|
|
21
|
+
floor: floor.map { Double($0.level) },
|
|
22
22
|
isFromMockProvider: false,
|
|
23
23
|
timestamp: timestamp.timeIntervalSince1970 * 1000
|
|
24
24
|
)
|
|
@@ -90,12 +90,12 @@ extension UIColor {
|
|
|
90
90
|
// swiftlint:disable:next large_tuple
|
|
91
91
|
let (r1, g1, b1): (Double, Double, Double)
|
|
92
92
|
switch h {
|
|
93
|
-
case 0..<60: (r1, g1, b1) = (c, x, 0)
|
|
94
|
-
case 60..<120: (r1, g1, b1) = (x, c, 0)
|
|
95
|
-
case 120..<180: (r1, g1, b1) = (0, c, x)
|
|
96
|
-
case 180..<240: (r1, g1, b1) = (0, x, c)
|
|
97
|
-
case 240..<300: (r1, g1, b1) = (x, 0, c)
|
|
98
|
-
case 300..<360: (r1, g1, b1) = (c, 0, x)
|
|
93
|
+
case 0 ..< 60: (r1, g1, b1) = (c, x, 0)
|
|
94
|
+
case 60 ..< 120: (r1, g1, b1) = (x, c, 0)
|
|
95
|
+
case 120 ..< 180: (r1, g1, b1) = (0, c, x)
|
|
96
|
+
case 180 ..< 240: (r1, g1, b1) = (0, x, c)
|
|
97
|
+
case 240 ..< 300: (r1, g1, b1) = (x, 0, c)
|
|
98
|
+
case 300 ..< 360: (r1, g1, b1) = (c, 0, x)
|
|
99
99
|
default: (r1, g1, b1) = (0, 0, 0)
|
|
100
100
|
}
|
|
101
101
|
return UIColor(
|
|
@@ -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;
|
|
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":[]}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GoogleMapsView","GoogleMapsModule"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,cAAc,EAAEC,gBAAgB,QAAQ,kBAAkB;
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import type { RNGoogleMapsPlusViewMethods, RNGoogleMapsPlusViewProps } from './RNGoogleMapsPlusView.nitro.js';
|
|
2
1
|
import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro.js';
|
|
2
|
+
import type { RNGoogleMapsPlusViewMethods, RNGoogleMapsPlusViewProps } from './RNGoogleMapsPlusView.nitro.js';
|
|
3
3
|
export declare const GoogleMapsView: import("react-native-nitro-modules").ReactNativeView<RNGoogleMapsPlusViewProps, RNGoogleMapsPlusViewMethods>;
|
|
4
4
|
export declare const GoogleMapsModule: RNGoogleMapsPlusModule;
|
|
5
5
|
//# sourceMappingURL=GoogleMapsPlus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleMapsPlus.d.ts","sourceRoot":"","sources":["../../../src/GoogleMapsPlus.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
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 +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;
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import type { HybridView, HybridViewMethods, HybridViewProps } from 'react-native-nitro-modules';
|
|
2
1
|
import type { RNCamera, RNCameraUpdate, RNLatLng, RNMapPadding, RNPolygon, RNPolyline, RNUserInterfaceStyle, RNLocationErrorCode, RNMarker, RNLocationPermissionResult, RNRegion, RNLocation, RNMapErrorCode, RNMapType, RNInitialProps, RNCircle, RNMapUiSettings, RNLocationConfig, RNMapZoomConfig, RNHeatmap, RNKMLayer, RNIndoorBuilding, RNIndoorLevel, RNLatLngBounds, RNSnapshotOptions, RNUrlTileOverlay } from './types';
|
|
2
|
+
import type { HybridView, HybridViewMethods, HybridViewProps } from 'react-native-nitro-modules';
|
|
3
3
|
export interface RNGoogleMapsPlusViewProps extends HybridViewProps {
|
|
4
4
|
initialProps?: RNInitialProps;
|
|
5
5
|
uiSettings?: RNMapUiSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNGoogleMapsPlusView.nitro.d.ts","sourceRoot":"","sources":["../../../src/RNGoogleMapsPlusView.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"RNGoogleMapsPlusView.nitro.d.ts","sourceRoot":"","sources":["../../../src/RNGoogleMapsPlusView.nitro.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GoogleMapsView, GoogleMapsModule } from './GoogleMapsPlus';
|
|
2
|
-
import type { RNGoogleMapsPlusViewMethods, RNGoogleMapsPlusViewProps } from './RNGoogleMapsPlusView.nitro';
|
|
3
2
|
import type { RNGoogleMapsPlusModule } from './RNGoogleMapsPlusModule.nitro';
|
|
3
|
+
import type { RNGoogleMapsPlusViewMethods, RNGoogleMapsPlusViewProps } from './RNGoogleMapsPlusView.nitro';
|
|
4
4
|
export * from './types';
|
|
5
5
|
export type { RNGoogleMapsPlusViewMethods, RNGoogleMapsPlusViewProps, RNGoogleMapsPlusModule, };
|
|
6
6
|
export { GoogleMapsView, GoogleMapsModule };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EACV,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,cAAc,SAAS,CAAC;AAExB,YAAY,EACV,2BAA2B,EAC3B,yBAAyB,EACzB,sBAAsB,GACvB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC"}
|