google-maps-sdk-ios

about positioning myself,some problems

情到浓时终转凉″ 提交于 2020-02-10 12:40:10
问题 I am a new to google map sdk for ios.I have added a map on a view.When I enter this mapView,I want to positioning myself.So I wrote : GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.8683 longitude:151.2086 zoom:6]; _iMapView = [GMSMapView mapWithFrame:CGRectMake(0, 0, 320, 480) camera:camera]; self.iMapView.myLocationEnabled = YES; self.iMapView.delegate=self; GMSMarkerOptions *annotation = [[GMSMarkerOptions alloc] init]; annotation.position = CLLocationCoordinate2DMake

adding multiple pins on google map in ios

社会主义新天地 提交于 2020-01-29 23:37:45
问题 I want to add multiple pins on a google map, while it is being loaded. I have a list of Latitude and Longitude values of nearby locations. How can I show all these locations on the map with a pin. I am using Google SDK for iOS. I am using the following code, but it didn't work for me. NSMutableArray *array = [NSMutableArray arrayWithObjects:@"12.981902,80.266333",@"12.982902,80.266363", nil]; CLLocationCoordinate2D pointsToUse[5]; for (int i = 0; i < [array Size]; i++) { pointsToUse[i] =

adding multiple pins on google map in ios

谁说我不能喝 提交于 2020-01-29 23:36:34
问题 I want to add multiple pins on a google map, while it is being loaded. I have a list of Latitude and Longitude values of nearby locations. How can I show all these locations on the map with a pin. I am using Google SDK for iOS. I am using the following code, but it didn't work for me. NSMutableArray *array = [NSMutableArray arrayWithObjects:@"12.981902,80.266333",@"12.982902,80.266363", nil]; CLLocationCoordinate2D pointsToUse[5]; for (int i = 0; i < [array Size]; i++) { pointsToUse[i] =

IB Designables: Failed to render and update auto layout status for Google Maps

做~自己de王妃 提交于 2020-01-21 06:31:09
问题 I'm using GoogleMaps Pod in my project. I have error in one of my Storyboard: error: IB Designables: Failed to render and update auto layout status for MapViewController: dlopen(GoogleMaps.framework, 1): no suitable image found. Did find: GoogleMaps.framework: mach-o, but wrong filetype I have set view class to GMSMapView: App is working on simulator. How I can fix this error? It causes whole storyboard to be blank. 回答1: Use GMSMapView manually by writing code in simulator; Instead of using

Google Maps iOS SDK: How do I get accurate latitude and longitude coordinates from a camera's visibleRegion?

↘锁芯ラ 提交于 2020-01-19 14:10:36
问题 EDIT: This is now a confirmed bug with this SDK I'm using version 1.1.1.2311 of the Google Maps for iOS SDK, and I'm looking to find the bounding latitude and longitude coordinates for the visible map on screen. I'm using the following code to tell me what the current projection is: NSLog(@"\n%@,%@\n%@,%@\n%@,%@\n%@,%@\n", [NSNumber numberWithDouble:mapView.projection.visibleRegion.farLeft.latitude], [NSNumber numberWithDouble:mapView.projection.visibleRegion.farLeft.longitude], [NSNumber

Prevent scrolling outside map area on google map

て烟熏妆下的殇ゞ 提交于 2020-01-17 04:18:23
问题 Am actually dealing with the Google Maps Framework for iOS, and I want to block scrolling out side a giving area. What I tried to do at first, implement the delegate method : - (void)mapView:(GMSMapView *)mapView didChangeCameraPosition:(GMSCameraPosition *)position and compare the map position with the right/left corners.But what I did has many issues when scrolling or zooming. Below an exemple of my implementation : - (void)mapView:(GMSMapView *)mapView didChangeCameraPosition:

Cant interact with custom infowindow in google map

半腔热情 提交于 2020-01-14 03:29:14
问题 I have a google map and I've created a custom info window for my markers. I've put a couple buttons on the window, but I can't interact with them for the life of me. Here is my custom view: class MarkerWindowView: UIView, UIGestureRecognizerDelegate { //@IBOutlet weak var thumbNail: UIImageView! @IBOutlet weak var userName: UILabel! @IBOutlet weak var videoLocation: UILabel! @IBOutlet weak var tags: UILabel! override func awakeFromNib() { println("awake From Nib") self.userInteractionEnabled

Cant interact with custom infowindow in google map

≡放荡痞女 提交于 2020-01-14 03:29:10
问题 I have a google map and I've created a custom info window for my markers. I've put a couple buttons on the window, but I can't interact with them for the life of me. Here is my custom view: class MarkerWindowView: UIView, UIGestureRecognizerDelegate { //@IBOutlet weak var thumbNail: UIImageView! @IBOutlet weak var userName: UILabel! @IBOutlet weak var videoLocation: UILabel! @IBOutlet weak var tags: UILabel! override func awakeFromNib() { println("awake From Nib") self.userInteractionEnabled

Use of Unresolved Identifier 'GMSServices'

对着背影说爱祢 提交于 2020-01-13 07:44:06
问题 I am using Xcode 7.1 and the deployment target is iOS 9.1. The app is "AreaCalculator" and it was written in Swift. I did following to set up the framework and import the map: $ sudo gem install cocoapods under "AreaCalculator" $ touch Podfile in Podfile I put: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.1' pod 'GoogleMaps' $ pod install in the terminal: [!] Unable to load a specification for the plugin /Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.2

How to use delegates in Google map API for IOS 6 [closed]

筅森魡賤 提交于 2020-01-13 06:50:09
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . In my iphone app I am using google map SDK for showing nearby restaurants.I am able to show the places. I have some doubts.. 1. How can I find out the center coordinates of the map ?? 2. How to revert back to