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

Limit camera only on a ground overlay? Google Map Android API v2

I'm trying to show a ground overlay with markers on it to my users. I'm trying to restrain the view to only this image placed on the map. I want the user to only see the image as a ground overlay placed on the map and not be able to go to the…
Alex Gilbert
  • 63
  • 1
  • 5
4
votes
2 answers

Swift Map styling with GMS

Im using GMS (Google Maps SDK) In my current project, and it looks like this Is it possible to style the map to something like this? and still use GMS.
Victor
  • 1,603
  • 4
  • 17
  • 24
4
votes
1 answer

Google Maps SDK Offline use

In my project i have a ViewController in which I show a map (GMSMapView) with many markers, at some point i save the coordinates of the markers because I want to show the map with the markers when device is offline. Is it possible using google maps…
luisjd
  • 43
  • 2
  • 5
4
votes
4 answers

GMS Map View always showing Europe

I'm trying to use Google Maps SDK to display a map of my current location (Berkeley, CA) as the focus, but regardless of what lat/lon I put in, it always shows Europe, as shown below: Here is the code for the map view: let camera =…
Sampath Duddu
  • 277
  • 1
  • 5
  • 14
4
votes
1 answer

Can I create GMSPath with latitude and longitude I already have instead of pathFromEncodedPath?

I've been following this tutorial that helps me draw route directions(polyline) between 2 tapped places on map. However I don't need to get tapped locations since by the time I want to show user the route, I'll already have latitude and longitude of…
durazno
  • 559
  • 2
  • 7
  • 25
4
votes
2 answers

Add and remove observer for KVO "myLocation" in GMSMapView

I have searched through all the possible solutions but couldn't find the exact one. My problem is : I am using a navigation controller and a viewcontroller with GMSMapView. When I navigate to some other view from the GMSMapView, the app crashes with…
Amrit Sidhu
  • 1,870
  • 1
  • 18
  • 32
4
votes
1 answer

GMSPlace - can I get this from a set of coordinates

I have coordinates from a user tapping the map on the screen. Can I get the GMSPlace from the Google API by using the coordinates. Couldn't find anything in the documents or online that helped. Thanks
PruitIgoe
  • 6,166
  • 16
  • 70
  • 137
4
votes
3 answers

GMSMapView custom my location button image

I would like to know if it is possible to change the my location button image from GMSMapView to a custom image.
apinho
  • 2,235
  • 3
  • 25
  • 39
4
votes
1 answer

GMSMapView: center on coordinate and zoom out to reveal user location

I got stuck on this. I hope someone can give me the right input! I'm showing points of interest (GMSMarkers) using a GMSMapview. At the moment I'm just centering the map on the current POI coordinate using this code (DEFAULT_ZOOM is…
Matteo Pacini
  • 21,796
  • 7
  • 67
  • 74
4
votes
6 answers

hide blue dot while retrieving google map current location in IOS

I am trying to add the default button to return to current Location within google map. I added the button using self.mapView.myLocationButton = YES But not able to hide the blue dot which is not required in my case. If i set…
Arjun K P
  • 2,081
  • 4
  • 20
  • 33
4
votes
0 answers

Does GMSMapView:clear dealloc all GMSMarker objects?

Does the method [GMSMapView clear] dealloc the GMSMarker objects as well or are they still kept in memory. I reckon that the method only sets the property map to nil and the object is still in the memory. Does anyone knows about that? Class…
gpichler
  • 2,181
  • 2
  • 27
  • 52
4
votes
1 answer

Switching the renderer from Apple MapKit to Google Maps SDK

I need to have the possibilty to switch a map view from Apple's MapKit (>= iOS6) to the Google Maps API and back in realtime. In the maps there are a lots of annotations that need to be clustered. Now I'm thinking about the best way to da this. I…
brainray
  • 12,512
  • 11
  • 67
  • 116
4
votes
3 answers

Intercept touches on UIView over GMSMapView

I'm trying to overlay a UIView over a google GMSMapView. The goal is to intercept swipes in order to know when the map is being moved manually. (I know I could check -mapView:willMove: but that gets called regardless of whether the map is moving…
cloudsurfin
  • 2,467
  • 2
  • 25
  • 29
3
votes
0 answers

Reached the max number of texture atlases, can not allocate more for iconView

My question is exactly the same as "Reached the max number of texture atlases, can not allocate more" using Google Maps but I'm using Gif images so instead of icon I'm working with iconView of a marker. Here is the code: let markerGifView =…
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116
3
votes
0 answers

Google maps compass location

How do I change the compass location, using swift, on a google map view? Current answers on Stack Overflow are outdated. Previous answers here: How to change myLocationButton position from a GMSMapView? Moving the google maps compass I tried this…
newswiftcoder
  • 111
  • 1
  • 11