MSFlightMapView alternatives and similar libraries
Based on the "Maps" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of MSFlightMapView or a related project?
- iOS 10.0+
- Xcode 9.0+
Just add the MSFlightMapView folder to your project.
or use CocoaPods:
To use MSFlightMapView, we would be needing to create MSFlight objects. It can be created in the following ways:
MSFlight(withFirstLocation: London, withSecondLocation: Paris)
MSFlight are single leg flights having a destination and an arrival. We can set the following attributes of a flight :
firstLocation - The Departure of the flight
secondLocation - The Arrival of the flight
iconImage - The marker image
iconColor - The color of the marker
pathColor - The path color between departure and arrival
markerColor - The color of markers of departure and arrival
MSFlightcan be further extended to connecting flights by using
.connecting(toLocation: CLLocationCoordinate2D)to either a
MSFlightobject or an array of
MSMultiLegFlight(withLocations: [London, Berlin, Ankara, Moscow])
MSMultiLegFlight are connecting flights between a number of locations. It generates
MSFlight objects so it can be further customised as mentioned above.
MSFlightMapView is a subclass of
GMSMapView. We can set and animate flights on the map just by using :
let flight = MSFlight(withFirstLocation: London, withSecondLocation: Berlin).connecting(toLocation: Moscow) mapView.flights = [flight]
let flightPlan = MSMultiLegFlight(withLocations: [London, Berlin, Ankara, Moscow]) mapView.flights = flightPlan.flights
MSFlightMapView is released under the MIT license. See [LICENSE](./LICENSE) for details.
*Note that all licence references and agreements mentioned in the MSFlightMapView README section above are relevant to that project's source code only.