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

How to add gradient layer to GMSMapView

In my project I have TableView which consist GMSMapView . I want to show gradient to GMSMapView . I have tried following code class Colors { let colorTop = UIColor(red: 192.0/255.0, green: 38.0/255.0, blue: 42.0/255.0, alpha: 1.0).CGColor …
Komal Kamble
  • 424
  • 1
  • 8
  • 25
1
vote
1 answer

Adding Custom Images to marker of Google Maps IOS SDK increases lot of memory

I am working on a application that demands users to show on the map like, when user register in to the application he/she upload its picture, when sending picture to server along with picture I scale the image to 0.1 so that its size could be…
Hassan Malik
  • 559
  • 6
  • 20
1
vote
1 answer

How can I get a location's name more detailed in Android?

I'm working a project that request me develop a tracing app. This app will automatically record app users’ traces and the app can identify a user’s activity location, including work place, home and frequently visited locations such as grocery store.…
1
vote
0 answers

CAAnimationGroup doesn't seem smooth in GMSMarker movement

Here is my code to simulate marker movement : CLLocationCoordinate2D targetCoordinate = [_directionArray objectAtIndex:_currentTargetLocationIndex].coordinate; CGFloat startLat = _busMarker.layer.latitude; CGFloat startLon =…
1
vote
1 answer

iOS - Best way to display google map in UITableViewCell

I have my custom tableview cell with google map (GMSMapView) on it. The cell is located on the bottom of table view. My first approach to display map was to add GMSMapView as a subview of cell. My second approach was to make snapshot of map and add…
Stacy Smith
  • 490
  • 5
  • 11
1
vote
0 answers

CLLocation distance is not accurate

I'm using GMSMapView for iOS app in which a list of data is retrieved using an API and their distance will be displayed as a part of UITableView cell using CLLocation distancefromlocation. But, the problem is the result is not accurate as the Google…
1
vote
0 answers

Google Maps animateToCameraPosition Only Sometimes Working

I have already asked a similar question on here before and failed to get an answer but at the time I didn't know the exact issue but now I have pinpointed it. When I leave my view in my app as in going into another view then going back to my main…
1
vote
0 answers

Swift Google map in SKScene

I am trying to add a google Map view to a SKScene this is what i have so far: class GoogleMapView: SKScene, GMSMapViewDelegate { var map = GMSMapView(frame: CGRectZero) var gmsCamera = GMSCameraPosition.cameraWithLatitude(-33.868, longtitude:…
Benja0906
  • 1,437
  • 2
  • 15
  • 25
1
vote
3 answers

touchesBegan function never being entered

I'm trying to pop up a popover for my app. So far, the popover pops up at a fixed coordinate, I'm trying to get it to pop at the point where the user tapped. This is what I have: override func touchesBegan(touches: Set, withEvent event:…
Siddhartha
  • 4,296
  • 6
  • 44
  • 65
1
vote
0 answers

Swift 2.1 ios 9 google maps can t load image with custom markerInfoWindow

i'm trying to load image in custom markerInfoWindow and it don't work what's missing all others are working fine like RestName and DiscText i tried with 3 method 1- Normal Load image from NSRL but it crashed 2- load with asynchronously with…
Sami20722
  • 31
  • 5
1
vote
1 answer

GMSMapView display whole world map?

I am adding my map view like mapView_ = [[GMSMapView alloc]initWithFrame:_viewMapContainer.bounds]; mapView_.myLocationEnabled = YES; mapView_.frame = _viewMapContainer.bounds; [_viewMapContainer addSubview: mapView_]; In my application this view…
Jeff
  • 1,405
  • 3
  • 26
  • 46
1
vote
1 answer

How to rotate GMSMarker to show user moving direction?

In my app i need to show user moving along with the direction he is moving in a GMSMapView, So I have putted custom GMSMarker and set the image(Ex. Bike or Car) and animating that marker when user starts moving and changing the angle of the marker…
1
vote
1 answer

Cant interact with custom infowindow in google map

I have a google map and I've created a custom info window for my markers. I've put a couple buttons on the window, but I can't interact with them for the life of me. Here is my custom view: class MarkerWindowView: UIView, UIGestureRecognizerDelegate…
Conor Quinn
  • 529
  • 4
  • 13
1
vote
1 answer

Swift: My GMSMapView is unexpectedly nil

I am trying to follow a simple Google Maps tutorial. It basically gets an address from the user, changes the address into latitude and longitude coordinates based off the google maps api, and then moves the on screen map view to those coordinates.…
Jonathan Allen Grant
  • 3,408
  • 6
  • 30
  • 53
1
vote
3 answers

Google Maps Swift , Custom Marker and InfoWindow with arrow

I have created Custom Marker with InfoWindow by Creating XIB file. But I want to have down arrow on that marker too so that user get to know that for which marker they have clicked. and i want to move the infoWindow little it UP from the marker ..I…
dhaval shah
  • 4,499
  • 10
  • 29
  • 42