title: how to get current location in google map sdk in iphone
body: <p>I want to set camera on current location and zoom level upto 10.
  So I have written code like this and for current location i get hint from this post.</p>
  
  <p><a href="https://stackoverflow.com/questions/15669308/how-to-use-delegates-in-google-map-api-for-ios-6">How to use delegates in Google map API for IOS 6</a></p>
  
  <p>here is my code</p>
  
  <pre><code>mapView_=[[GMSMapView alloc]initWithFrame:CGRectZero];
  
  CLLocationCoordinate2D currentPosition = mapView_.myLocation.coordinate;
  
   GMSCameraPosition* camera =
  [GMSCameraPosition cameraWithTarget: currentPosition zoom: 10];
   mapView_.camera = camera;
   mapView_.delegate=self;
  
    mapView_.mapType = kGMSTypeSatellite;
    mapView_.myLocationEnabled = YES;
  
    self.view = mapView_;
    mapView_.settings.myLocationButton = YES;
  </code></pre>
  
  <p>But coordinate is 0.00 in device.</p>
  
  <p>Please Any Can help to solve out this issue?</p>