• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

googlecodelabs/android-kotlin-geo-maps

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

googlecodelabs/android-kotlin-geo-maps

开源软件地址(OpenSource Url):

https://github.com/googlecodelabs/android-kotlin-geo-maps

开源编程语言(OpenSource Language):

Kotlin 100.0%

开源软件介绍(OpenSource Introduction):

Wandering with Google Maps

Note that you will need to add an API key for the solution code to run.

Introduction

Building apps with Google Maps allows you to add features to your app such as satellite imagery, robust UI controls for maps, location tracking, and location markers. You can add value to the standard Google Maps by showing information from your own data set, such as the locations of well-known fishing or climbing areas. You can also create games where the player explores the physical world, like a treasure hunt or the recent trend of augmented reality games. In this lesson, you will create a Google Maps app called Wander that displays customized maps and shows the user's location.

What you should already know

Runtime permissions. Kotlin Creating, building, and running apps in Android Studio.

What you'll learn

Obtain an API key. Integrate a Google Map in your app. Display different map types. Style the Google Map. Add markers to your map. Enable the user to place a marker on a point of interest (POI). Enable location tracking.

What you'll do

Get an API key from the Google API Console and register the key to your app. Create the Wander app, which has an embedded Google Map. Add custom features to your app such as markers and styling. Enable location tracking in your app.

Obtain the API key

  1. Open the debug version of the google_maps_api.xml file.
  2. In the file, look for a comment with a long URL. The URL's parameters include specific information about your app.
  3. Copy and paste the URL into a browser.
  4. Follow the prompts to create a project in the Google API Console. Because of the parameters in the provided URL, the API Console knows to automatically enable the Google Maps Android API.
  5. Create an API key and click Restrict Key to restrict the key's use to Android apps. The generated API key should start with AIza.
  6. In the google_maps_api.xml file, paste the key into the google_maps_key string where it says YOUR_KEY_HERE.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap