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

Add multiple markers on GMSMapView

I am new to Google Maps and I want to add multiple markers to GMSMapView and infoWindow. My code below for Prop: Property in properties { var latStr = Prop.lat as NSString var latDbl : Double = Double(latStr.intValue) …
dhaval shah
  • 4,499
  • 10
  • 29
  • 42
1
vote
1 answer

GMSSyncTileLayer Class --- How can I pass in my mapView? ..and what exactly is x and y?

So, I have a google map that's declared in an IBOutlet @IBOutlet weak var mapView: GMSMapView! I create my GMSSyncTileLayer in the idleAtCameraPosition function like this func mapView(mapView: GMSMapView!, idleAtCameraPosition position:…
stepheaw
  • 1,683
  • 3
  • 22
  • 35
1
vote
2 answers

Replace blue dot in GMSMapView by an arrow - Swift

I use the Google SDK for an application iOS8 (Swift). I want to replace the blue dot (my location) in a GMSMapView by an arrow witch rotate according to the orientation of the smartphone. How can I do that? EDIT : I managed to see my arrow but I…
BSK-Team
  • 1,750
  • 1
  • 19
  • 37
1
vote
1 answer

iOS : Loading GMSMapView consuming loads of memory and decrease in FPS(Frames Per Second) rate

I have created a google map view where I placed some annotations and placing them at the time of loading, but when I change my camera view continuously, memory consumption gets too high about 200MB. FPS rate also lowers down from 30 to 5or6. My app…
iOSNoob
  • 1,420
  • 2
  • 16
  • 30
1
vote
1 answer

iOS Google Maps API - send a GMSMapview from one view controller in another

I'm relatively new to iOS dev and completely new to using the Google Maps API. I have two separate views that I want to have a mapview. The first one is a scene that allows you to find a location on the map, enter in an address, or use your current…
Jake T.
  • 4,308
  • 2
  • 20
  • 48
1
vote
2 answers

iOS: How to know zoom level of GMSMapView

Hello I want to get current zoom level of Google Map view, like in a condition to check. For example, if(mapView.zoom==18.0) { //code goes here.. } How to get that ?
iOSNoob
  • 1,420
  • 2
  • 16
  • 30
1
vote
0 answers

iOS - GMSMapView - How to add a grid that zooms with map

Is there a way to add a grid to a GMSMapView such that as you zoom/move the map the grid zooms/moves with it? (the grid is fixed relative to the map) Basically I am trying to encapsulate every square kilometer in a grid block Example:
Zigglzworth
  • 6,645
  • 9
  • 68
  • 107
1
vote
0 answers

GMSCamera Not Centered

I'm running into a very strange bug which causes the GMSCamera of the GMSMapView to appear off center. I have a view controller in storyboard with a GMSMapView. In the center of the map view I have an image view that is pinned to line up with the…
mike
  • 1,441
  • 2
  • 19
  • 31
1
vote
1 answer

google map marker hide inside the uisearchbar and not display in center of the map

i am using google map api for display the location and search bar for search the location but when the GSMMarker display it snippet window hide inside the uisearchbar so any own please help me. -(void) setupMarkerOnMap:(CLLocation *)loc…
Chirag Shah
  • 3,034
  • 1
  • 30
  • 61
1
vote
3 answers

how to remove particular markers from GMS?

I asked earlier how to show different markerInfoWindow in this question, and now I'm trying to delete a particular marker when the user clicks on the button on the left corner. first in .h file : NSMutableArray *ADSMarray; GMSMarker…
1
vote
1 answer

Get location data when out of service

I'm working on a iPhone app that stores location data from a user. However, sometime the user doesn't have service. Is there an API that estimates location data when the phone gets back into service? Or any other suggestions
AllieCat
  • 3,890
  • 10
  • 31
  • 45
1
vote
1 answer

Follow user location on google maps

I have google maps sdk on ios and enabled userlocation = yes. I want to get the user location via GPS when he moves. I could not find any method in document that returns me location updates as the user keeps moving. I want to keep my user in center…
ankit_rck
  • 1,796
  • 2
  • 14
  • 24
1
vote
1 answer

GMSCoordinateBounds returns all the markers instead of just visible markers

I am using GMSCoordinateBounds to get a list of markers that are in visible area. But I am getting all the markers that are plotted instead of just visible ones. This is how I am doing it: GMSVisibleRegion visibleRegion = [mapView_.projection…
iCodes
  • 1,382
  • 3
  • 21
  • 47
1
vote
0 answers

GMSMapView didLongPressAtCoordinate: return invalid coordinate first time

- (void)mapView:(GMSMapView *)mapView didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate This delegate returns me wrong coordinates as given below and is happening only first time or i mean once you move/zoom the maps even a little bit,…
1
vote
1 answer

GMSCameraPosition: convert kilometers to zoom level

There is a way to convert a distance (in kilometers) into a float zoom level of a GMSCameraPosition? I have an app where the user specifies a diameter (in kilometers) that he wants to see around the gps checkmark (his position). So, I need to…
reinaldoluckman
  • 6,317
  • 8
  • 42
  • 50