Questions tagged [gmsmapview]

This is the main class of the Google Maps SDK for iOS and is the entry point for all methods related to the map.

This is the main class of the Google Maps SDK for iOS and is the entry point for all methods related to the map.

Click Here for class reference.

332 questions
0
votes
1 answer

How to count total distance covered in GMSMutablePath iOS

I have one full route which walked by user and its Coordinate points. i have create path of it. let path = GMSMutablePath() path.add(CLLocationCoordinate2D(latitude: latNew, longitude: longNew)) //Adding here multiple locations. Showing path to…
Solid Soft
  • 1,872
  • 2
  • 25
  • 55
0
votes
0 answers

Google Custom Detail marker iOS

I wanna create the custom detail marker like shown in the image below. But the issue is how to handle the size of the detail view and its postion.
PAn Kaj Khatri
  • 539
  • 1
  • 6
  • 22
0
votes
2 answers

Changing GMSMarker icon doesn't work

I'm trying to change GMSMarker icon with Moa but marker is still showing default icon. This is my code: override func viewDidLoad() { super.viewDidLoad() locationmanager.delegate = self let authorizationStatus =…
Amir_P
  • 8,322
  • 5
  • 43
  • 92
0
votes
1 answer

GMSMapView not showing polyline while used as subview

I am using GMSMapview to display the polyline. If I use self.view it's worked perfect. let camera = GMSCameraPosition.camera(withLatitude: 0, longitude:-165, zoom:2) let mapView = GMSMapView.map(withFrame: self.gMap.bounds,…
Mohanmoorthy
  • 129
  • 5
0
votes
0 answers

Swift Disable UIGestures for subviews

I'm having some troubles with uigestures on subviews. I have a MapView on a UIViewController and a subview with a tableView which is hidden. So when I run the app, I can't use gestures on the MapView (scroll, zoom, etc) because the tableView is…
Francisco Perez
  • 245
  • 1
  • 4
0
votes
1 answer

Get the Location Name in onLocationChanged(Location location) method

I want to get the location-name inside onLocationChanged(Location location)() method. We can get the Latitude and Longitude from onLocationChanged(Location location) as location.getLatitude(); and location.getLongitude(); But i need the location…
0
votes
0 answers

How to add UITapGestureRecognizer on GMSMapView ios

I've given blinking effect on GMSMapView where the pin drop. So as per requirement i've used 5 images for blinking effect.Now i want that if i click on image than screen should be navigate. So i've added UITapGestureRecognizer. But its not…
0
votes
1 answer

Getting Access Token but not allowed to sign in

So a buddy of mine is helping me test my app out. However, after he gets the allow or deny screen, it doesn't let him to actually sign into the app even though we are getting an access code. The following errors show up in the run dialog when I ran…
0
votes
2 answers

Add single tap recogniser is not working in GMSMapview

I am using GMSMapview and when I am implimenting single tap guesture on map then it is not working. how can I do this? tapRec = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(mapDidTap:)]; tapRec.delegate =…
Ankur
  • 1
  • 4
0
votes
1 answer

Google Maps API IOS cannot load new coordinates with custom UIView

I have a problem with loading coordinates for a custom UIView that has been linked through IBOutlet and subclassed as GMSMapView. The mapView loads but it always shows the wrong location every time (always London as I presume that is the default).…
user3796209
  • 449
  • 6
  • 18
0
votes
1 answer

How to get the long pressed point in MapView. Google Maps SDK. Swift

For the mapView, I create it by self.view.addSubview(mapView!), so I guess that's why I can't override the touchesBegan function to detect the touch point. There is a function called didLongPressAtCoordinate in mapView delegate, but it only contains…
Pak Ho Cheung
  • 1,382
  • 6
  • 22
  • 52
0
votes
0 answers

How to draw the walking dotted circle path using GMSMapView?

The latest iOS Google Map App has dotted circle paths when a user searches for walking directions. How can I achieve the same effect(dotted circle path) using GMSMapView in iOS? Any suggestions or comments or opinions would be greatly…
xiaowoo
  • 2,248
  • 7
  • 34
  • 45
0
votes
2 answers

Swift & Firebase: Retrieving location data from Firebase to show on Google map marker

I'm making an app which collects info on restaurants from users as logs and shows the collected restaurants depending on location if another user requests them. The logging part is done. The app can receive input (photos, comments, ratings etc) on a…
0
votes
1 answer

iOS 10 GMSMapView showing my location icon with white background

This issue didn't show up in previous iOS versions. But in iOS 10 beta, the user location icon is displayed wrong. The blue dot is showing its frame in a different background instead of clearColor. Is this an issue with iOS10? Any workaround to…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
0
votes
1 answer

GMSMapView tracking mode heading

In my app, I am using GMSMapView, and I would like to change tracking mode. In iOS MapKit, I can change the tracking mode to MKUserTrackingModeFollowWithHeading, but don't know how to change it in GMSMapView. In the app Google Maps, it is working…