google-maps-sdk-ios

set mapView.delegate with Google Maps iOS SDK 1.4

家住魔仙堡 提交于 2019-12-11 11:58:47
问题 I just updated from Google Maps iOS SDK 1.3.1 to 1.4 and now my app crashes when I set the delegate like mapView_.delegate = self . If I delete this line my delegate methods are not called. How can I set the delegate in v 1.4? Thanks 回答1: Hope you have added the googlemaps framework and bundle correctly. Ensure your header file has @interface yourViewController : UIViewController<GMSMapViewDelegate> In your implementation file ensure that you set the delegate only after initialising your

mapView didTapInfoWindowOfMarker method does not work? Google Maps iOS SDK

江枫思渺然 提交于 2019-12-11 09:16:09
问题 Anyone else experiencing this? I'm using the latest Google Maps SDK for iOS. This is what I have in the didTapInfoWindowOfMarker method : - (void)mapView:(GMSMapView *)mapView didTapInfoWindowOfMarker:(id<GMSMarker>)marker { NSLog(@"yes"); } Not getting any response in my output. 回答1: Sounds like you didn't add delegate and protocol for your GMSMapView object, something like: mapView_.delegate = self; in loadView method. So, the full - (void)loadView and delegate method should be: @interface

Google Maps iOS SDK - Add GMSPanoramaView in a SubView

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 06:54:41
问题 I'm trying to add a GMSPanoramaView to a SubView. Here is the code I'm working on : panoView_ = [[GMSPanoramaView alloc] initWithFrame:CGRectZero]; panoView_.delegate = self; self.view = panoView_; [panoView_ moveNearCoordinate:CLLocationCoordinate2DMake(emplLatitude, emplLongitude)]; This code renders the panorama on fullscreen mode. If I try this, nothing happens : self.myView = panoView_; Where myView outlet is set in my storyboard. This stack is a possible duplicate of this one which

Custom Markers disappear on zoomin the map and appear on zoomout the map with Clustering

試著忘記壹切 提交于 2019-12-11 06:32:06
问题 I have load multiple pins in GoogleMap with clustering and below is my code. Link : https://github.com/googlemaps/google-maps-ios-utils/issues/235 func initializeClusterItems() { let iconGenerator = GMUDefaultClusterIconGenerator() let algorithm = GMUNonHierarchicalDistanceBasedAlgorithm() let renderer = GMUDefaultClusterRenderer(mapView: mapView, clusterIconGenerator: iconGenerator) renderer.delegate = self clusterManager = GMUClusterManager(map: mapView, algorithm: algorithm, renderer:

Implementing a Google Map with UItableviewCell

白昼怎懂夜的黑 提交于 2019-12-11 05:18:04
问题 I am trying to implement a google map inside a UItableviewCell component. The way I am doing this is to define a GMSMapView within the protoype cell, and then using the dequeueReusableCell method i'm configuring the map cell. However, any change i try to apply fails (such as adding markers, camera, zoom, etc.). Does anybody have any information about this issue? Code reference: class UITenderInfoMapCell: UITableViewCell { @IBOutlet weak var view: UIView! @IBOutlet weak var subView: GMSMapView

Displaying info window when tapped marker in google maps iOS sdk while implementing mapView:didTapMarker: delegate method implemented

瘦欲@ 提交于 2019-12-11 04:01:47
问题 Ok it is a long title. I am having trouble when i use google maps iOS sdk. I want to show an info window about a marker which user tapped. According the documentation if snippet and title properties of GMSMarker are both selected info window will be shown when user tapped that marker. But I also implement mapView:didTapMarker: method from GMSMapViewDelegate protocol. If I comment out that method info window is visible otherwise info window is not visible. So how can I show info window when

google-maps-sdk-ios - arm 7/iphone 5 issues for Google Maps 1.4.3 for iOS

允我心安 提交于 2019-12-11 01:49:01
问题 I'm having issues getting my app referencing the Google Maps 1.4.3 sdk for iOS. There seems to be an issue with arm7 & 7s and it refuses to install onto the device (iphone 5) although it runs fine on the simulator. I believe I have followed google's documentation for the API Key, the frameworks needed, build settings - architecture etc & I'm still getting "xcode cannot run using the selected device.. choose a destination with a supported architecture.." 回答1: In my app, I have Architectures

How can I cancel an ongoing request in [GMSPlacesClient autocompleteQuery]?

让人想犯罪 __ 提交于 2019-12-10 21:23:12
问题 I would like to add autocomplete feature to my app. My idea is to use autocompleteQuery:bounds:filter:callback from GMSPlacesClient class. While user is typing, I would like to call that method, but I guess if I send several requests, I could receive responses out of order. For that reason I would like to cancel the current one, but I don't see a way. Maybe it is implemented internally, I don't know. Any help or suggestion? Thanks a lot. I realised responses could come out of order. I created

Can I link GoogleMaps SDK for iOS with a linker flag other than -ObjC

风流意气都作罢 提交于 2019-12-10 21:05:49
问题 I'm using GoogleMapsSDK, and Parse's framework. If I use them together, a bug in Parse triggers required facebook keys because of the linker flag -ObjC. This is a well documented problem on Parse's forums and on here for other frameworks besides GoogleMaps, and the general solution is to import Facebook SDK. I'm not interested in using facebook in any way, and I'd prefer not to add it to my project, so if there's a different way that I can call the linker flag it would be most appreciated.

Make GMSCircle respond to tap?

坚强是说给别人听的谎言 提交于 2019-12-10 20:38:15
问题 I am using the Google Maps API for iOS and I want to make it so when you tap on a GMSCircle it pops up a little thing I coded elsewhere. I have set the circle to "tappable" but I cannot find what I need to set or make to listen for the tap. What do I use? CLLocationCoordinate2D circleCenter = CLLocationCoordinate2DMake(10,10); GMSCircle *circ = [GMSCircle circleWithPosition:circleCenter radius:10]; circ.tappable = true; [circ setFillColor:[UIColor colorWithRed:1 green:0 blue:0 alpha:.5]];