Giter Club home page Giter Club logo

mapkit's Introduction

Map Kit for Android

Table of Contents

Introduction

This Map Kit sample encapsulates APIs of the HUAWEI Map Kit. It provides many demos for your reference or usage.

Getting Started

  1. Register as a developer. Register a HUAWEI account.
  2. Create an app. Create an app and enable APIs.
  3. Build the demo. To build this demo, please first import the demo to Android Studio (3.X or later). Then download the agconnect-services.json file of the app from AppGallery Connect, and add the file to the app directory (\app) of the demo. What's more, a signing certificate is needed. For details, please refer to Preparations for Integrating HUAWEI HMS Core.
  4. The API key is required for initializing the map. In the MainActivity, please replace "Your API key" with api_key field value in agconnect-services.json if the field is null.

Installation

Before using this sample code, check whether the android environment and Java environment have been installed.

Use Android Studio to open the CodeLab_Mapkit_Demo folder, synchronize it, and compile it after successful synchronization. Then connect a mobile phone running the Android operating system to your PC and click the run icon (green arrow). The APK is successfully installed on the mobile phone.

Supported Environments

Android SDK 27 or a later version is recommended. Android Build Tools

Configuration

To use functions provided by packages in examples, you can to use the agconnect-services.json in the app package. If you want to create your demo, you need to change the agconnect-services.json file.

License

Map Kit Java sample is licensed under the Apache License, version 2.0.

mapkit's People

Contributors

lovehuaweimaps avatar liaoxiaojia avatar liangfu123 avatar houweilong1 avatar mike-mei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.