Maps SDK for Android 簡介
有了 Maps SDK for Android,您就能使用 Google 地圖資料、地圖顯示畫面和地圖手勢回應,將地圖加進 Android 應用程式 (包括使用 Wear OS 的應用程式),此外還可以在地圖上新增標記、多邊形和疊加層,藉此提供更多地圖位置相關資訊並支援使用者互動。
這個 SDK 可支援 Kotlin 和 Java 兩種程式設計語言,並提供額外程式庫和擴充功能,以滿足進階功能與程式設計技巧相關需求。
後續步驟
SDK 的程式碼範例、程式庫和擴充功能:
- GitHub - 程式碼範例
- 使用 SDK 的完整應用程式程式碼範例和程式碼片段。
- Android 公用程式庫
- 地圖的進階功能程式庫,例如多圖層、標記叢集和距離計算。
- KTX Kotlin 擴充功能
- 您可以搭配 Maps SDK for Android 使用這組擴充功能 (Maps Android KTX),在應用程式中編寫效率更高的 Kotlin 程式碼。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-30 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]