I'm using google maps in my iOS swift project. I want to draw a path between two locations on the map (Not straight line). Any idea how to do that ?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- SwiftUI: UIImage (QRCode) does not load after call
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
Create a new Swift file copy this code, that's it call then drawPolygon() method from map view for polygon line.
This piece of code will work right for you. Don't forget to change your API key and mode (walking, driving).
To draw polyline between two locations on Google Map in Swift.
// Pass your source and destination coordinates in this method.
To draw polyline on map .
Showing Multiple-routes between two locations in google maps in swift 3.0 with camera zoom: