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
3
votes
1 answer

GMSMapView update camera position so that it will always show direction towards top during navigation

I have used bearing property to rotate camera on mapview and not able to position the camera so that it will always show the navigation towards top. Below is the screenshot of google map app, which automatically rotate it self during the navigation…
Anand Suthar
  • 3,678
  • 2
  • 30
  • 52
3
votes
2 answers

GoogleMaps marker OnClick - Xamarin

Hi everyone I am using the GoogleMaps Gms.Maps class to show a map on my app (Xamarin.Android). I am trying to make it so when you click on a marker it will take you to a specific page on my mobile app. however it seems the markers already have on…
broliverparker
  • 217
  • 2
  • 15
3
votes
1 answer

Remove travelled path from GMSPolyline on GMSMapView Swift iOS

I am using google distance api ["https://maps.googleapis.com/maps/api/directions/json?origin=" +start.latitude + "," + start.longitude +"&destination=" + end.latitude +"," + end.longitude + "&alternatives=false" +"&mode=driving&key=" + key;] to get…
Muhammad Usman
  • 200
  • 1
  • 14
3
votes
1 answer

GMSCameraPosition not accurate

I am using GMS to show map locations in my iOS app using the following code. The position of the camera is not centered at marker position but it is slightly north(around 5 miles) of it. How can I center camera position to center on marker? let…
2ank3th
  • 2,948
  • 2
  • 21
  • 35
3
votes
1 answer

How do I overlay a ta GMSMapView with tinted colors over different suburbs?

I am building an app with Swift. I have successfully added a google map to my app as a subview on my main view controller with the following code: let camera = GMSCameraPosition.camera(withLatitude: -33.86, longitude: 151.20, zoom: 6.0) var mapView…
Mark Keane
  • 984
  • 2
  • 11
  • 26
3
votes
0 answers

Bizarre behavior of GMSCameraPosition-GMSMapView

Hy, This is the very bizarre behavior of GMSCameraPosition. The code crashes some time that is written in viewDidLoad, saying EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000008. I am using google maps. Here is the code. - (void)viewDidLoad…
Ketan Shinde
  • 1,847
  • 4
  • 18
  • 38
3
votes
1 answer

How plot new marker (with already plotted markers) on GMS map and set selected?

I'm using Google Maps iOS SDK and placed multiple markers with the marker info window opens when marker click. Now i want to add new marker which is not already plotted on map. I have list view with different places when user clicks on any place out…
user7651652
3
votes
1 answer

GMSMarker bouncing around the corners on GMSPolyline

I am working on a navigation app and tracking user's current movement on an already drawn GMSPolyline. It works good when the user is going straight. Now if, suppose there is right / left turn or a u-turn on the GMSPolyline, now as per my GPS…
NewStackUser
  • 657
  • 5
  • 17
3
votes
1 answer

Google map (GMSMapView) calls didTapMarker delegate's method after a delay

It take a second before didTapMarker is called. Same with didTapAtCoordinate method. I have a project that contains only google map and two pins in it. I try to run it on iOS9 and iOS10, same results. When I add a button it works properly. Looks…
Dmitry L.
  • 128
  • 11
3
votes
0 answers

Google Maps iOS 10 Custom Marker Issue

On the new iOS 10 release, I noticed that my custom GMSMarker views were rendering differently then they used to. I am currently on Google Maps 2.10 which is the latest. My Setup First, I create a GMSMarker in a very basic way just for this…
3
votes
1 answer

Resizable GMSCircle GoogleMaps SDK for iOS

is there any way to resize (shrink and expand) an GMSCircle object? I created GMSCircle and attach it into our maps var cirlce: GMSCircle! let camera = GMSCameraPosition.cameraWithLatitude(-33.86, longitude: 151.20, zoom: 6) mapView =…
Sonic Master
  • 1,238
  • 2
  • 22
  • 36
3
votes
4 answers

How to create my own GMSMarker? (GoogleMaps, iOS) - Swift

I would like to create my own markers because I need to track extra information about them (for example, date added, marker ID)... So I created another class, as follows: class myMarker: GMSMarker { var markerID: Int var…
3
votes
0 answers

How can I move a GMSMarker like uber app car object?

I'm working on a project in which I need to move my GMSMarker on map like uber app does. The problem I'm facing on crossroads were I need to change the heading as well as bearing(rotation) at the end of road. I want my marker should move like: Car…
Prakash
  • 605
  • 6
  • 16
3
votes
2 answers

Check whether GMSPolygon is inside other GMSPolygon or not

I have Many GMSPolygoninside my google map. Now i want to check for one specific polygon that is it inside(fully inside) any of the other polygons. Also need to find out that which other polygons are intersecting with boundaries to this polygon, and…
Mehul Thakkar
  • 12,440
  • 10
  • 52
  • 81
3
votes
0 answers

Adding GMSMarker to GMSMapView crashes on iPhone 6

I have code that loads a map view and places a marker on it. I have basically refactored my code to be Google sample code for adding a GMSMarker. The app runs no problem in the simulator (8.4), but when the marker code is added to the map on my…
Raesu
  • 310
  • 2
  • 15