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
44
votes
4 answers

GoogleMaps API KEY for testing

I'd like to add an API_KEY for GoogleMaps for testing and in documentation I've read this : Tip: During development and testing, you can register a project for testing purposes in the Google Cloud Platform Console and use a generic, unrestricted…
Skizo-ozᴉʞS ツ
  • 19,464
  • 18
  • 81
  • 148
34
votes
12 answers

Drawing Route Between Two Places on GMSMapView in iOS

I am Developing an iOS Application. In that Application i am having 2 Fields From and To. I Entered Address using Google Auto Complete API.and also i am able to Getting the Latitude and Longitude of the 2 places and able to show markers on the…
Suresh Peddisetti
  • 3,782
  • 3
  • 23
  • 26
33
votes
3 answers

GMSMarker icon from center (iOS)

I just switched from Apple Maps to Google Maps. An issue that I can't seem to find an answer to is how do you make the icon for a GMSMarker to start from the center rather then from the bottom of the image. An example of what I mean is the current…
Nicholas Mata
  • 796
  • 1
  • 9
  • 19
28
votes
6 answers

GoogleMaps (GMSView) Won't display in iOS

I have incorporated the following: Tried importing both the GoogleMaps/GoogleMaps.h as well as the GoogleMapsM4B/GoogleMaps.h files through an Obj-C Bridging Header Manually typed out the iOS API key in my AppDelegate.swift…
Avery Bentz
  • 287
  • 1
  • 3
  • 7
25
votes
6 answers

Moving Google Maps Camera to a Location

I'm working with a Google Maps View and I want to add a button to the map that when tapped, will move the camera to a specific location. I currently have a button outlet and an action connected to the button. @IBAction func locationTapped(_ sender:…
ch1maera
  • 1,369
  • 5
  • 20
  • 42
25
votes
6 answers

How to force refresh contents of the markerInfoWindow in Google Maps iOS SDK

I'm returning a UIImageView in - (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker; This UIImageView loads images dynamically through a URL using SDWebImage. As the documentation says about marker info windows: Note: The…
20
votes
6 answers

How to get animated polyline route in GMSMapView, so that it move along with map when map is moved?

I have created animated polyline like CAShapeLayer by following code, I have added CAShapeLayer as sublayer to GMSMapiew but, if I move the map the layer won't moves. where to add the layer, so that it move along with map? func layer(from path:…
Elangovan
  • 1,158
  • 1
  • 9
  • 26
19
votes
8 answers

Rotate GMSMarker in direction at which user facing

I have requirement like on my current location one view will display. It will rotate if device was rotate or location will be change.I research lot but got all the code which have a fix location or angle at some location but i haven't fix location.…
19
votes
6 answers

Remove all GMSMarker from GMSMapView?

I placed 100 GMSMarkers on GMSMapView. How to remove all the GMSMarkers? In Google Sdk Version 1.6 for iOS. Marker array(in GMSMapView (Overlays) file) which will be holding the GMSMarkers list is deprecated. By using this i was removing all…
user3021529
  • 191
  • 1
  • 1
  • 3
13
votes
5 answers

How do I move marker along with moving of Google Map in iOS?

I am displaying a marker in a particular place, along with displaying the current address in the address label on Google Maps. Now, I want to change the location by moving the Google Map, but the problem is that when I am moving the map, I should…
Shilpashree MC
  • 611
  • 1
  • 6
  • 16
13
votes
9 answers

Remove particular GMSMarker from GMSMapview using Google Map sdk in ios

I am integrating google maps sdk. Its all work fine. But how to remove particular Marker(Pin Point) when second will appear.(I am not using Mapkit) I want the following: If i tap on map then one marker pin is generate at that location now if i tap…
jigs
  • 839
  • 1
  • 6
  • 23
11
votes
2 answers

iOS 8 Google Maps SDK myLocation icon bubble graphical glitch

I am learning about the Google Maps SDK and getting to know Swift, and when I create a mapview centered on my location using myLocation = true, the location bubble shows up, but it appears with a square mask around it like this I am not performing…
kidCoder
  • 354
  • 4
  • 17
11
votes
2 answers

Detect A Pan Gesture in GMSMapView

I have a GMSMapView that allows for a handful of gestures inside of it (pan, zoom, etc). I am trying to implement a Facebook style slide out menu from this view. What is the best way to detect a pan gesture from within this view while still allowing…
10
votes
6 answers

GMSMapView not showing anything

I currently have a UIView in my View Controller which I have changed to a GMSMapView in the Interface Builder, but nothing shows up, as shown in the picture below: Here is the code that I am using let lat = 47.07903 let long = -122.961283 …
Sampath Duddu
  • 277
  • 1
  • 5
  • 14
10
votes
5 answers

How to add marker for a map view in google maps sdk for ios in swift

Trying to add a marker to Google map,but the app is getting crashed at while addMarker() function call,Exception details are as follows, Terminating app due to uncaught exception 'GMSThreadException', reason: 'All calls to the Google Maps SDK for…
Naresh Reddy M
  • 1,096
  • 1
  • 10
  • 27
1
2 3
22 23