google-maps-sdk-ios

How to show a Info window in iOS Google maps without tapping on Marker?

痞子三分冷 提交于 2019-11-28 06:20:20
I am new to iOS development. This is regarding Marker info window in Google Maps iOS SDK. I understand, we can create a marker with info window using GMSMarkerOption. GMSMarkerOption *myLocationOption = [GMSMarkerOption alloc]; myLocationOption .title = @"My Location"; myLocationOption .snippet = @"Lat:...., Lang:...."; [mapView addMarkerOption:myLocationOption]; As per the above code, Marker displayed in the Map View as expected. And tapping on marker shows the "My Location" info window in Google maps which is good. Is there anyway we can show the info window programmatically when the user

how to get current location in google map sdk in iphone

大憨熊 提交于 2019-11-28 04:53:00
问题 I want to set camera on current location and zoom level upto 10. So I have written code like this and for current location i get hint from this post. How to use delegates in Google map API for IOS 6 here is my code mapView_=[[GMSMapView alloc]initWithFrame:CGRectZero]; CLLocationCoordinate2D currentPosition = mapView_.myLocation.coordinate; GMSCameraPosition* camera = [GMSCameraPosition cameraWithTarget: currentPosition zoom: 10]; mapView_.camera = camera; mapView_.delegate=self; mapView_

Google Maps SDK for iOS trying to run on iOS 4.3

拜拜、爱过 提交于 2019-11-28 04:32:55
问题 I successfully integrated the sdk with my app. My app is intended to run with Google Maps sdk for iOS6 , and with Apple UIMapKit for iOS 4.3 and 5.x . Since I added the google maps framework, ios 4.3 won't run anymore. I changed the GLKit.framework and GoogleMaps.framework to "optional", and I get dyld: Symbol not found: _NSFileProtectionCompleteUntilFirstUserAuthentication before the app even starts. need your help :-) 回答1: My app runs okay on iOS 4.3, with GLKit.framework and GoogleMaps

How to obtain country, state, city from reverseGeocodeCoordinate?

血红的双手。 提交于 2019-11-28 04:23:45
GMSReverseGeocodeResponse contains - (GMSReverseGeocodeResult *)firstResult; whose definition is like: @interface GMSReverseGeocodeResult : NSObject<NSCopying> /** Returns the first line of the address. */ - (NSString *)addressLine1; /** Returns the second line of the address. */ - (NSString *)addressLine2; @end Is there any way to obtain the country, ISO country code, state (administrative_area_1 or corresponding one) from those two strings (valid for all the countries and all the addresses )? NOTE: I tried to execute this piece of code [[GMSGeocoder geocoder] reverseGeocodeCoordinate

error unrecognized selector sent to class while adding Google Map SDK to iOS6

北慕城南 提交于 2019-11-28 03:09:22
问题 This is a single view application and I followed the instruction given at link https://developers.google.com/maps/documentation/ios/start for adding google map SDK to iOS6. ERROR Is: unrecognized selector sent to class 0xe2b0 2013-02-07 15:21:29.788 mapApp[2061:12e03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GMSCameraPosition cameraWithLatitude:longitude:zoom:]: unrecognized selector sent to class 0xe2b0' AppDelegate.m - (BOOL)application:

Customize Google Maps blue dot for current location

人走茶凉 提交于 2019-11-28 03:07:11
问题 I'm using a 2013 version of Google Maps SDK for iOS. I would like to customize the default blue dot for current location with another icon or pulsing circles around. I know we can do that with mapView:viewForAnnotation: in MKMapView, but I can't found out how to do it with Google Maps. 回答1: There is no way to do this with current version of the SDK (1.4.3), and actually there is an open issue with this request: Look here. As a work around, you can hide the default button with: _map

not able to use Google map sdk in ios

不羁岁月 提交于 2019-11-28 01:46:39
问题 I am working a simple iOS app into which I am integrating Google Maps. but not getting any result . i have used this steps step 1 :i have downloaded Google Maps Mobile SDK from this link sdk ios step 2: Create an API project in the Google APIs Console. step 3: Select the Services pane in your API project, and enable the Google Maps SDK for iOS. This displays the Google Maps Terms of Service. getting Active status Google APIs Console. step 4:i Selected the API Access pane in the console, and

<GoogleMaps/GoogleMaps.h> file not found Google Maps SDK for iOS

允我心安 提交于 2019-11-28 01:11:22
Yesterday I recived an email from google saying that I could acces to the map api for ios, I generated my key from the app console and I follow the steps of https://developers.google.com/maps/documentation/ios/start but xcode throw this error. #import <GoogleMaps/GoogleMaps.h> //file not found Thanks for your support. It is normal that appears the Headers executable instead of the folder? SOLVED! Make sure you unzip the SDK with something which understands symbolic links. GoogleMaps.framework/Headers is a symbolic link to GoogleMaps.framework/Versions/A/Headers . When I unzip it on my Mac the

How to setRegion with google maps sdk for iOS?

眉间皱痕 提交于 2019-11-27 20:19:46
How to setRegion with google maps sdk for iOS? I want set zoom for location and radius of markers. UPDATE: The original answer below is obsolete as of version 1.2 of the SDK - you can now use the fitBounds: method of the GMSCameraUpdate class: https://developers.google.com/maps/documentation/ios/reference/interface_g_m_s_camera_update Original answer: The MKMapPoint type in MapKit defines a 2D projection of a map. Although the actual values of the projection are meant to be opaque, they turn out to be equivalent to pixels at zoom level 20. This can be used to convert lat/lon values to pixels,

Adding Click Event on InfoWindow/Marker in Google Maps SDK for native iOS/objective C

半城伤御伤魂 提交于 2019-11-27 19:28:14
Simple Question I´m working on an App for iOS where I embedded the new Google Map for native iOS. Everything works fine except one problem where I can´t find a propper solution for native IOS/ Objective-C neither here nor at google (if there is one please show me and sorry for annoying you) What I want: I want the User to Click on the Marker that opens the Info Window. After If he clicks or taps on the Info Window it should open a New UIView with further Informations. How can I do that? Thanks for advices 1.conform to the GMSMapViewDelegate protocol. @interface YourViewController ()