已弃用:旧版云端样式设置现已弃用,并计划于 2025 年 3 月 18 日当天或之后淘汰。届时,您的旧版地图样式将自动更新。Google 建议您在 2025 年 3 月之前更新到新版云端地图样式设置。如需了解弃用方面的详情,请参阅
弃用。如要更新旧版样式,请参阅
将地图样式更新到最新版本。
旧版设置和结算
准备工作
结算
如需使用云端地图样式设置,您需要拥有地图 ID。如果您在使用 Maps SDK for Android、Maps SDK for iOS 和 JavaScript 时使用地图 ID,会产生动态地图 SKU 费用。如果您在使用 Maps Static API 时使用地图 ID,则会产生静态地图 SKU 费用。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-01。
[null,null,["最后更新时间 (UTC):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"]]