已淘汰:舊版雲端樣式已停用,並預計於 2025 年 3 月 18 日當天或之後淘汰。屆時,舊版地圖樣式會自動更新。Google 建議您在 2025 年 3 月前改用新版雲端式地圖樣式設定。詳情請參閱「
淘汰項目」一文。如要更新舊版樣式,請參閱「
將地圖樣式更新為最新版本」。
舊版設定和計費方式
事前準備
帳單
如要使用雲端式地圖樣式設定,需要有地圖 ID。在 Maps SDK for Android、Maps SDK for iOS 和 JavaScript 中使用地圖 ID 時,系統會根據 Dynamic Maps SKU 收取費用。在 Maps Static API 中使用地圖 ID 時,系統會根據 Static Maps SKU 收取費用。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-01 (世界標準時間)。
[null,null,["上次更新時間:2025-03-01 (世界標準時間)。"],[[["Cloud-based map styling requires using a map ID, which is linked to the Dynamic Maps or Static Maps SKU for billing purposes depending on the platform."],["Before implementing cloud-based styling on existing maps, remove any hard-coded styling (JSON, URL parameters, etc.) to prevent conflicts."],["To begin using cloud-based map styling, you will first need to create a map ID."]]],["To use cloud-based maps styling, first create a map ID. If the map has existing hard-coded styling (JSON, URL parameters), remove it to prevent conflicts. This involves updating `MapStyleOptions` (Android), `GMSMapStyle` (iOS), removing `MapTypeStyle` (JavaScript), or the `style` parameter (Maps Static). Using a map ID will incur charges, specifically the Dynamic Maps SKU for Android, iOS, and JavaScript, and the Static Maps SKU for Maps Static API.\n"]]