-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(maplibre-adapter): MapLibreView and Geo adapter integration #1568
Conversation
**Notes:** - turn Adapter into an instantiable type to facilitate testing / dependency injection - reduce the boilerplate for MapView to work
**Notes:** - split implementation between MapLibreView and AmplifyMapView - the former is the standard MapBox/MapLibre map with built-in integration with the Amazon Location tilemap provider - the latter is a batteries-included MapView, with standard UI controls and upcoming integration with Search and Map markers
aws-geo-location/src/main/java/com/amplifyframework/geo/location/AWSLocationGeoPlugin.kt
Show resolved
Hide resolved
/** | ||
* Configure MapLibre Adapter's auth provider. | ||
*/ | ||
@Before | ||
fun setUpAuth() { | ||
AmplifyMapLibreAdapter.auth = TestCategory.forPlugin(AWSCognitoAuthPlugin()) as AuthCategory | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is good to leave here so that whenever we add new test suites in this class, we make sure to build a fresh category per test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it to the MapViewTestActivity
, but I'll move it back to re-create per test case
maplibre-adapter/src/main/java/com/amplifyframework/geo/maplibre/AmplifyMapLibreAdapter.kt
Show resolved
Hide resolved
maplibre-adapter/src/main/java/com/amplifyframework/geo/maplibre/view/AmplifyMapView.kt
Outdated
Show resolved
Hide resolved
maplibre-adapter/src/main/java/com/amplifyframework/geo/maplibre/view/AmplifyMapView.kt
Outdated
Show resolved
Hide resolved
few things to address before final approval:
|
…ify/amplify-android into feature/amplify-mapview
Notes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.