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

GMSMapView clear doesn't clear memory

I have a GMSMapView in my app. The app with an open map screen takes 150 mb in memory. At some point I add a lot of polygons. After that the application takes 230 mb. After calling the method [GMSMapView clear] all polygons disappear, but app still…
RPlay
  • 301
  • 2
  • 10
2
votes
0 answers

draw a line between two locations google map swift 3

My api returns two locations with their longitudes and latitudes. I tried to do this but my map is staying in Europe without any action or markers. @IBOutlet weak var mapView: GMSMapView! override func viewDidLoad() { …
AlmoDev
  • 969
  • 2
  • 18
  • 46
2
votes
3 answers

How to check if anyone is enter/left in/from particular boundary area even if application is in background mode or kill mode?

I want to check if anyone enter in allocated boundary then i have to alert that user like "You are entered" and when user leaves then "You left". I am using .KML file for draw boundary in which there are more than latitude and longitude. Here i…
Birju
  • 1,132
  • 11
  • 32
2
votes
3 answers

Xcode 8.1 UI Testing twoFingerTap() fails on Google Maps view

Since upgrading to Xcode 8.1 my UI tests that use twoFingerTap() to zoom out on a Google Maps GMSMapView have been failing with Assertion Failure: Element.swift:135: UI Testing Failure - Unable to find unoccluded area to perform event. The message…
Alex Curylo
  • 4,744
  • 1
  • 27
  • 37
2
votes
0 answers

how to release object of GMSPolygon in GMSMapView?

I am working with GMSMapView, in which i need to draw around 2k GMSPolygon at a time. App memory increases drastically as soon as this drawing process starts. All this polygons are stored into an array so we can clear those polygons individually, By…
PiyushRathi
  • 956
  • 7
  • 21
2
votes
0 answers

load GMSMapView in uitableviewcell in background thread

I want to load the gmsmapview in the view inside the cell. Below code works proper. But it tableview scroll is not smoth. Because of the everytime the mapview get load and it take time. Is there any other option to load mapview in background thread…
iOS developer
  • 131
  • 1
  • 1
  • 9
2
votes
3 answers

Invalid resource directory name in android

I am using android studio, I added gms library in my android project. And after build I got error Error:Execution failed for task ':app:mergeDebugResources'. > D:\Android\Mejodo\app\src\main\res\values-11: Error: Invalid resource directory name I…
Keval Patel
  • 925
  • 4
  • 24
  • 46
2
votes
2 answers

How can I center the GMSMapMarker view in a coordinate

Is there a way to center the orange arrow (a GMSMapMarker) in a coordinate, changing the view frame or something? I'm using Google Maps for iOS. I can rotate the view with an angle, but I want to set the view's center in a custom coordinate.
Jimmy
  • 873
  • 3
  • 12
  • 29
2
votes
0 answers

Google Maps GMSTileDataCache ios 8 crashes in distribution mode on device, not in Simulator

I have tried everyone else's solutions to this Google Maps problem with no success. It runs fine in my iPad or the Simulator with distribution or development profile. But when I send the app to hockeyapp and download from there, this is the…
Bob Lissner
  • 255
  • 4
  • 17
2
votes
2 answers

infowindow not displaying with marker in didTapAtCoordinate method

i am trying to show infowindow and marker both simultaneously. code -(void)set_markerOnMap:(double)lat longitude:(double)lon{ GMSMarker *marker = [[GMSMarker alloc] init]; marker.title = @"Location selected"; marker.position =…
Bandish Dave
  • 791
  • 1
  • 7
  • 27
2
votes
1 answer

Track distance travelled by user by CLLocationManager or GoogleMap-IOS

I am using GoogleMap-IOS-1.8.1 SDK for showing map. I have to calculate walking distance travelled by user. After searching i will try to use CLLocationManager's method - -(void)locationManager:(CLLocationManager *)manager…
Gaurav Pandey
  • 1,953
  • 3
  • 23
  • 37
2
votes
1 answer

Google Maps SDK not showing all places

I am using Google Maps SDK to show map in my app. Everything is working fine except the fact that my mapview looks empty, cause there are not all places are shown. When I open same location from google map app all places likes Shops, Offices,…
demonofthemist
  • 4,081
  • 4
  • 26
  • 45
2
votes
2 answers

Displaying current location on Google maps

I have an iOS app that uses Google Maps SDK to display a map within my app. I have managed to get the map displaying but I dont know how to set the camera or the marker to the users current location. I have hard coded the coordinates just to test is…
heyred
  • 2,031
  • 8
  • 44
  • 89
2
votes
4 answers

GMSMarker iOS issue

I use this code to create marker on Google Map for iOS. self.mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera]; self.mapView.myLocationEnabled = YES; self.mapView.accessibilityElementsHidden = NO; self.mapView.frame =…
Paul T.
  • 4,938
  • 7
  • 45
  • 93
2
votes
2 answers

How do I prevent 'GMSMapView' from Infinite horizontal scrolling?

How do I prevent 'GMSMapView' on IOS 7 from Infinite horizontal scrolling? I am using a 'MKTileOverlay' and 'kGMSTypeNone' to show a custom image which stretches all over the world. (When the user scrolls to the left the image is repeated again. I…
jack
  • 1,861
  • 4
  • 31
  • 52