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

GMSGeocoder - how to set response language

When using my app in a foreign country, the google GMSGeocoder is returning the response in local language automatically. how can I set it to always return the the response in English? Im using GMS SDK 1.7 and my code is something like…
Boaz Saragossi
  • 958
  • 10
  • 32
9
votes
2 answers

Video is not plying on GMSMarker

I am working on play video on GMSMarker pin and below is my code. The display and hide/show pin view, everything work fine. Except video not play. I am using story board with pinview. @interface MapViewController () @property…
Thukaram
  • 1,085
  • 2
  • 13
  • 33
9
votes
2 answers

Animate Map to Location is Not Working Google Maps iOS

import UIKit import GoogleMaps import FirebaseDatabase import GeoFire class MapViewController: UIViewController, CLLocationManagerDelegate, GMSMapViewDelegate { var mapView = GMSMapView() var locationManager: CLLocationManager! let…
ch1maera
  • 1,369
  • 5
  • 20
  • 42
9
votes
3 answers

UITapGestureRecogniser in GMSMapView

I am creating an app using swift. In one of my ViewController, I have a GMSMapView that I create programatically. I want user to have the capability triggering an action when clicking on the map. What I have done : import UIKit class…
soling
  • 303
  • 1
  • 3
  • 11
8
votes
2 answers

Positioning camera that shows two places in GMSMapview iOS

I am using Google Map service GMSMapview in my iOS Application. In that I have two CLLocationCoordinates. One is Current Location and other is Destination Location. I am trying to fit the map within those two places. But the camera position is not…
Maniganda saravanan
  • 2,188
  • 1
  • 19
  • 35
8
votes
2 answers

How to add GMSMapView in Storyboard in IOS

https://developers.google.com/maps/documentation/ios-sdk/utility/marker-clustering I am working for map clustering . In map clustering private var mapView: GMSMapView! is used for mapView but couldn't find any GMSMapView! in storyboard connection…
arif hasnat
  • 171
  • 4
  • 11
8
votes
3 answers

GMSMapView Energy Impact

I'm currently using a GMSMapView in my swift app, and the energy impact is never decreasing ( as the CPU usage or Memory usage ). Did anyone already faced this issue ? Using Google Maps 2.0.1
CZ54
  • 5,488
  • 1
  • 24
  • 39
8
votes
2 answers

GMSMapView animateToCameraPosition zoom in - zoom out animation

I am using Google maps services in iOS (Swift) and Android. In android, the map view has a method called animatreCamera that has an animation in which the movement has a "zoom out - zoom in" effect (if both cameras have the same zoom, the map view…
Oscar Vasquez
  • 465
  • 2
  • 6
  • 14
8
votes
1 answer

how to show an arrow on mapview showing the driving direction

I want to show an arrow image on GMSMapView(i am using google maps sdk). Now if i am driving(arrow is showing my current location) and i have to take left turn then i have to change bearing of mapView. But i have no idea how to do this. I am…
Virat Naithani
  • 783
  • 12
  • 31
7
votes
2 answers

GMSMapView Draw Custom Polyline in Swift

I made a map view with GMSMapView and I wanted to draw a polyline according to the touch of a finger. but this feature makes me stuck because I have not been able to find the appropriate reference. in my case example like the result domain app that…
Fadielse
  • 381
  • 2
  • 12
7
votes
1 answer

Get all GMSMarker from mapview and remove all marker without using mapview.clear()

I have drawn path with marker in google map. So the path is static but marker needs to change their positions. How can I remove all markers without using mapview.clear(), because it will clear my path also from the map. Any solution?
Rushi trivedi
  • 737
  • 1
  • 15
  • 37
7
votes
2 answers

Swift Error - use of unresolved identifier 'kGMSMarkerAnimationPop'

I am getting this error use of unresolved identifier 'kGMSMarkerAnimationPop' when I use the following code in Swift 3: let camera = GMSCameraPosition.camera(withLatitude: location.coordinate.latitude, longitude: location.coordinate.longitude,…
Krishna Vivekananda
  • 257
  • 1
  • 5
  • 11
7
votes
1 answer

How to tap on ios google map marker programatically or show info window of marker?

I am working with Google Maps iOS SDK with multiple markers which will show marker info window on marker tap. Below code works for multiple markers and marker displayed in the Map View as expected. Its also show the marker info window on marker…
Sid Mhatre
  • 3,272
  • 1
  • 19
  • 38
7
votes
2 answers

How to rotate GMSMarker in the direction which user is moving in Swift?

I am using this code. let marker = GMSMarker() marker.position = coordinates marker.tracksViewChanges = true marker.icon = UIImage(named:"car") marker.appearAnimation = kGMSMarkerAnimationNone marker.map = mapView location manager…
Uma Madhavi
  • 4,851
  • 5
  • 38
  • 73
7
votes
6 answers

Google Maps ambiguous use of a GMSMapViewType

I just upgraded to Xcode 7.1. When I try to set the mapType of a GMSMapView I get the error Ambiguous use of 'kGMSTypeNormal', Ambiguous use of 'kGMSTypeTerrain', and Ambiguous use of 'kGMSTypeHybrid'. @IBOutlet weak var mapView: GMSMapView! func…
wxcoder
  • 665
  • 1
  • 13
  • 32
1
2
3
22 23