Vaishu
Vaishu

Reputation: 37

How to get Google map in ios 6.0 and above versions

Apple has taken out google map from ios 6.0 version onwards.Apple Using MkMapView that was not that much clear like google map..I used GoogleMapOverlay it displayed the Google map inside the MkMapView..GoogleMapOverlay displays the worldMap i want to move to specific loaction using latitude and longitude...If i specify the latitude and longitude position in GoogleMapOverlay example am getting that particular position alone in rectangle shape overlay at the back i can see my mkmapview...can any one please guide me to resolve this..Thank you

Upvotes: 1

Views: 158

Answers (2)

Pradeep
Pradeep

Reputation: 1043

You can use the google map sdk for >= ios6

https://developers.google.com/maps/documentation/ios/

here is sample code from google sdk ios

#import "YourViewController.h"
#import <GoogleMaps/GoogleMaps.h>

@implementation YourViewController {
  GMSMapView *mapView_;
}

// You don't need to modify the default initWithNibName:bundle: method.

- (void)loadView {
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:24.451794 longitude:54.391412 zoom:12];
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled = YES;
self.view = mapView_;
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position=CLLocationCoordinate2DMake(24.451794,54.391412);
marker.snippet = @"Abu Dhabi";
marker.title = @"Al Jazira Sports and Cultural Club";
marker.map = mapView_;
}


@end
output:

enter image description here

Upvotes: 1

parilogic
parilogic

Reputation: 1179

You can use Google Maps on iOS 6 by adding a UIWebView and adding Map on it.

Upvotes: 1

Related Questions