google-maps-sdk-ios

How to integrate new Google map app with ios app

只愿长相守 提交于 2020-01-12 20:28:10
问题 Google Map is now available in Appstore for IOS 6. I have a application which utilises MAPKIT and WebView to show Driving direction using Google webservices. For showing Route in Native Apple MAP app, i use codes similar to this.. MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place]; NSDictionary *options = @{ MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving }; [mapItem openInMapsWithLaunchOptions:options]; I want to show Route to the user in the New Google MaP

How to integrate new Google map app with ios app

假如想象 提交于 2020-01-12 20:27:48
问题 Google Map is now available in Appstore for IOS 6. I have a application which utilises MAPKIT and WebView to show Driving direction using Google webservices. For showing Route in Native Apple MAP app, i use codes similar to this.. MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place]; NSDictionary *options = @{ MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving }; [mapItem openInMapsWithLaunchOptions:options]; I want to show Route to the user in the New Google MaP

Google Maps iOS SDK crash

我与影子孤独终老i 提交于 2020-01-12 10:13:12
问题 I use google maps iOS SDK with storyboard. Application starting with Navigation View Controller that has a Root View Controller with map. @implementation MyViewController @synthesize btnMyLock; @synthesize btnNearby; GMSMapView *mapView_; - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:20 longitude:20 zoom:0]; mapView_ = [GMSMapView mapWithFrame:CGRectZero

Place multiple markers on GMSMapView Swift

只谈情不闲聊 提交于 2020-01-07 05:46:10
问题 i was making an application that uses google places api to search for all the restaurants nearby user's location. So i can successfully retrieve the restaurants coordinates(lat, lng) and then i want to add a marker or a circle to each place but i am unable to do that. I can add a marker or circle to one location but when i try to add to multiple locations it does not show markers or circles. Here is the code i wrote func setUpMarkersForLibraries(locations: [CLLocationCoordinate2D]){ print(

Smooth GMSPolyline in iOS

断了今生、忘了曾经 提交于 2020-01-06 14:06:08
问题 I am using Google Maps iOS SDK. When I draw a GMSPolyline in map, it does not look smooth. How can I make a smoother GMSPolyline or a smoother line between two coordinates? 回答1: I found the solution. I was using 1px stroke-width of line. Instead now I am using 4px stroke-width and its smoother. 来源: https://stackoverflow.com/questions/18095437/smooth-gmspolyline-in-ios

Ios - Google places SDK - Get places by location , not by Text

巧了我就是萌 提交于 2020-01-05 03:55:12
问题 I'm trying to show places on the map. For some reason, I can't find a function that receives the places by location. The only function that I see is the GMSPlacesClient - (void)autocompleteQuery:(NSString *)query bounds:(GMSCoordinateBounds * GMS_NULLABLE_PTR)bounds filter:(GMSAutocompleteFilter * GMS_NULLABLE_PTR)filter callback:(GMSAutocompletePredictionsCallback)callback; The problem with this function, that it is searching only by text - I can insert filters, but i also need to insert a

Google Map Kit, draw polylines for walk like google map ios

十年热恋 提交于 2020-01-05 02:52:05
问题 I wants to draw polyline for walk like google map app in ios using google maps ios sdk. For more clear understanding i am uploading image that is from google map app(ios.) 回答1: Are you asking how to achieve the dotted polyline effect? If so, I don't believe that is supported in the SDK. You can manually create a similar effect with GMSCircles. for(int x = 0; x < [self.path count]; x++) { CLLocationCoordinate2D coord = [self.path coordinateAtIndex:x]; //draw circle coord GMSCircle *circle =

IOS - ObjC Google Maps Api Key

一个人想着一个人 提交于 2020-01-04 02:27:08
问题 i just did everything right as mentioned here but Xcode still gives that error: Google Maps SDK for iOS cannot connect or validate APIKey: Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x8416b20 {data=<CFData 0x9187710 [0x27424d8]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} 2013-09-01 15:04:04.902 MyApp[1357:12e03] Your key may be invalid for your bundle ID:

Add multiple stops to Google navigation using Universal URL schemes

让人想犯罪 __ 提交于 2020-01-03 03:33:11
问题 Is there a way to launch Google Maps app on iOS with multiple stops using Google Maps URL Scheme? 回答1: Well we need to append to: parameter for each location. The url scheme will be as follows: from your current location comgooglemaps://?daddr=Lat,Lon+to:Lat,Lon+to:Lat,Lon+to:... if you have source location comgooglemaps://?saddr=Lat,Lon&daddr=Lat,Lon+to:Lat,Lon+to:Lat,Lon+to:... 来源: https://stackoverflow.com/questions/43363826/add-multiple-stops-to-google-navigation-using-universal-url

how to draw filled polygon in Google Maps SDK for iOS

 ̄綄美尐妖づ 提交于 2020-01-03 03:31:12
问题 I would like draw a filled polygon on iPhone with Google map (Version 1.1.1, the last one). Anyone knows how to do like that on ios : (My code on Android) mMap.addPolygon(new PolygonOptions() .addAll(latLngList) .fillColor(Color.BLUE) .strokeColor(Color.RED) .strokeWidth(3)); Regards, PS : If you have many solutions, keep in mind that I have many Polygon to draw. 回答1: The SDK currently doesn't support filled polygons, however there is a feature request to add them here: https://code.google