gmsmapview

How to get animated polyline route in GMSMapView, so that it move along with map when map is moved?

孤街浪徒 提交于 2019-11-26 10:52:20
问题 I have created animated polyline like CAShapeLayer by following code, I have added CAShapeLayer as sublayer to GMSMapiew but, if I move the map the layer won\'t moves. where to add the layer, so that it move along with map? func layer(from path: GMSPath) -> CAShapeLayer { let breizerPath = UIBezierPath() let firstCoordinate: CLLocationCoordinate2D = path.coordinate(at: 0) breizerPath.move(to: self.mapView.projection.point(for: firstCoordinate)) for i in 1 ..< Int((path.count())){ print(path

Drawing Route Between Two Places on GMSMapView in iOS

时光毁灭记忆、已成空白 提交于 2019-11-26 03:50:59
问题 I am Developing an iOS Application. In that Application i am having 2 Fields From and To. I Entered Address using Google Auto Complete API.and also i am able to Getting the Latitude and Longitude of the 2 places and able to show markers on the GMSMapView . Now i Want to Draw Route Between these 2 Places. I found a solution when we use MKMapView . But i was Unable to find the solution for GMSMapView . please help me to Draw the route between these 2 points in GMSMapView . If possible please