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
7
votes
6 answers

Google maps iOS sdk get tapped overlay coordinates

i'm working with Google maps iOS sdk. i want to get the coordinates of the touched point when user taps an overlay. there is this delegate method: - (void)mapView:(GMSMapView *)mapView didTapAtCoordinate:(CLLocationCoordinate2D)coordinate but…
7
votes
1 answer

didChangeCameraPosition get bounding box/ rectangle of available coordinates

How can I retrieve the GMSCoordinateBounds from a GMSCameraPosition? I want to know the visible coordinates on the map (at least Northeast/Southwest points) everytime the user moves the camera as in: (void)mapView:(GMSMapView *)mapView…
apinho
  • 2,235
  • 3
  • 25
  • 39
7
votes
4 answers

Detect GMSMapView zoom

Is there a way, to detect zoom (pinch and double tap) in this Google Map Services component? - (void)mapView:(GMSMapView *)mapView willMove:(BOOL)gesture Above method fire regardless of the movement made.
Cyril
  • 1,649
  • 1
  • 17
  • 32
6
votes
3 answers

Custom user location dot in Google maps for iOS (GMSMapview)

Is there an official way to set a custom user location dot in Google maps for iOS (GMSMapView)? Is there a known way to "hack" it? Like iterating through all subviews and layers and fish the blue dot? Even if you can't customise its appearance, can…
mllm
  • 17,068
  • 15
  • 53
  • 64
6
votes
3 answers

How can I check if a CLLocationCoordinate2D is inside four CLLocationCoordinate2D Square? in Objective C with Google Maps

I want to test if a CLLocationCoordinate2D is inside a Square created from other four CLLocationCoordinate2D I have a struct like this: typedef struct { CLLocationCoordinate2D southWest; CLLocationCoordinate2D southEast; …
Jimmy
  • 873
  • 3
  • 12
  • 29
5
votes
2 answers

W AppOps : Noting op not finished: pkg com.google.android.gms

Upgrading to RN 0.60.5 and the app is keep stopping. I run adb logcat and got a lot of errors which refer to com.google.android.gms package. some of the errors: 09-04 19:38:08.102 2893 3069 I MicroDetectionWorker: #startMicroDetector…
Tal
  • 613
  • 1
  • 7
  • 19
5
votes
1 answer

How to update a GMSMapView with GMSCameraUpdate

I call animateWithCameraUpdate on a GMSMapView expecting it to change the map view to show the new GMSCoordinateBounds but it has no effect. My map loads in a UICollectionViewReusableView to initially display Western Europe: @IBOutlet weak var…
Peter Todd
  • 8,561
  • 3
  • 32
  • 38
5
votes
1 answer

How to know which colour is support for GMSMarker?

I want to create 20 marker with different on google map. When i set UIColor from RGB some colour do not match. teamColor = [UIColor colorWithRed:255.0/255.0 green:250.0/255.0 blue:229.0/255.0 alpha:1] marker.icon = [GMSMarker…
user2955394
  • 1,063
  • 4
  • 17
  • 34
5
votes
1 answer

Default show the title of marker in Google Map API

I have added a marker as the following: marker = [GMSMarker markerWithPosition:desLocation]; marker.title = @"Title"; marker.appearAnimation = kGMSMarkerAnimationPop; marker.snippet = @"Snippet"; [marker setMap:mapView]; It's OK!! But if i want to…
Jonny Vu
  • 1,420
  • 2
  • 13
  • 32
5
votes
2 answers

How to set center location of GMSMapView object defined at Storyboard

I want to initialise the center of the map to a custom location. Here is the code that I use for initialization: -(void)viewDidLoad{ [super viewDidLoad]; //mapView GMSCameraPosition *camera = [GMSCameraPosition…
ankakusu
  • 1,738
  • 8
  • 26
  • 37
5
votes
1 answer

Google Maps iOS SDK occasional crash when destroying GMSMapView

In my app I occasionally get a crash when navigating away from a view with a GMSMapView in it (popping it from my UINavigationController). It's crashing on thread 10, and here's the crash info: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception…
5
votes
1 answer

How to apply animations to GMSMarker

I’m changing my app by migrating iOS maps to google maps using Google Maps SDK for iOS V1.1.0 and I’m trying to animate the markers while adding/removing but I didn’t find any suggestions in the documentation related to this, Please suggest me how…
4
votes
1 answer

Move camera to bottom GMSMapView IOS

Currently position of camera in map at center always. Please check screen 1 for that. I want to fix the camera to bottom with offset, just like screen 2. Any help will be greatly appreciated. let carBearing =…
AmitSri
  • 1,209
  • 1
  • 20
  • 48
4
votes
1 answer

Cannot apply style to GMSMapView

My code is as below: /* Map */ mapView = GMSMapView() mapView.delegate = self mapView.mapType = .normal do { // Set the map style by passing the URL of the local file. if let styleURL =…
user3431429
  • 101
  • 1
  • 7
4
votes
0 answers

Google maps beam to show user directions/heading in iOS GMSMapView

Is it possible to use a shining blue beam instead inconspicuous arrow in iOS GMSMapView? This new feature is available for Google Maps on Android. Anyone experimented or tried this new feature in iOS? Kindly share your thoughts please. Thanks!
Antony Raphel
  • 2,036
  • 2
  • 25
  • 45
1 2
3
22 23