DEPRECATED: Legacy cloud styling is deprecated and is slated for retirement starting on or after March 18, 2025. At that point, your legacy map styles will automatically update. Google recommends you update to the new cloud-based maps styling before March 2025. For more information about the deprecation, see Deprecations. To update your legacy styles, see Update a map style to the latest version.
Stay organized with collections
Save and categorize content based on your preferences.
This is a basic example of loading a custom styled map using a
map ID. In this case, the Maps JavaScript references
map ID 8e0a97af9386fef when the map is loaded, and automatically
applies the map style associated with that map ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-21 UTC."],[[["This example demonstrates loading a custom styled map using a predefined map ID (`8e0a97af9386fef`)."],["The provided code snippets showcase how to implement this functionality in both TypeScript and JavaScript."],["When the map loads, the Maps JavaScript API automatically applies the style associated with the specified map ID."],["The example focuses on basic map initialization, centering it at specific coordinates (48.85, 2.35) with a zoom level of 12."]]],[]]