From 8f7b65f4616694bdbe346e1e885e81d1ef711b55 Mon Sep 17 00:00:00 2001 From: wf9a5m75 Date: Thu, 20 Jul 2017 17:41:16 -0700 Subject: [PATCH] Bug fix: map is not displayed when the camera options is not specified at the map.getMap() (issue #1570, #1573) --- src/ios/GoogleMaps/CordovaGoogleMaps.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/GoogleMaps/CordovaGoogleMaps.m b/src/ios/GoogleMaps/CordovaGoogleMaps.m index af6d953e7..9e49c0cf6 100644 --- a/src/ios/GoogleMaps/CordovaGoogleMaps.m +++ b/src/ios/GoogleMaps/CordovaGoogleMaps.m @@ -263,6 +263,7 @@ - (void)getMap:(CDVInvokedUrlCommand *)command { } } + [pluginMap.mapCtrl.view setHidden:YES]; } camera = [GMSCameraPosition cameraWithLatitude:latitude longitude:longitude @@ -270,7 +271,6 @@ - (void)getMap:(CDVInvokedUrlCommand *)command { bearing: bearing viewingAngle: angle]; - [pluginMap.mapCtrl.view setHidden:YES]; pluginMap.mapCtrl.map = [GMSMapView mapWithFrame:rect camera:camera]; //mapType