Map Kit is an extensive framework for map development in Android.
The library consists of 4 artifacts; maps-core
, maps-google
, maps-amazon
, and maps-huawei
.
maps-core
artifact provides an extensive framework for map development in Android.
maps-google
artifact provides the Google Maps SDK integration to the Map Kit.
maps-amazon
artifact provides the Amazon Maps SDK integration to the Map Kit.
maps-huawei
artifact provides the HUAWEI Map Kit integration to the Map Kit.
Google Maps SDK | Amazon Maps SDK | HUAWEI Map Kit | Map Kit |
---|---|---|---|
SupportMapFragment |
SupportMapFragment |
SupportMapFragment |
MapFragment |
GoogleMap |
AmazonMap |
HuaweiMap |
MapClient |
new LatLng() |
new LatLng() |
new LatLng() |
MapKit.newLatLng() |
new *Options() |
new *Options() |
new *Options() |
MapKit.new*Options() |
*.builder() |
*.builder() |
*.builder() |
MapKit.new*Builder() |
*Factory.*() |
*Factory.*() |
*Factory.*() |
MapKit.get*Factory().*() |
- Models are not
Parcelable
. MapOptions
is currently not supported.StreetView
is currently not supported.
Add the dependencies for the artifacts you need in the build.gradle
file for your app or module:
dependencies {
// Optional - To grant access to the Map Kit API without platform specific implementation
implementation 'dev.supasintatiyanupanwong.libraries.android.kits.maps:maps-core:2.3.0'
// To use the Google Maps SDK via Map Kit
implementation 'dev.supasintatiyanupanwong.libraries.android.kits.maps:maps-google:2.3.0'
// To use the Amazon Maps SDK via Map Kit
implementation 'dev.supasintatiyanupanwong.libraries.android.kits.maps:maps-amazon:2.3.0'
implementation files('amazon-maps-api-v2.aar')
// To use the HUAWEI Map Kit via Map Kit
implementation 'dev.supasintatiyanupanwong.libraries.android.kits.maps:maps-huawei:2.3.0'
}
If multiple integration artifacts are included in your final build, the implementation will be selected based on API availability upon application startup.
However, it is possible to separate builds between them as next:
android {
// ...
flavorDimensions 'vendor'
productFlavors {
google
amazon { applicationIdSuffix '.amazon' }
huawei { applicationIdSuffix '.huawei' }
}
}
dependencies {
googleImplementation 'dev.supasintatiyanupanwong.libraries.android.kits.maps:maps-google:2.3.0'
amazonImplementation 'dev.supasintatiyanupanwong.libraries.android.kits.maps:maps-amazon:2.3.0'
amazonImplementation files('amazon-maps-api-v2.aar')
huaweiImplementation 'dev.supasintatiyanupanwong.libraries.android.kits.maps:maps-huawei:2.3.0'
}
For more information about dependencies, see Add build dependencies.
- Maps SDK for Android - Google Developers
- Amazon Maps SDK - Amazon Appstore Developer
- Map Kit - HMS Core - HUAWEI Developer
Your feedback helps make Map Kit better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues or the existing discussions in this library before you create a new one.
Copyright 2020 Supasin Tatiyanupanwong
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.