自訂地圖
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以透過多種方式自訂 Google 地圖平台 (GMP) 地圖。大多數方法都需要使用地圖 ID,才能存取多種不同的地圖自訂功能。您也可以使用 JSON 樣式手動自訂 GMP 地圖,
使用地圖 ID 自訂地圖
「地圖 ID」是不重複的識別碼,代表單一 Google 地圖執行個體。地圖 ID 只能用於單一平台,包括 JavaScript、Android、iOS 或靜態地圖。您可以將地圖 ID 與專案建立關聯,並使用地圖 ID 啟用功能,或管理及設定網站和應用程式中的地圖樣式。詳情請參閱地圖 ID 總覽。
使用地圖 ID 和雲端式地圖樣式設定進行自訂
您可以利用雲端式地圖樣式設定,使用地圖 ID 和地圖樣式,為使用者打造自訂的道路地圖體驗。然後視需要在 Cloud 控制台中更新樣式,不必更新應用程式的程式碼。詳情請參閱「雲端式地圖樣式設定」。
使用 JSON 樣式手動自訂地圖
手動自訂地圖可讓您設定一般地圖類型的樣式,且不需要地圖 ID。如要更新樣式,必須更新程式碼。您無法在同一個應用程式中,同時使用手動地圖樣式設定和雲端式地圖樣式設定。
如要使用 JSON 樣式手動自訂地圖,請參閱「JSON 地圖樣式」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-05 (世界標準時間)。
[null,null,["上次更新時間:2025-09-05 (世界標準時間)。"],[[["\u003cp\u003eGoogle Maps Platform offers various customization options, including using map IDs and JSON styling.\u003c/p\u003e\n"],["\u003cp\u003eMap IDs are unique identifiers for Google Maps, enabling features and styling management within projects.\u003c/p\u003e\n"],["\u003cp\u003eCloud-based maps styling, coupled with map IDs, allows for dynamic customization through the Cloud Console without code updates.\u003c/p\u003e\n"],["\u003cp\u003eManual customization using JSON styling directly modifies map appearance but necessitates code updates for any changes.\u003c/p\u003e\n"],["\u003cp\u003eYou can't combine manual JSON styling and cloud-based styling on the same map.\u003c/p\u003e\n"]]],[],null,["# Customize maps\n\nSelect platform: [Android](/maps/documentation/android-sdk/map-ids/customize-maps-overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/map-ids/customize-maps-overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/map-ids/customize-maps-overview \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/map-ids/customize-maps-overview \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\nYou have several options for customizing Google Maps Platform (GMP) maps. Most of\nthese methods require you to use a map ID to access several different map\ncustomization features. You can also manually customize GMP\nmaps using JSON styling,\n\nCustomize maps with map IDs\n---------------------------\n\nA map ID is a unique identifier that represents a single instance of a Google\nMap. Map IDs are restricted to a single platform--JavaScript, Android, iOS, or\nStatic maps. You associate map IDs with a project, and can use map IDs to enable\nfeatures or manage or style maps on your websites and in your applications. For\ndetails, see [Map ID overview](/maps/documentation/javascript/map-ids/mapid-over).\n\nCustomize with map IDs and Cloud-based maps styling\n---------------------------------------------------\n\nWith cloud-based maps styling, you use map IDs and map styles to create a\ncustomized road map experience for your users. You can then update the style as\nneeded in the Cloud console, without having to update your apps' code. For\ndetails, see [Cloud-based maps styling](../cloud-customization/index).\n\nCustomize maps manually with JSON styling\n-----------------------------------------\n\nManually customizing maps lets you style the normal map type, and does not\nrequire a map ID. Any updates to the style require a code update. You cannot\ncombine manual map styling and cloud-based maps styling in the same app.\n\nTo customize a map manually using JSON styling, see\n\n[JSON map styling](../json-styling-overview)."]]