The AmplifyMapLibreAdapter is a library that combines the Amplify Geo category and the MapLibre SDK.
-
Registers a custom URL protocol with MapLibre that intercepts and signs calls to AWS Location endpoints. This registration occurs automatically the first time AmplifyMapLibreAdapter is used to create a map.
-
Brokers communication between Amplify and MapLibre by providing functions and extensions that simplify using Amplify Geo with MapLibre.
-
Provide SwiftUI support for MapLibre that adds
AMLMapView
(Amplify MapLibre MapView) andAMLMapCompositeView
Views around MapLibre's MGLMapView. This introduces SwiftUI support to the MapLibre SDK for iOS. It provides a subset of MGLMapView functionality that can be used for displaying and interacting with a map; providing APIs to track state changes, inject custom implementations for user interaction, and define settings.
AmplifyMapLibreAdapter supports iOS 13 and above.
Swift Pacakge Manager is distributed with Xcode. To add AmplifyMapLibreAdapter to your iOS project, take the following steps:
- Open your project in Xcode.
- Select your application in the Project Navigator.
- Select your project in the Project List pane.
- Select Package Dependencies.
- Click the + (plus) button.
- Enter the AmplifyMapLibreAdapter GitHub repo URL (
https://github.com/aws-amplify/amplify-ios-maplibre
) in the search bar labeled Search or Enter Package URL. - Click Add Package and select your desired Dependency Rule
- Select the targets you would like to add.
- AmplifyMapLibreAdapter will allow you to create a
MGLMapView
configured to work with Amplify Geo. - AmplifyMapLibreUI provides SwiftUI Map Views,
AMLMapView
andAMLMapCompositeView
. Additionally, it also provides other map related UI components with applicable functionality, such as aAMLSearchBar
,AMLPlaceList
,AMLMapControlView
, and more. All of which seamlessly integrate with Amplify Geo.
- AmplifyMapLibreAdapter will allow you to create a
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
When filing an issue, please check exisiting open, or recently closed, issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
- Expected behavior and observed behavior.
- A reproducible test case or series of steps.
- The version of our code being used.
- Any modications you've made relecant to the bug.
- Anything custom about your environment or deployment.
- Stack Trace in text form (if applicable).
We welcome and and all contributions from the community! Make sure you read through our contribution guide here before submitting any PR's.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.