as the title says no matter what coordinates I give I see the same location.
Here is my code:
I am using storyboard and I have a subview inside my view. The subview is of type GMSMapView, and correctly linked.
.h
@property (strong, nonatomic) IBOutlet GMSMapView *mymap;
.m
@implementation DealViewController
{
GMSMapView *mapView_;
}
@synthesize mymap=_mymap;
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
[self.view layoutIfNeeded];
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.8683
longitude:151.2086
zoom:6];
mapView_ = [GMSMapView mapWithFrame:CGRectMake(0, 0, 300, 300) camera:camera];
mapView_.myLocationEnabled = YES;
mapView_.mapType = kGMSTypeSatellite;
mapView_.delegate = self;
self.mymap=mapView_;
}
I also tried this, but I get the same:
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
What is wrong with the above?