AmplifyMapLibre

public class AmplifyMapLibre
  • createMap() Asynchronous

    Creates 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) -> 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.