google-maps-sdk-ios

Add layer above googlemaps layer in swift

梦想与她 提交于 2019-12-10 19:23:42
问题 I tried to add my own layer on google maps by code from google maps documentation: extension MapViewController { func addTiles() { // Implement GMSTileURLConstructor // Returns a Tile based on the x,y,zoom coordinates, and the requested floor let urls = { (x: UInt, y: UInt, zoom: UInt) -> NSURL in let url = "http://example.pl/ras/\(zoom)/\(x),\(y).v\(1).png"; return NSURL(string: url)! } // Create the GMSTileLayer let layer = GMSURLTileLayer(URLConstructor: urls) layer.tileSize = 512 layer

How to show all Info window in iOS Google maps without tapping on Marker?

馋奶兔 提交于 2019-12-10 19:05:11
问题 I'm trying to create markers without tapping. But i cant display all infoWindows. It only show one infowindow on last marker. Here is my code: - (void)viewDidLoad { [super viewDidLoad]; NSMutableArray *markersArray = [[NSMutableArray alloc] init]; for(int i=0; i<10; i++){ GMSMarker *marker = [[GMSMarker alloc] init]; marker.position = CLLocationCoordinate2DMake(latitude, longitude); marker.appearAnimation=YES; marker.opacity = 0.0; mapView.selectedMarker = marker; marker.map = mapView;

GoogleMaps iOS SDK 1.5 won't load

放肆的年华 提交于 2019-12-10 18:13:40
问题 So I've started investigating using GoogleMaps iOS SDK. I followed the instructions: Enabled the Google Maps SDK for iOS in the console Setup an API key and added the Bundle ID (I used the demo Project Google Supplies) Updated the constant 'kAPIKey'the the key in my Project I run the app and I get the following 2013-11-18 11:24:59.155 SDKDemos[7073:c07] ClientParametersRequest failed, 3 attempts remaining (0 vs 5). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be

Google Maps API for iOS myLocationEnabled not working

风格不统一 提交于 2019-12-10 16:56:31
问题 I am trying to use the Google Maps API but am having trouble getting the user's location. The observed value never seems to change since observeValueForKeyPath is never called. Note: I am running Xcode6-Beta 5 and iOS8 beta (code is in Swift) override func viewDidLoad() { super.viewDidLoad() var camera:GMSCameraPosition? = nil mapView_ = GMSMapView.mapWithFrame(CGRectZero, camera:camera); mapView_!.addObserver(self, forKeyPath: "myLocation", options: NSKeyValueObservingOptions.fromRaw(0x01)!,

iOS: Dynamic Marker Info Window

我的梦境 提交于 2019-12-10 16:54:29
问题 I'm trying to dynamically load an image into an infowindow. The issue is that SDWebImage doesn't ever complete. However, once I click the marker again the image shows and complete is called but never on the first time. My log for "run" shows on the first time so I know the code is being called but complete never shows on the first run unless the image is cached and in that case it will show on the second marker tap. Side note: I'm storing the link to the image in snippet since I don't have

Google map's turn by turn gps navigation for ios development

别等时光非礼了梦想. 提交于 2019-12-10 15:40:12
问题 My app required to include turn by turn gps navigation. Can anybody tell how to integrate google map for turn by turn gps navigation. I can found it in android development. But i can't found navigation from google map's iOS development documentation. https://developers.google.com/maps/documentation/ios/intro Please anybody help to resolve my problem. 回答1: The google map ios Sdk does not have any turn-by-turn navigation api or navigation api's,yet. Please refer link https://developers.google

Implement new Google Maps SDK to my iOS app

心不动则不痛 提交于 2019-12-10 13:19:15
问题 UPDATE: I've just received an email from Google about the new Google Maps iOS SDK. Seems that everything has sorted out. I have successfully create new API key for my app! Didn't sully test it yet, but seems correct. They sent me this URL page. Good Luck! I am trying from yesterday to change my code so be able to use the new Google Maps SDK that released 2 days ago. I have follow all the instructions but until now didn't achieve to display them. I have already request for an API key but

Choosing native Apple or Google Maps SDK for iOS app [closed]

徘徊边缘 提交于 2019-12-10 13:08:21
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . This is a less programmatic and more service related question. I used apple native maps API which integrated google maps service before iOS6 independent apple maps release. So now I am confused between selecting Apple & Google Map. After last year maps problem Apple seem to

How to prevent camera from moving when tapping marker in Google Maps?

依然范特西╮ 提交于 2019-12-10 11:59:10
问题 I'm using Google Maps SDK for iOS. I want to prevent the camera from moving when I tap a marker. How can I make it? 回答1: Add the following code in your viewDidLoad - (BOOL) mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker { mapView.selectedMarker = marker; return TRUE; } Credits How to change default camera behavior when marker is tapped? 来源: https://stackoverflow.com/questions/37041456/how-to-prevent-camera-from-moving-when-tapping-marker-in-google-maps

Turn-By-Turn navigation using Google Map SDK and Swift in iOS app

自作多情 提交于 2019-12-10 10:17:57
问题 There is an app, that should provide turn by turn navigation. At the moment it uses Google Map SDK and I was able to draw a route using Google Directions API and GMSPath using tutorial from AppCoda. Problem is it looks kind of ugly - simply thin blue line. My questions is it possible create turn by turn navigation inside an app using Google Maps? 回答1: I think Google does provide this option but not for free. Have a look at this: https://cloud.google.com/maps-platform/ridesharing/ 来源: https:/