From 806bbb3461ed0b0a1e59928b297fd25dc91201dd Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Wed, 18 Sep 2019 15:47:03 -0500 Subject: [PATCH] Fix iOS MyLocationButton on iOS --- packages/google_maps_flutter/CHANGELOG.md | 4 ++++ .../google_maps_flutter/ios/Classes/GoogleMapController.m | 1 - packages/google_maps_flutter/pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index e6f2ff00d02f..3c569ed01a79 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.21+3 + +* Fix `myLocationButton` bug in `google_maps_flutter` iOS. + ## 0.5.21+2 * Fix more `prefer_const_constructors` analyzer warnings in example app. diff --git a/packages/google_maps_flutter/ios/Classes/GoogleMapController.m b/packages/google_maps_flutter/ios/Classes/GoogleMapController.m index 600820e0cc0c..04a9f415e6fc 100644 --- a/packages/google_maps_flutter/ios/Classes/GoogleMapController.m +++ b/packages/google_maps_flutter/ios/Classes/GoogleMapController.m @@ -327,7 +327,6 @@ - (void)setZoomGesturesEnabled:(BOOL)enabled { - (void)setMyLocationEnabled:(BOOL)enabled { _mapView.myLocationEnabled = enabled; - _mapView.settings.myLocationButton = enabled; } - (void)setMyLocationButtonEnabled:(BOOL)enabled { diff --git a/packages/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/pubspec.yaml index 7de1fd6bca7d..bdc41c873909 100644 --- a/packages/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/pubspec.yaml @@ -2,7 +2,7 @@ name: google_maps_flutter description: A Flutter plugin for integrating Google Maps in iOS and Android applications. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter -version: 0.5.21+2 +version: 0.5.21+3 dependencies: flutter: