AmplifyMapLibre
public class AmplifyMapLibre
-
createMap()AsynchronousCreates an instance of MGLMapView configured to work with Amplify and Amazon Location Service using the default map
Declaration
Swift
@MainActor public class func createMap() async throws -> MGLMapView -
Creates an instance of MGLMapView configured to work with Amplify and Amazon Location Service using the specified MapStyle.
Declaration
Swift
public class func createMap(_ mapStyle: Geo.MapStyle) -> MGLMapViewParameters
mapStyleThe MapStyle for the map. (optional, default: The MapStyle that corresponds to the default map in amplifyconfiguration.json)
Return Value
An instance of MGLMapView.
-
Convert a Place array to an MGLPointFeature array that is ready to be displayed on a map.
Declaration
Swift
public class func createFeatures(_ places: [Geo.Place]) -> [MGLPointFeature]Parameters
placesPlace array to convert.
Return Value
MGLPointFeature array.
View on GitHub
AmplifyMapLibre Class Reference