react-native-google-maps-plus 1.10.0-dev.4 → 1.10.0-dev.5

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.
@@ -152,6 +152,7 @@ class GoogleMapsViewImpl(
152
152
  super.addView(it)
153
153
  it.getMapAsync { map ->
154
154
  googleMap = map
155
+ googleMap?.setLocationSource(locationHandler)
155
156
  googleMap?.setOnMapLoadedCallback {
156
157
  googleMap?.setOnCameraMoveStartedListener(this@GoogleMapsViewImpl)
157
158
  googleMap?.setOnCameraMoveListener(this@GoogleMapsViewImpl)
@@ -288,11 +289,7 @@ class GoogleMapsViewImpl(
288
289
  isCompassEnabled = value?.compassEnabled ?: false
289
290
  isIndoorLevelPickerEnabled = value?.indoorLevelPickerEnabled ?: false
290
291
  isMapToolbarEnabled = value?.mapToolbarEnabled ?: false
291
-
292
- val myLocationEnabled = value?.myLocationButtonEnabled ?: false
293
- googleMap?.setLocationSource(if (myLocationEnabled) locationHandler else null)
294
- isMyLocationButtonEnabled = myLocationEnabled
295
-
292
+ isMyLocationButtonEnabled = value?.myLocationButtonEnabled ?: false
296
293
  isRotateGesturesEnabled = value?.rotateEnabled ?: true
297
294
  isScrollGesturesEnabled = value?.scrollEnabled ?: true
298
295
  isScrollGesturesEnabledDuringRotateOrZoom =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-maps-plus",
3
- "version": "1.10.0-dev.4",
3
+ "version": "1.10.0-dev.5",
4
4
  "description": "React Native wrapper for Android & iOS Google Maps SDK",
5
5
  "main": "./lib/module/index.js",
6
6
  "module": "./lib/module/index.js",