google-maps-sdk-ios

iOS FacebookSDK + Parse SDK + GoogleMaps SDK

眉间皱痕 提交于 2019-12-22 10:55:16
问题 I searched a lot and I realized, -ObjC flag that GoogleMapSDK requires, doesn't play well with ParseSDK and FacebookSDK . So I read on all the stackoverflow answers and tried solving my problem. The problem isn't fixed yet. Steps I performed: Problem 1 :Parse doesn't work with -ObjC Solution 1 : To make Parse work with -ObjC import the FacebookSDK. Done Problem 2 : Parse and Fb SDK both use Bolts.framework and the linker gives duplicate symbol errors(some 92 of them) Solution 2 : Delete Bolts

Button on Custom info Window not Receiving Action in ios

人盡茶涼 提交于 2019-12-22 07:41:39
问题 I am using Google Maps in iOS Application and have implemented a custom info window for showing title of a marker. Now, I added a button on that custom info window but my problem is that the button action method does not get called. CustomInfoWindow.h #import <UIKit/UIKit.h> @interface CustomInfoWindow : UIView @property (nonatomic,weak) IBOutlet UILabel *addressLabel; @property(nonatomic) IBOutlet UIButton *button; @end and in infoWindow.xib , I have added UILabel called addressLabel

Button on Custom info Window not Receiving Action in ios

别来无恙 提交于 2019-12-22 07:40:55
问题 I am using Google Maps in iOS Application and have implemented a custom info window for showing title of a marker. Now, I added a button on that custom info window but my problem is that the button action method does not get called. CustomInfoWindow.h #import <UIKit/UIKit.h> @interface CustomInfoWindow : UIView @property (nonatomic,weak) IBOutlet UILabel *addressLabel; @property(nonatomic) IBOutlet UIButton *button; @end and in infoWindow.xib , I have added UILabel called addressLabel

Adding a subview like UISlider or UIButtom in Google Maps in iPhone

倾然丶 夕夏残阳落幕 提交于 2019-12-22 06:48:07
问题 I am new to iOS Programming and have very little knowledge about COCOA Touch. I am trying to add a button on the screen at the bottom over Google maps for giving an option to the user to go back to the previous screen. I just know that UIButton is a subclass of UIView and we can make button appear on a view by making it the sub view of that class. Previously iOS used to use Google Maps by default by in MKMapView and I have seen examples in books an on the Internet showing screen shots of apps

Issue taking screen capture of GMSMapView on Google Maps SDK for iOS

五迷三道 提交于 2019-12-22 05:59:51
问题 An item that I am struggling with is when I attempt to take a screen capture of any portion of the GMSMapView (Google Maps SDK iOS). The UIGraphicsGetImageFromCurrentImageContext() UIImage output is invisible. I eventually discovered that the GMSMapView is rendered with OpenGL. Knowing this, I attempted to use the glReadPixels() method. The troubling thing is that I am able to retrieve a map screen capture on the iPhone simulator just fine, but when I use the same method on a real device it

How to implement GMSMarker drag drop on GMSMapView?

自闭症网瘾萝莉.ら 提交于 2019-12-22 04:14:35
问题 I set the marker on google map but when i drag it's all of map are drag. I want drag marker when click and drag on it's and drag map when click and drag outside marker. this is my code self.camera = [GMSCameraPosition cameraWithLatitude:-33.86 longitude:151.20 zoom:6 bearing:0 viewingAngle:0]; self.Map = [GMSMapView mapWithFrame:self.MapView.bounds camera:self.camera]; self.Map.myLocationEnabled = YES; self.Map.delegate = self; GMSMarker *marker = [[GMSMarker alloc] init]; marker.position =

How to remove GMSPolygon from GMSMapView

那年仲夏 提交于 2019-12-22 04:01:24
问题 Does exist any way to remove GMSPolygons from GMSMapView? It does not seem to exist a property of GMSMapView containing them (as GMSPlolyLines), should I clear the map and render all again? thanks 回答1: When you create the GMSPolygon you set its map property to add it to the map. To remove it from the map, set its map property to nil . This means you need to keep your own record of the polygons which you've added to the map, which you want to be able to remove later. For example mySavedPolygon

Is there a Google Map event listener for panning or zooming map?

泪湿孤枕 提交于 2019-12-21 07:37:45
问题 I want to be able to detect if the user has zoomed out or moved the map center. I have seen post about an event listener but in Javascript and I am trying to see if there is anything in the Google Maps iOS SDK similar to that. I see that iPad Yelp app has something like that, where if you zoom in/out or move the map a Tool Bar appears from the bottom and lets the user know if they want to "Redo Search In Area". I want to do something similar like that and reload the map with other/more

EXC_BAD_ACCESS Using gmaps sdk 1.9.0, Xcode 6.4, running on 8.3 device

家住魔仙堡 提交于 2019-12-21 04:42:52
问题 I have 2 projects working with google maps sdk, they are currently in the Appstore. Things to have in mind: Gmaps sdk version 1.9.0 installed via cocoapods Xcode version 6.4 Deployment target 7.1 Device: iPhone 4s with 8.3.0 Today I've opened Xcode as usual with the first project, tried to compile and debug on the iPhone and I sometimes get a EXC_BAD_ACCESS (code=1...) crash on the app and sometime get EXC_BAD_ACCESS (code=EXC_ARM_DA_ALING...) , no stack trace in here, but always on main.m:

didChangeCameraPosition get bounding box/ rectangle of available coordinates

谁说我不能喝 提交于 2019-12-21 04:28:12
问题 How can I retrieve the GMSCoordinateBounds from a GMSCameraPosition? I want to know the visible coordinates on the map (at least Northeast/Southwest points) everytime the user moves the camera as in: (void)mapView:(GMSMapView *)mapView didChangeCameraPosition:(GMSCameraPosition *)position 回答1: GMSVisibleRegion visibleRegion = mapView.projection.visibleRegion; GMSCoordinateBounds *bounds = [[GMSCoordinateBounds alloc] initWithRegion:visibleRegion]; // we've got what we want, but here are NE