地图和地点
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

让您的用户可以利用 Google 提供的丰富地图来探索世界。
使用自定义标记来标识位置、使用图像叠加层增强地图数据、将一个或多个地图作为 fragment 嵌入、显示附近地图注点的详细信息等等。
Maps SDK
Maps SDK for Android 是 Google Play 服务平台的一部分,可让您在应用中添加地图和自定义的地图信息。请按照使用入门指南在项目中设置 Google Play 服务,然后深入了解 Maps SDK 的主要功能。
向应用添加地图
借助 Maps SDK for Android,您可以使用 XML 代码段将地图作为 Fragment 嵌入到 activity 中。此 SDK 提供了激动人心的功能,如 3D 地图;室内、卫星、地形和混合地图;用于高效缓存和绘制的矢量图块;动画过渡效果等等。了解如何添加地图对象。
自定义地图
在地图上添加标记,以指示用户的特殊地图注点。您可以为地图标记定义自定义颜色或图标,使其与应用的外观和风格相匹配。为了进一步增强应用,可以绘制多段线和多边形来指示路径或区域,或者提供完整的图像叠加层。如需了解详情,请参阅有关如何绘制标记的指南。
控制用户视图
通过控制地图“镜头”透视的旋转、倾斜、缩放和平移属性,为用户提供不同的世界视图。了解如何更改视图。
将街景添加到您的应用中
在 activity 中添加街景,让您的用户通过 360 度全景视图探索世界。以编程方式控制街景相机的缩放级别和朝向(倾斜度和方向角),并为镜头在给定时长内的移动添加动画效果。
Places API
帮助用户根据其当前位置找到商家、餐馆和其他地图注点。使用 Places SDK for Android,在用户需要时提供联系信息和营业时间等方便的相关信息。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Maps and places\n\nAllow your users to explore the world with rich maps provided by Google.\nIdentify locations with custom markers, augment the map data with image\noverlays, embed one or more maps as fragments, show details about nearby points\nof interest, and much more.\n\nMaps SDK\n--------\n\nThe [Maps SDK for Android](https://developers.google.com/maps/documentation/android-sdk/) is part of the Google Play services\nplatform and lets you include maps and customized mapping information in your\napp. Follow the [Get Started](https://developers.google.com/maps/documentation/android-sdk/start) guide to set up Google Play services\nin your project, then dive into the key features of the Maps SDK.\n\n#### Add a map to your app\n\nWith Maps SDK for Android, you can embed maps into an activity as a fragment\nusing an XML snippet. This SDK offers exciting features such as 3D maps;\nindoor, satellite, terrain, and hybrid maps; vector-based tiles for efficient\ncaching and drawing; animated transitions; and much more. Learn about how to\n[add a map object](https://developers.google.com/maps/documentation/android-sdk/map).\n\n#### Customize the map\n\nAdd markers onto the map to indicate special points of interest for your users.\nYou can define custom colors or icons for your map markers to match your app's\nlook and feel. To further enhance the app, draw polylines and polygons to\nindicate paths or regions, or provide complete image overlays. Learn more in the\nguide about how to [draw markers](https://developers.google.com/maps/documentation/android-sdk/marker).\n\n#### Control the user's view\n\nGive your users a different view of the world with the ability to control the\nrotation, tilt, zoom, and pan properties of the \"camera\" perspective of the map.\nLearn how to [change the view](https://developers.google.com/maps/documentation/android-sdk/views).\n\n#### Add Street View to your app\n\n[Add Street View](https://developers.google.com/maps/documentation/android-sdk/streetview) into an activity and let your users explore\nthe world through panoramic 360-degree views. Programmatically control the zoom\nand orientation (tilt and bearing) of the Street View camera, and animate the\ncamera movements over a given duration.\n\nPlaces API\n----------\n\nHelp your users find businesses, restaurants, and other points of interest based\non their current location. Use the [Places SDK for Android](https://developers.google.com/maps/documentation/places/android-sdk)\nto provide convenient, relevant information like contact information and\nbusiness hours when your users need it."]]