AmplifyMapLibre

public class AmplifyMapLibre
  • Creates an instance of MGLMapView configured to work with Amplify and Amazon Location Service using the default map

    Declaration

    Swift

    public class func createMap(completionHandler: @escaping Geo.ResultsHandler<MGLMapView>)

    Parameters

    completionHandler

    The completion handler.

  • 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) -> MGLMapView

    Parameters

    mapStyle

    The 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

    places

    Place array to convert.

    Return Value

    MGLPointFeature array.