/mapkit

Guidance for developers how to use the map service provided by the HMS Map Kit.

Primary LanguageJavaApache License 2.0Apache-2.0

HMS Map Kit for Android

Apache-2.0

Introduction

Personalizing how your map displays and interacts with your users tailors their experience to them, not the other way around. Make location-based services work better for you so your app works better for your users.

HUAWEI Map Kit uses the WGS 84 GPS coordinate system, which meets most map development requirements outside China, including:

  • Map display: Displays buildings, roads, water systems, and Points of Interest (POIs).
  • Map interaction: Controls the interaction gestures and buttons on the map.
  • Map drawing: Adds location markers, overlays, and various shapes.

Getting Started

For more development details, please refer to the following link:

Development Guide: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/hms-map-v4-abouttheservice

API References: https://developer.huawei.com/consumer/en/doc/development/HMS-References/hms-map-bitmapdescriptor

 

We also provide an example to demonstrate the use of Map SDK for Android.

This sample uses the Gradle build system.

First download the demo by cloning this repository or downloading an archived snapshot.

In Android Studio, use the "Open an existing Android Studio project", and select the directory of "map-sample".

You can use the "gradlew build" command to build the project directly.

You should create an app in AppGallery Connect, and obtain the file of agconnect-services.json and add to the project. You should also generate a signing certificate fingerprint and add the certificate file to the project, and add configuration to build.gradle. See the Configuring App Information in AppGallery Connect guide to configure app in AppGallery Connect.

Support

If you have any questions or suggestions during use, welcome suggestions or communicate here: https://github.com/huaweimaps/mapkit/issues

License

Apache License version 2.0;

You can get a licensed copy at: https://github.com/huaweimaps/mapkit/blob/master/LICENSE