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
2
votes
0 answers

Marker Title is not displaying on GoogleMapView in iOS Objective C

Hello all I am using GoogleMaps to display multiple markers on mapview. Maps is working fine and it display multiple markers according to coordinate. but it it not displaying the title of the location. I am using the following code: -…
Abhinandan Pratap
  • 2,142
  • 1
  • 18
  • 39
2
votes
0 answers

SwiftUI Button action not working over GMSMapView

I am trying to get my own custom button floating over a GMSMapView. The button draws on the GMSMapView, but the button action is not triggered. The Floating button is written in SwiftUI and this is it: struct MyLocationView: View { …
Arthur Garza
  • 2,031
  • 2
  • 14
  • 17
2
votes
1 answer

Removing travelled polyline from GoogleMaps iOS Swift

I am try to remove travelled polyline from google maps but can't find any proper solution on internet. I've drawn polyline by this, let origin = "\(24.96487181552221),\(67.06045475052892)" //add worker lat long here let destination =…
2
votes
1 answer

How to know if array count is incrementing in didUpdateLocations

I am new to Swift. I am using Google Maps Sdk's method didUpdateLocations to draw a path on the map. I am working on a section regarding the array count. I want to run some functions if the array count is increasing. I am storing lat and long in two…
Deven Nazare
  • 538
  • 5
  • 24
2
votes
1 answer

How can I set the map view to full screen with bottom navigation bar

I want to set the mapview to full screen, I had done every necessary things like setting both the framelayout and the mapview to matchparent but still when i run the app on my phone only a portion(maybe 60dp is the height but the width is…
2
votes
0 answers

GMSPolyline with dot pattern between multiple pins

I'm trying to draw a dotted polyline on GMSMapView. What I've achieved so far is to add a dashed polyline on the map. For which I've written below code: polyLine.strokeWidth = 10 polyLine.strokeColor = UIColor(red: 95/255, green: 89/255, blue:…
Keyur Tailor
  • 424
  • 3
  • 16
2
votes
1 answer

Change Google Map Size Programmatically (Swift)

I am trying to add a Google GMSMapView programmatically but got stuck and would appreciate any help. I want to set the constraints of the Map to the edges of the view. However, when I do this I get an error of, "Unable to activate constraint with…
Ben
  • 3,346
  • 6
  • 32
  • 51
2
votes
1 answer

GMSMapView resize - strange flicker/blink effect

I have a subview including GMSMapView in my controller - initially it's collapsed and takes just a part of screen - then a user can expand it and see the map in fullscreen mode. The code below works however there is a strange flicker at the end of…
Magda
  • 81
  • 1
  • 5
2
votes
2 answers

Custom Marker in Google Map in swift

I'm trying to show my custom view on click of pin in google map. I have mad my custom view for it in xib file and call that file in the delegate method of func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool { But when i run the app…
raheem
  • 689
  • 2
  • 8
  • 16
2
votes
0 answers

Why I need to tap twice a GMSMarker when it is overlapping a GMSOverlay to show its info window?

I have an GMSOverlay in a GMSMapView, so I listen to taps into it with the method: func mapView(_ mapView: GMSMapView, didTap overlay: GMSOverlay) { // Overlay was tapped } Then I want a GMSMarker to be painted over the GMSOverlay, and I listen…
Sergio
  • 1,610
  • 14
  • 28
2
votes
1 answer

Creating a zone following a route using Google map iOS SDK

For my current map based application, I need to have the following features on Google Map iOS SDK User will select a source and a destination. User will put a few turning points on the map to reach from source to destination. User will also provide…
Sauvik Dolui
  • 5,520
  • 3
  • 34
  • 44
2
votes
2 answers

MapView Camera not changing in iOS Swift

I would appreciate some help for my problem, I am creating a view called mapView and have changed its class to GMSMapView. But when I assign the map to this mapView, the layout is perfectly fine but the camera is set to Europe by default, which does…
NewCoder
  • 31
  • 1
  • 5
2
votes
0 answers

This NSLayoutConstraint is being configured with a constant that exceeds internal limits. In Google Maps Custom Info Window

When I am trying to add a custom info window to google map's GMSMarker, then I am getting following error: This NSLayoutConstraint is being configured with a constant that exceeds internal limits. A smaller value will be substituted, but this…
2
votes
1 answer

GoogleMaps : Check if given marker position co ordinate is a road

I have this project which uses GMSKit(GoogleMap kit) in iOS(ObjectiveC) and there is a requirement that some random points are to be generated near the user's current location. I have successfully generated random points but now what I want is to…
Alex
  • 538
  • 3
  • 18
2
votes
1 answer

Can not update UI while making GMSMarkers

Function which initialize GMSMarkers: func makeMarkers (progressHandler: ((String) -> Void)? = nil) { progressHandler?("Инициализируем маркеры...") for device in self.devices { progressHandler?("Инициализируем маркеры: для устройства…
zzheads
  • 1,368
  • 5
  • 28
  • 57