google-maps-sdk-ios

<GoogleMaps/GoogleMaps.h> file not found Google Maps SDK for iOS

天涯浪子 提交于 2019-12-17 16:47:31
问题 Yesterday I recived an email from google saying that I could acces to the map api for ios, I generated my key from the app console and I follow the steps of https://developers.google.com/maps/documentation/ios/start but xcode throw this error. #import <GoogleMaps/GoogleMaps.h> //file not found Thanks for your support. It is normal that appears the Headers executable instead of the folder? SOLVED! 回答1: Make sure you unzip the SDK with something which understands symbolic links. GoogleMaps

Adding Click Event on InfoWindow/Marker in Google Maps SDK for native iOS/objective C

送分小仙女□ 提交于 2019-12-17 15:44:13
问题 Simple Question I´m working on an App for iOS where I embedded the new Google Map for native iOS. Everything works fine except one problem where I can´t find a propper solution for native IOS/ Objective-C neither here nor at google (if there is one please show me and sorry for annoying you) What I want: I want the User to Click on the Marker that opens the Info Window. After If he clicks or taps on the Info Window it should open a New UIView with further Informations. How can I do that?

How to setCenter mapview with location in google maps sdk for iOS

本小妞迷上赌 提交于 2019-12-14 01:37:52
问题 How to setCenter mapview with location in google maps sdk for iOS? With mapkit we can do setCenter:Location. How do this with google maps sdk for iOS. 回答1: Create a new camera with the GMSCameraPosition constructor + (GMSCameraPosition *)cameraWithTarget:(CLLocationCoordinate2D)target zoom:(CGFloat)zoom then use the method - (void)animateToCameraPosition:(GMSCameraPosition *)cameraPosition; You can also just use - (void)animateToLocation:(CLLocationCoordinate2D)location; but the previous

GMSMapView clear method is not removing GMSPolygon iOS?

久未见 提交于 2019-12-13 19:51:55
问题 I have add Polygons in google map using below codes for(int i = 0; i < [[polygon valueForKey:@"coordinates"] count]; i++){ [self.path addCoordinate:CLLocationCoordinate2DMake([[[[polygon valueForKey:@"coordinates"] objectAtIndex:i] objectAtIndex:1] floatValue],[[[[polygon valueForKey:@"coordinates"] objectAtIndex:i] objectAtIndex:0] floatValue])]; } GMSPolygon *rectangle = [GMSPolygon polygonWithPath:self.path]; rectangle.fillColor = [UIColor colorWithRed:255.0/255.0 green:0.0/255.0 blue:0.0

How to find the length of Google Maps Path

六月ゝ 毕业季﹏ 提交于 2019-12-13 18:29:37
问题 I'm using the Google Maps SDK for iOS and have created a route using the GMSMutablePath object. In the API Documentation , it says it has a function called lengthOfKind that calculates the length of the path, but it requires an object of type GMSLengthKind . (CLLocationDistance) lengthOfKind: (GMSLengthKind) kind Returns the length of the path, according to kind. See GMSLengthKind. However, there is nowhere in the documentation that mentions a GMSLengthKind and I can't seem to find anything

Google Maps iOS [closed]

别说谁变了你拦得住时间么 提交于 2019-12-13 08:35:01
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am trying to insert Google Maps in a CGRect in iOS. But the code below still displays the map in the entire iPhone page. How do I fix this CGRect rect

Missing Map, only marker is visible

試著忘記壹切 提交于 2019-12-13 07:45:20
问题 I am having a hard time trying to figure out what is going wrong. I have gone through similar questions on SO, but the solutions mentioned here did not work. One of the popular solution was to enable the 'Google Maps SDK for iOS', however it was already enabled in my case: I think I have taken care of everything mentioned in the tutorial by Google, but when I run my app in simulator, this happens : Then I checked my console to find this: I checked my bundle ID to what I entered while

How to refresh the markers on google maps, without refreshing the map using swift

左心房为你撑大大i 提交于 2019-12-13 03:51:16
问题 Am showing some vehicles on google maps(latitudes & longitudes am getting from API). I am getting latitude & longitudes from storingDataOftripLocDetails() method. And am calling that method for every 2 seconds. After getting lat & long am showing one marker. and here because of timer my google maps is also refreshing. But my requirement is i have to refresh marker only. how should i achieve this? var driverLatitude: Double? var driverLongitude: Double? Here in the following method am calling

iOS google places API - compile error - use of undeclared identifier GMSAutocompleteViewController

不打扰是莪最后的温柔 提交于 2019-12-13 01:40:27
问题 I have installed GoogleMaps SDK using CocoaPods. For some screen I need to use Google Places API Here is the code GMSAutocompleteViewController *acController = [[GMSAutocompleteViewController alloc] init]; acController.delegate = self; [self presentViewController:acController animated:YES completion:nil]; Which I have got from https://developers.google.com/places/ios-api/autocomplete The error - use of undeclared identifier 'GMSAutocompleteViewController' 回答1: Have you added #import

Add callouts to custom infoMarkerWindow implementations for GMSMapview

不羁的心 提交于 2019-12-12 20:27:48
问题 I am using Google IOS SDK and have implemented - (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker to implement a custom view. When I show this view, it does not add a callout as Google map view normally does for its own markers. Can anyone please let me know how it would be possible to add this callout like pointer pointing towards the marker for this custom makerInfoWindow ? 回答1: Here is how to do it. - (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow: