Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. CLLocationCoordinate2D position2 = CLLocationCoordinate2DMake(59.957069, 30.323013);
  2. GMSMarker *london2 = [GMSMarker markerWithPosition:position2];
  3. london2.title = @"my office";
  4. london2.snippet = @"description";
  5. london2.map = mapView_;
  6.  
  7. - (void)viewDidLoad {
  8. [super viewDidLoad];
  9. self.mapView_.mapType = kGMSTypeNormal;
  10. self.mapView_.settings.compassButton = YES;
  11. self.mapView_.settings.myLocationButton = YES;
  12. self.mapView_.delegate = self;
  13. [GMSServices provideAPIKey:@"AIzaSyAob82BnXLkqTEKA675GbEveoTQZNBZst4"];
  14. GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86
  15. longitude:151.20
  16. zoom:1];
  17. mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
  18.  
  19. mapView_.myLocationEnabled = YES;
  20. mapView_.settings.compassButton = YES;
  21. mapView_.settings.myLocationButton = YES;
  22. //self.view = mapView_;
  23.  
  24. GMSMarker *london2 = [GMSMarker markerWithPosition:position2];
  25. london2.title = @"my office";
  26. london2.snippet = @"description";
  27. london2.map = mapView_;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement