google-maps-sdk-ios

Git push throwing error: GH001: Large files detected

我的梦境 提交于 2019-12-02 03:53:14
问题 I am pushing my Xcode project which written in Swift to GitHub. In this project I used GoogleMaps SDK for IOS and GoogleMaps framework integrated with few other frameworks which made this project heavy as I expected. particularly there is one file called GoogleMaps is over 100MB which is violating GitHub's policy thus I am getting below error. C:\Users\Shyam Bhimani\Desktop\FindMyBuddy>git push Git LFS: (0 of 0 files, 1 skipped) 0 B / 0 B, 34 B skippedCounting objects: 691, done. Delta

Git push throwing error: GH001: Large files detected

≡放荡痞女 提交于 2019-12-02 03:03:16
I am pushing my Xcode project which written in Swift to GitHub. In this project I used GoogleMaps SDK for IOS and GoogleMaps framework integrated with few other frameworks which made this project heavy as I expected. particularly there is one file called GoogleMaps is over 100MB which is violating GitHub's policy thus I am getting below error. C:\Users\Shyam Bhimani\Desktop\FindMyBuddy>git push Git LFS: (0 of 0 files, 1 skipped) 0 B / 0 B, 34 B skippedCounting objects: 691, done. Delta compression using up to 4 threads. Compressing objects: 100% (597/597), done. Writing objects: 100% (691/691)

Decreasing the size of google maps sdk for ios

夙愿已清 提交于 2019-12-02 02:15:10
i dowloaded google maps sdk (1.8.1) for ios,I'm using it in my app.But what i noticed is that size of the framework is about 55MB.Is there any way to decrease the size of framework. A file named "A" in directory structure "GoogleMaps.framework/Versions/A" is about 54MB.Is google maps depended on this file.please suggest some help. Keep GoogleMap framework outside of the project and just drag it in your project without copy file. It will reduce the file size. Only bundle file keep inside of your project. a framework is bound to be larger than the compiled in code thats ending up in your ipa.

Google Maps SDK for iOS localization

给你一囗甜甜゛ 提交于 2019-12-01 22:34:30
I have an app that supports only german & english languages and I need to force a map (or even more - geocoder) to be in one of those languages. While using REST API we can easily set language so all responses, error messages etc are returned properly translated, but I'm worried that REST limits (2500 requests per IP) will not be enough. Does anyone know if we can set specific language for Google Maps iOS SDK? Google Maps iOS SDK uses the system region/language settings but doesn't expose any way to manually force any particular language. Geocoding responses (using the SDK classes) and the map

Google Maps IOS SDK 1.2 need snapshot of map view

落花浮王杯 提交于 2019-12-01 18:40:33
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 getting a (preferred) view or screen snapshot? I am able to take a screenshot. Here is the code I use:

How to get CGPoint of location with google maps sdk for iOS?

主宰稳场 提交于 2019-12-01 17:18:52
How to get CGPoint of location with google maps sdk for iOS ? I need add pinview on user location. Saxon Druce It's basically the opposite of this question , for example: GMSMapView* mapView = ...; CLLocationCoordinate2D coordinate = ...; ... CGPoint point = [mapView.projection pointForCoordinate: coordinate]; Ok, according to your question do you want to convert the userlocation into the cgpoint, is that.. try use this. CGPoint newCenter = [self.map convertCoordinate:coord toPointToView:self.map]; Regards. 来源: https://stackoverflow.com/questions/15066567/how-to-get-cgpoint-of-location-with

Remove GMSPolyline from GMSMapView

烂漫一生 提交于 2019-12-01 16:55:02
问题 I am using GoogleMap-IOS-1.8.1 SDK for showing map. I have to draw may GMSPolyline on map. After on a particular event i have to remove only all GMSPolyline, so how can i do that...? As GoogleMaps/documentation/ios say to use two method to do it. 1. [mapView_ clear]; 2. Set your GMSPolyline's map property to nil Here 1st approach remove all Marker and Overlay as well. which is i don't want. And for 2nd one i don't think that it is good way to save all poliline's reference. and then set it to

How to get CGPoint of location with google maps sdk for iOS?

社会主义新天地 提交于 2019-12-01 16:29:49
问题 How to get CGPoint of location with google maps sdk for iOS ? I need add pinview on user location. 回答1: It's basically the opposite of this question, for example: GMSMapView* mapView = ...; CLLocationCoordinate2D coordinate = ...; ... CGPoint point = [mapView.projection pointForCoordinate: coordinate]; 回答2: Ok, according to your question do you want to convert the userlocation into the cgpoint, is that.. try use this. CGPoint newCenter = [self.map convertCoordinate:coord toPointToView:self

How put Google MapView in UIView?

无人久伴 提交于 2019-12-01 15:11:21
问题 I'm trying to put Google MapView in UIView but I get nothing displayed. My code, *.h #import <UIKit/UIKit.h> #import <GoogleMaps/GoogleMaps.h> @interface ViewController : UIViewController @property (weak, nonatomic) IBOutlet UIBarButtonItem *btnLocate; @property (weak, nonatomic) IBOutlet GMSMapView *mapView_; @property (weak, nonatomic) IBOutlet UIView *mapView; @end *.m GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86 longitude:151.20 zoom:6]; self.mapView_ =

Current Location in Google Maps with swift

点点圈 提交于 2019-12-01 12:14:51
问题 I'm trying to display the user's current location on a google map but in the case below, the map doesn't even get displayed. What should I change to fix this? var locationManager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. //user location stuff locationManager.delegate = self locationManager.requestWhenInUseAuthorization() locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager