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

How to make my GMSPolygon Tappable in Swift using Google Maps API

Google Maps API works, all binary libraries linked, -Obj in target's "other linker flags" included and objc header file constructed, and this code is basically taken straight off the google developers demo for how to add event tapping. Yet, for some…
1
vote
0 answers

iOS- Clear Google Map data without animation

I am implementing Google map, I need to clear map data (all Polylines + markers) after every some on seconds (30-50 seconds). As we know that we can do it with [yourMap clear]; But when I do this, then Google map little animates (just after called…
Ravi
  • 800
  • 2
  • 12
  • 28
1
vote
3 answers

How do I set the size of Google Maps app within my ViewController?

I started a brand new Single View project with just Google Maps SDK being integrated in it. Right now it spans over all the screen (full-size), which I believe is the default setting. I want to reduce it so it doesn't take up space on the top bar…
konyv12
  • 716
  • 2
  • 8
  • 23
1
vote
2 answers

How to add Multiple custom marker on google maps and how to change custom marker when it taped and untaped

I want to show multiple number of markers on goolemaps which is of different colours say red, green ,orange ,black marker shown in the below image.I have to show the price in the marker when I select some marker then Marker image must change same…
1
vote
1 answer

Prevent GMSMarkers from Scaling on iOS?

I am using GMSMarkers on iOS with the Google Maps API. I have a GMSMarker with a PNG image and no matter my zoom level on the map view the GMSMarker keeps its size respective to the screen. If I zoom in it is 30 points across the screen, and if I am…
brettfazio
  • 1,136
  • 10
  • 25
1
vote
0 answers

Not showing correct view after zooming on GMSMap

I have been using GMSMap in my app. I am showing current location in Map. But after zooming the Map it does not show city and state, also path is not visible in the map. I want to I have zooming on map and clear map in the present states and city's.…
user 12345
  • 23
  • 1
  • 8
1
vote
1 answer

GMSMapView not showing tiles outside of xcode debug session

I am using GoogleMaps iOS SDK (version 2.1.1) and I am using GMSMapView to display a map. On application:didFinishLaunchingWithOptions: the GMS api is initialized by calling: GMSServices.provideAPIKey("key") where: key is the key from…
DCDC
  • 486
  • 5
  • 9
1
vote
1 answer

Google maps sdk - doesn't move the view to new point

Seems to be a very simple task but for some reason it doesn't work. I init the map and place the 1st location this way: self.view = self.mapView self.mapView?.isMyLocationEnabled = true let KBPLocation =…
Tung Fam
  • 7,899
  • 4
  • 56
  • 63
1
vote
1 answer

GMSMapView show GMSMarker count when zoom in or out in iOS

I'm using GoogleMaps in iOS to show the merchants location and i successfully placing all markers based on merchants location. Now my requirement is, i want to show markers count while tapping to zoom out or zoom in as shown below. Please guide…
Lokesh Chowdary
  • 816
  • 5
  • 22
1
vote
1 answer

GMS round icons

I'm implementing a map with google maps and for every marker I have an image. My question is: how can I make the icon round? I try with classical layer.cornerRadius but it didn't work. viewDidLoad self.artistImageView = [[UIImageView alloc]…
1
vote
4 answers

Google Maps API (GMS) map doesn't show up

Im trying to make the map automatically follow the user (location) but somehow the app either it crashes (no error message) or the map doesn't show up when I start up the app. What have I done wrong? I have tried without the locationManager func,…
Victor
  • 1,603
  • 4
  • 17
  • 24
1
vote
1 answer

Find Inner most Polygon using actual Area from array of nested Polygon

I have Array of GMSPath and have Coordinate. I want to find out Path in which this Coordinate falls. I am able to find out total polygons in which this location falls. (Using this https://stackoverflow.com/a/38826411/2225439) Everything is working…
Mrug
  • 4,963
  • 2
  • 31
  • 53
1
vote
0 answers

iOS Swift (Xcode) - Initializing Class stops script without error (GMSCircle)

I have a strange issue when trying to initialize a GMSCircle class from the Google Maps SDK. I have this function in my MapViewController which contains a GMSMapView: func createCircleOnMap(map: GMSMapView, circleCenter: CLLocationCoordinate2D,…
sean
  • 3,484
  • 5
  • 27
  • 45
1
vote
1 answer

Is it valid to use post notification to track location updates

Can we use the 'post notification' for location updates to plot current location on google maps?? Or any better way to implement other than this ? Although i wish not to use KVO for @"Mylocations" in googlemaps. In…
1
vote
0 answers

GMSMarker add animation like iOS Annotation pin

I am using Google maps in my iOS app and i want to add animation to GMSMarker like iOS default Annotation pin which comes from top and get placed nicely over the map. Thanks!
Desert Rose
  • 3,376
  • 1
  • 30
  • 36