According to the start for Google Map SDK provided by Google for iOS set a series of settings, there is not much to say
Https://developers.google.com/maps/documentation/ios/start
Google Map SDK for iOS provides a full set of targeting and display services, so there's no need to call Cllocationmanager in Corelocation to manage location
You only need to set Google Map's
mapview_. mylocationenabled = YES;
mapview_. Settings. Mylocationbutton = YES;
The tracking of the location can be achieved.
However, after iOS8, the same settings will not be able to be located, because Apple forces the developer to add a reminder to use the location information in the positioning service, so if you do not add this reminder, you will not get the location coordinates.
How do I set reminders? Very simple:
In the XXXViewController.h file, add
@property (Nonatomic,retain) Cllocationmanager *locationmanager;
In the Viewdidload: XXXVIEWCONTROLLER.M file, add
[_locationmanager requestwheninuseauthorization];
Join in the XXXVIEWCONTROLLER.M
- (BOOL) ios8{ return [[[Uidevice Currentdevice] systemversion] @ "8.0 " ];}
Join in the Info.plist
Nslocationwheninuseusagedescription:this'll is used to obtain or track your location.
Such a key-value pair
At this point you can use the iphone's positioning function normally.
Google Map SDK for IOS