google-maps-sdk-ios

Resize, drag and scale GMSCircle in Google map objective-c

这一生的挚爱 提交于 2019-12-06 17:03:29
Helllo Everyone, In google map i need to show a circle and user can resize it, scale it and drag it also and after that i need to find radius of the circle and center latitude and longitude. How can i achieve this ? For Tappable GMSCircle set googleMapCircle.tappable = true; And to achieve draggable circle need to add the delegate method of Google map didTapOverlay : - (void)mapView: (GMSMapView*)mapView didChangeCameraPosition: (GMSCameraPosition*)position { //set GMSCameraPosition to googleMapCircle position googleMapCircle.position=position.target; } For resize GMSCircle on slider value

How to draw a proper polylines on google maps [closed]

蹲街弑〆低调 提交于 2019-12-06 16:25:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . I have successfully drawn a polyline from point a to point b, but for some reason , it shows linear line not the correct waypoints Here's the code let path = GMSMutablePath() path.addLatitude(3.1970044, longitude:101.7389365) path.addLatitude(3.2058354, longitude:101.729536) let polyline = GMSPolyline(path:

Parse and GMaps iOS SDK incompatibility in Swift?

不想你离开。 提交于 2019-12-06 15:47:07
I'm building a Swift app w/ Parse integration, which works correctly. When I try to add Google Maps iOS SDK integration, however, I get the following build errors: Undefined symbols for architecture x86_64: "_FBTokenInformationExpirationDateKey", referenced from: -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy expirationDate] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy setExpirationDate:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o) "

how to calculate angle between two path lines on google map using lat-long coordinates

扶醉桌前 提交于 2019-12-06 15:35:42
I want to calculate angle between two path lines on Google map. I have the lat-long coordinates of the end points of the lines. Please suggest If there is other information I can use to do this that is available from Google maps. If the distances are small you can use this method. The accuracy reduces with large distances and the further you move from the equator. First find bearings with computeHeading() computeHeading(from:LatLng, to:LatLng) .Returns the heading from one LatLng to another LatLng. Headings are expressed in degrees clockwise from North within the range [-180,180). function

iOS, how to display route between two points using Google Places Api?

[亡魂溺海] 提交于 2019-12-06 11:03:28
问题 I've been searching for how to draw a route between two points using Google Places API in iOS , but I have not found something interesting. The only way you can draw route between two points is to call web services and to parse JSON into your app, to route a route between two points. Here is a reference. The question : Is there any sample code that can help me on how I can draw route between two points, an origin(based on user current location), and a destination. 回答1: I used this library,

Cocoa Pods and Google Maps SDK

老子叫甜甜 提交于 2019-12-06 06:13:49
When using CocoaPods to get the Google Maps SDK for iOS, I'm having troubles importing the sdk header file ( #import <GoogleMaps/GoogleMaps.h> ). I'm new to CocoaPods but I think I have everything working fine with the other libraries that I use (RestKit, AFNetworking...). For these APIs I still need to import the lib like this #import <AFNetworking/AFNetworking.h> instead of just #import "AFNetworking" . But it works fine. For Google Maps SDK I need to import it like this #import <Google-Maps-iOS-SDK/GoogleMaps/GoogleMaps.h> which leads to a compilation error because in the GoogleMaps.h

Outline of polyline in Google Maps sdk for iOS

旧街凉风 提交于 2019-12-06 05:57:40
问题 The requirement that I have is to have a green polyline to be showed on the map. But when the map is switched to satellite view, the green polyline becomes unclear. I can't get the color of the polyline changed. So to distinguish the polyline from the background(Satellite view of the map), I need to draw white outline to the polyline. I went through the documentation of GMSPolyline class and could not find anything using which I can outline the polyline with very thin two white lines. Can

Google Maps iOS API key not working

核能气质少年 提交于 2019-12-06 05:17:19
问题 I have a simple iOS app into which I am integrating Google Maps. However, the API key I've provided results in several of these error messages when my map view is displayed: ClientParametersRequest failed, 3 attempts remaining (0 vs 5). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x1818bf40 {data=<CFData 0x18137410 [0x302aec8]>{length = 145, capacity = 256, bytes = ...}} Here is what I have already tried to no

Is there a Google Maps equivalent to mkmapsnapshotter?

偶尔善良 提交于 2019-12-06 02:57:23
问题 I have a UITableView which may potentially contain a large number of cells, and in some cells I want a UIImageView showing a map of a location, the coordinates of which are known only at runtime. I want the table view to scroll smoothly and I want the maps in the cells to not be scrollable at all. I've been directed to avoid Apple Maps. Besides, MKMapSnapshotter is iOS 7 and up. I have to support iOS 6. So is Google Maps image API my best option? I'm already using the Google Maps iOS SDK

How to change default camera behavior when marker is tapped?

倖福魔咒の 提交于 2019-12-06 02:35:13
In release 1.2 of the Google Maps for iOS SDK the default behavior of a tapped marker changed. The release note says: "The default behavior when a marker is tapped has been updated to also pan the camera to the marker's position" How can I get the old behavior back, i.e. not panning the camera center to the position of the marker? Add the following method to your GMSMapView delegate implementation. GMSMapView will no longer center on the selected marker and brings back the existing behavior. - (BOOL) mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker { mapView.selectedMarker =