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
2 answers

how to get address from gms marker from google map?

How to get latitude longitude on this method? - (void)mapView:(GMSMapView )mapView didEndDraggingMarker:(GMSMarker )marker; i want to get address when didEndDraggingMarker is called..
Mansi Dobariya
  • 141
  • 1
  • 10
3
votes
4 answers

Google Maps iOS SDK Touch Events

I'm trying to add an UIGestureRecognizer to one the whole google map view. I want to get notified if i touch the map ( not the marker ), but i don't know how. what i did is this inside viewDidLoad: UITapGestureRecognizer* tapRec =…
3
votes
1 answer

GMSMapView default current location image with transparency in iOS 8

The current location image in Google Maps SDK for iOS is opaque for iOS 8. How to change the image or use the same but with transparency?
3
votes
2 answers

Crash while getting my location on GoogleMaps on iPhone

I am writing you because I am stuck with a super strange error. I tried to add GMS on my app, and finally, when I have to get device location, I am stuck with this crash: Terminating app due to uncaught exception 'NSInternalInconsistencyException',…
Bonnke
  • 896
  • 1
  • 12
  • 24
3
votes
1 answer

Google map sdk for IOS 8 does not update location

I'm running on IOS8 simulator and counter this problem: GMSMapView is able to load map but it didn't ask for Location's permission, thus it could not update current user's location. (I did set a custom location, using GPX file) However, GMSMapView…
Pham Hoan
  • 2,107
  • 2
  • 20
  • 34
3
votes
2 answers

Android android.view.InflateException Binary XML file line #16: Error inflating class fragment

Here is MainActivity Class import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import…
Umair Aziz
  • 1,518
  • 1
  • 19
  • 29
3
votes
3 answers

GMSPanoramaView blank screen

I have a data set of coordinates in a KMZ file and I'd like to be able to give a user the option to view the street view with GMSPanoramaView (using the 1.6.0 version of Google-Maps-iOS-SDK). Here's what my code looks like: GMSPanoramaView…
seanoshea
  • 5,556
  • 3
  • 20
  • 28
3
votes
3 answers

Animate marker in Google Maps SDK in iOS

I have an image over a map and I want to give it some linear and rotational motion over the google maps. How can I do it in GMS? Please help me.
khushalbokadey
  • 1,132
  • 1
  • 11
  • 25
3
votes
2 answers

GMSMapViewDelegate Methods Not Being Called?

I am using the Google Maps iOS API. None of the delegate methods are firing. How do I make them work? MapViewController.h: @interface MapViewController : UIViewController @property (strong, nonatomic) IBOutlet GMSMapView…
TestinginProd
  • 1,085
  • 1
  • 15
  • 35
2
votes
1 answer

Swift GMSPanoramaView (Google Maps Street View) - Add a Compass Button

I am using a Google Maps Street View in Swift and am trying to find a way to add a compass button or a constant compass. Simply put, as the user clicks and travels through the streets on the screen, if they hit the compass button at any time it will…
2
votes
1 answer

MapView in react-native-map often zooms out completely to show entire world (rather than using initialRegion value) after upgdade from expo 45 to 46

I've been using react-native-maps in my app for the last two years. Recently, we upgraded from Expo 45 to Expo 46, and now, the map sometimes completely zooms out to show the entire world (rather than using the value in initialRegion). This happens…
Vaibhav Verma
  • 937
  • 1
  • 8
  • 25
2
votes
0 answers

iOS - Animate to a location while showing all the markers in GMSMapView

I want to animate to a specific location while showing all the markers i have pinned on Google map . I am able to animate to a location but it is not showing all the markers. I have tried the following solution (answer link) . I am calling hover(to…
Mohammad Daihan
  • 538
  • 4
  • 15
2
votes
1 answer

Google support Map crashing

Google SupportMapFragment is crashing when executing this ( (SupportMapFragment)getChildFragmentManager().findFragmentById( R.id.map)).getMapAsync(googleMap -> presenter.onMapReady(googleMap, getContext())); with the nullpointer and…
Taha alam
  • 372
  • 3
  • 11
2
votes
1 answer

Google Maps iOS SDK animate map padding SwiftUI

I'm looking to animate my Google Map's padding, as when a bottom sheet appears, the map padding resizes dynamically. The GMSMapView.padding documentation says it can be accomplished with a UIView block based animation, but I'm not sure how that…
Angus
  • 133
  • 1
  • 8
2
votes
2 answers

Map: GMS works, HMS dont; onMapReady not called

I have both GMS and HMS in one android project. GMS version works, but HMS dont call the onMapReady callback. This is the code: private var mMap: HuaweiMap? = null private var mapFragment: SupportMapFragment? = null private fun…