公告:Google 地圖平台即將推出新版基本地圖樣式。新版地圖樣式內建全新的預設調色盤、現代化的圖釘,並且提升地圖體驗、改善服務的可用性。所有地圖樣式都將於 2025 年 3 月自動更新。請參閱「
Google 地圖平台新版地圖樣式」一文,進一步瞭解適用範圍及如何提早啟用。
概念
本節將介紹使用 Maps JavaScript API 時必須瞭解的各種概念。
本頁面說明可使用 Maps JavaScript API 顯示的地圖類型。
本頁面說明 Maps JavaScript API 使用的座標系統。
如要將 Maps JavaScript API 應用程式本地化,您可以變更預設語言設定並指定區碼,根據特定國家/地區或地域調整地圖行為。
Maps JavaScript API 團隊會定期更新 API,包括新增功能、修正錯誤和提升效能。如要指定在應用程式內載入的 API 版本,請使用 Maps JavaScript API Bootstrap 要求的 v
參數。
本頁面說明如何透過指令碼載入網址的查詢字串,載入 Maps JavaScript API。
本頁面說明使用 Maps JavaScript API 時的 CSS 和 JavaScript 最佳做法。
本頁面說明如何在 Google 地圖中使用 TypeScript。
本頁面說明如何在 Maps JavaScript API 中使用非同步方法。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-28 (世界標準時間)。
[null,null,["上次更新時間:2025-02-28 (世界標準時間)。"],[[["This section provides essential concepts for utilizing the Maps JavaScript API, including map types, coordinate systems, and localization."],["Developers can customize their map applications by selecting specific versions of the API, using URL parameters, and implementing best practices for CSS and JavaScript."],["Advanced features such as using TypeScript and asynchronous methods with Promises are also covered in this documentation."]]],["The content details key aspects of using the Maps JavaScript API, including map types, coordinate systems, and localization. It outlines how to specify API versions, manage URL parameters for loading, and implement best practices with CSS and JavaScript. Furthermore, it covers utilizing TypeScript and asynchronous methods (Promises) within the API. It does not include introductory phrases and only includes the core actions and information.\n"]]