google-maps-sdk-ios

Is Google map mobile SDK no longer free?

一笑奈何 提交于 2019-12-21 03:26:29
问题 According to this link : Google price guide Google has changed it's prices from 11 June. Is that mean using google map SDK for mobile devices is no longer free ? 回答1: Yes and no. You'll need an API key and a valid billing method. That being said, the first 200$ (I assume USD) of usage is free We’ve heard that you want simple, easy to understand pricing that gives you access to all our core APIs. That’s one of the reasons we merged our Standard and Premium plans to form one pay-as-you go

Google Maps SDK & Mapkit in the same app cause crash

和自甴很熟 提交于 2019-12-21 02:51:28
问题 trying to give the user the option to choose between google maps (sdk) and apple maps (mapkit) in my app. the app is not using ARC. crash scenario (ios 6.0 / 6.1): 1. enter google maps (modal controller). 2. exit google maps (dismiss modal). 3. change in my app to apple maps (mapkit). 4. enter apple maps (modal controller). the app crashes and i get: [EAGLContext setCurrentContext:] the error won't occur if i don't release google maps in the dealloc, but it's probably will cause a memory leak

How to get coordinate center of gmsmapview in iphone

萝らか妹 提交于 2019-12-20 17:40:44
问题 I'm using the new Google Maps SDK for iOS Can I get the true coordinate form GMSMapView.center? Now it returns a value of CGPoint, but it's not the true coordinate. Thank and Regards. 回答1: I suggest to use [yourMapView.camera target] instead of Jing's solution. Jing's solution work fine on iOS 6, but maybe having issue on iOS 7/7.1, the projection may report wrong coordinate (a bit downward shift) ! I have checked the map bounds and padding is correct, both result of [projection

iOS: Google Maps API - markerInfoWindow vs markerInfoContents

为君一笑 提交于 2019-12-20 10:53:50
问题 I looked through the Google Maps docs and the description does not seem to help much. I'm following an old tutorial that made use of markerInfoContents however, when I used the delegate it didn't return what I expected. With markerInfoContents : My custom view seems to override the default view When I used markerInfoWindow , the results were what I expected: I am simply pulling in a custom UIView from a xib file like so: func mapView(_ mapView: GMSMapView, markerInfoWindow marker: GMSMarker)

GMSPolyline very large memory spike

跟風遠走 提交于 2019-12-20 09:48:14
问题 In a GPS app that allows the user to display a list of complex location points that we call tracks on various different types of map, each track can consist of between 2k to 10k of location points. The tracks are copiously clipped, pruned and path-simplified when they are rendered on non-Google map types. This is to keep memory usage down and performance up. We typically only wind up submitting far less than a thousand (aggregate) transformed location points to the OpenGL pipeline, even in

How to fit bounds for coordinate array with google maps sdk for iOS?

为君一笑 提交于 2019-12-20 08:57:33
问题 How to fit bounds for coordinate array with google maps sdk for iOS? I need to zoom map for 4 visible markers. 回答1: Here's my solution for this problem. Building a GMSCoordinateBounds object by multiple coordinates. - (void)focusMapToShowAllMarkers { CLLocationCoordinate2D myLocation = ((GMSMarker *)_markers.firstObject).position; GMSCoordinateBounds *bounds = [[GMSCoordinateBounds alloc] initWithCoordinate:myLocation coordinate:myLocation]; for (GMSMarker *marker in _markers) bounds =

google map on iphone exception

£可爱£侵袭症+ 提交于 2019-12-20 07:22:12
问题 i am trying to add a google map to my iphone application , i follow what google says here https://developers.google.com/maps/documentation/ios/start#getting_the_google_maps_sdk_for_ios i did all what they said and unformatunately, i have six errors when building my application, those are : Undefined symbols for architecture i386: "_objc_setProperty_nonatomic", referenced from: -[GMSx_PBGeneratedMessage setExtensionRegistry:] in GoogleMaps(ProtocolBuffers.o) "_NSURLIsExcludedFromBackupKey",

Get LAT and LONG from tapped overlay in Google Maps

纵饮孤独 提交于 2019-12-20 04:07:17
问题 When a user taps an overlay, the following code is triggered: func mapView(_ mapView: GMSMapView, didTap overlay: GMSOverlay) { } I wonder if we can extract the exact LAT and LONG coordinates of the overlay that has been tapped? Thanks! 回答1: To solve this we need the 2 methods together, So I combined them in a way I hope it will help in this issue: func mapView(_ mapView: GMSMapView, didTap overlay: GMSOverlay) { print(overlay) } func mapView(_ mapView: GMSMapView, didTapAt coordinate:

Google Maps IOS SDK 1.2 need snapshot of map view

天涯浪子 提交于 2019-12-19 21:52:35
问题 In 1.1, the GMSScreenshot class provided a rudimentary way to get a snapshot of the entire screen into a UIImage. In 1.2, the class is missing, and in the release notes, it says this: Calling renderInContext: on the GMSMapView layer now renders correctly; this allows for snapshots and UI effects Unfortunately, I'm not finding this to be the case. Typically renderInContext: does not work on Open GL drawing, but I figured I'd take a shot anyway (it didn't work). Has anyone been successful in

Google Maps IOS SDK 1.2 need snapshot of map view

南笙酒味 提交于 2019-12-19 21:50:04
问题 In 1.1, the GMSScreenshot class provided a rudimentary way to get a snapshot of the entire screen into a UIImage. In 1.2, the class is missing, and in the release notes, it says this: Calling renderInContext: on the GMSMapView layer now renders correctly; this allows for snapshots and UI effects Unfortunately, I'm not finding this to be the case. Typically renderInContext: does not work on Open GL drawing, but I figured I'd take a shot anyway (it didn't work). Has anyone been successful in