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
1
vote
0 answers

Map is not shown but marker with given location is visible in swift

I am implementing GoogleMaps into my app, where I am adding API keys from GoogleConsole into delegate and showing location on map. I am able to see location with Marker, but map is not seen, it shows white screen only. Following is the code in…
Sagar
  • 1,286
  • 3
  • 19
  • 34
1
vote
0 answers

GMSMapView animateWithCameraUpdate causing UI issue

[self->gmsMapView animateWithCameraUpdate:[GMSCameraUpdate fitBounds:self->mapBounds withPadding:50]]; mapBounds have many points. animateWithCameraUpdate causing some space on top of mapview and on tapping any where on map it adjust mapview to…
1
vote
0 answers

What is the default coordinate of GMSMapView

I am using Google Maps iOS SDK. I have installed the pod 'GoogleMaps'. I have done the instantiation of Google Maps Services with Google API Key in App delegate. I have created a UIView in storyboard and changed the view's class to GMSMapView and…
Banu
  • 29
  • 4
1
vote
0 answers

Android MapView no longer working, even after using updated google tutorial

I followed the tutorial step by step to setup google maps on my android app, but I keep receiving this error: ```W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found. I/DynamiteModule: Considering…
TheLetch
  • 375
  • 1
  • 4
  • 15
1
vote
0 answers

Google Maps iOS SDK Route Preview/Snapshot

I have a task to build a preview of a route in UITableViewCell. Inserting GMSMapView in each cell doesn't sound good to me because I'm worried about performance, so the question is there any way how to get a route snapshot? Thanks!
Roman Simenok
  • 530
  • 7
  • 22
1
vote
1 answer

Determine proper zoom level on GMSMapView to fit all the locations needed?

In my iOS app I'm using GoogleMaps and APIs for maps and I'm not very familiar with it. I know that with iOS native MKMapView you can set a visible map rect to fit all the points needed at a proper zoom level, like described here: Zooming MKMapView…
Eugene Gordin
  • 4,047
  • 3
  • 47
  • 80
1
vote
0 answers

GMSMapView: center map with radios

How do I position a camera of a GMSMapView, so it will be positioned in a predefined center and be zoomed out to show a radius? let mapView: GMSMapView let centerLocation: CLLocation let radius: CLLocationDistance mapView.camera =…
Luda
  • 7,282
  • 12
  • 79
  • 139
1
vote
1 answer

mapView: GMSMapView! nil causing the app to crash (swift)

I'm completely new when it comes to use Google Maps SKD for iOS and I have the following problem: My app uses Firebase and the MapVC is the first VC if the user is logged in. I set a UIVIew in the storyboard with the size I wanted and made its class…
1
vote
2 answers

Speed label value not changing as user drives car

I am new to Swift. I had implemented Google maps sdk also I want to display the speed when the user starts moving or driving his/her car. I am using CLLocationSpeed and storing it in a variable. Right now I am getting the speed value when user…
Deven Nazare
  • 538
  • 5
  • 24
1
vote
1 answer

How to clear polyline as the user walks through the road

I am new to maps technology. I am using Google apis to the the json data to fetch the routes on the map using the polyline. I need some help regarding the polyline. I want to clear the path of polyline as per users drives through the route. I tried…
Deven Nazare
  • 538
  • 5
  • 24
1
vote
1 answer

How to change the theme of Google map from Night mode to Standard mode on button click in swift

Need some help regarding the themes of the Google map sdk . I have used a JSON file name as style2.json for calling the night mode of google map . The theme is changing properly from standard to the night mode . The only issue is i want to…
Deven Nazare
  • 538
  • 5
  • 24
1
vote
2 answers

How to draw routes on GMSmap view swift (not straight) using google api Swift

I am trying to draw route on mapview using the google direction API . I am using the solution from the stackoverflow itself but i am getting some errors regarding intializers . Also will the directions route will be same as google map itself or a…
Deven Nazare
  • 538
  • 5
  • 24
1
vote
2 answers

Swift - GMSMapView animate(toLocation:) / animate(to:CameraPositon) not working

This is how I init the map - GMSMapView class ViewController: UIViewController { var map = GMSMapView() override func viewDidLoad() { super.viewDidLoad() setupGoogleView() } private func setupGoogleView() { guard…
Toto
  • 593
  • 7
  • 20
1
vote
1 answer

Google copyright information not showing in GMSMapView in iPhone but shows in iPad

I am trying to submit an app to the App Store but it got rejected because the iPhone view of the Map doesn't have the necessary copyright information. I checked the code which is in Objective-C and couldn't find anything that hides the Copy Right…
1
vote
2 answers

error: cannot access zzbgl. class file for com.google.android.gms.internal.zzbgl not found

I want to show location of places in my app. I get compile error of cannot access zzbgl This is my gradle file : dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) //noinspection GradleCompatible implementation…