自定义地图
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以通过多种方式自定义 Google 地图平台 (GMP) 地图。大多数方法都需要您使用地图 ID 来访问多种不同的地图自定义功能。您还可以使用 JSON 样式设置手动自定义 GMP 地图,
使用地图 ID 自定义地图
地图 ID 是表示单个 Google 地图实例的唯一标识符。地图 ID 仅限单个平台(JavaScript、Android、iOS 或静态地图)使用。您可以将地图 ID 与项目相关联,并使用地图 ID 在网站和应用中启用功能或管理地图/设置地图样式。如需了解详情,请参阅地图 ID 概览。
使用地图 ID 和云端地图样式设置进行自定义
借助云端地图样式设置,您可以使用地图 ID 和地图样式为用户打造自定义的道路地图体验。然后,您可以在 Cloud 控制台中根据需要更新样式,而无需更新应用的代码。如需了解详情,请参阅云端地图样式设置。
使用 JSON 样式设置手动自定义地图
手动自定义地图可让您设置普通地图类型的样式,并且不需要地图 ID。对样式的任何更新都需要更新代码。您无法在同一应用中同时使用手动地图样式设置和云端地图样式设置。
如需使用 JSON 样式设置手动自定义地图,请参阅添加样式化地图。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eMap customization in Google Maps Platform (GMP) can be achieved through map IDs or manual JSON styling.\u003c/p\u003e\n"],["\u003cp\u003eMap IDs are unique identifiers representing a single instance of a Google Map, restricted to a specific platform.\u003c/p\u003e\n"],["\u003cp\u003eCloud-based maps styling utilizes map IDs and styles, allowing for updates in the Cloud console without app code modifications.\u003c/p\u003e\n"],["\u003cp\u003eManual map customization with JSON styling styles the standard map type, but requires code updates for style changes and cannot be combined with cloud-based styling.\u003c/p\u003e\n"]]],[],null,["Select 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\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/maps-static/map-ids/mapid-over).\n\nCustomize with map IDs and Cloud-based maps styling\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\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[Add a styled map](../styling)."]]