Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CLLocationCoordinate2D position2 = CLLocationCoordinate2DMake(59.957069, 30.323013);
- GMSMarker *london2 = [GMSMarker markerWithPosition:position2];
- london2.title = @"my office";
- london2.snippet = @"description";
- london2.map = mapView_;
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.mapView_.mapType = kGMSTypeNormal;
- self.mapView_.settings.compassButton = YES;
- self.mapView_.settings.myLocationButton = YES;
- self.mapView_.delegate = self;
- [GMSServices provideAPIKey:@"AIzaSyAob82BnXLkqTEKA675GbEveoTQZNBZst4"];
- GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86
- longitude:151.20
- zoom:1];
- mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
- mapView_.myLocationEnabled = YES;
- mapView_.settings.compassButton = YES;
- mapView_.settings.myLocationButton = YES;
- //self.view = mapView_;
- GMSMarker *london2 = [GMSMarker markerWithPosition:position2];
- london2.title = @"my office";
- london2.snippet = @"description";
- london2.map = mapView_;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement