Stay organized with collections Save and categorize content based on your preferences.
The map features you can customize are arranged in a hierarchy, and each map feature has one or more style elements that you can customize. Most top-level features have one or more child map features. You have several options when customizing map styles:
Inherit from the base map style: If you don't customize a style element for a map feature, it inherits the default style from the base map.
Inherit from parents: Customize a style element on a parent map feature, to have all un-customized child map features below inherit the styles from their parent.
Override the parent style: Customize a style element on a child map feature to override the parent style for that element.
Customize zoom levels: For some map features, you can customize style elements for different zoom levels. For details, see Style zoom levels.
Map features can have one or more of the following style elements that you can customize, depending on the type of map feature:
Visibility: Whether to show or hide this feature on the map.
Fill color: Fill color for polygons and polylines.
Stroke color: Outline color for polygons and polylines.
Stroke width: Thickness of the outline for polygons and polylines. Results may vary depending on the zoom level. If you don't want an outline, set the Stroke color to be the same as the Fill color, or set the Stroke width to 0.
Icon color: Fill color for the icons.
Text fill color: Fill color for text labels.
Text stroke color: Outline color for text labels.
When you hide map features or make them transparent, you may expose boundary inaccuracies. Map feature boundaries are not always precise, but are adjusted to look correct when all layers are visible. To learn more about how map layers affect each other, see Manage styles that overlap.
There are two ways to show or hide map features: visibility and opacity.
VisibilityTo either display or hide a map feature on your map, use the Visibility style element. For more details, see Filter which map features to display.
Note: Not all map features are shown on the map at all zoom levels. To see the map feature displayed or hidden, you may need to zoom in or out. OpacityYou can also make a map feature transparent by adjusting the opacity of the following style elements: Fill color, Stroke color, Text fill color, and Text stroke color.
When you adjust the opacity of a map feature, its appearance depends on the map features underneath. To avoid unexpected style changes, set a custom style for all overlapping features.
Note: Opacity is not available for all map features. Polygons and PolylinesFor map feature types that are represented with a shape, such as Beach, Country, and Town square, or a line, such as Railway track, Highway, and Trail, you can typically style the following elements: Visibility, Fill color, Stroke color, and Stroke width.
Polygon styling customization example - for Reservation feature type
Polyline styling customization example - for Highway feature type
Stroke color and Stroke width customizations are not available for the following map features:
Political map features: Their style conveys meaning on the map, such as indicating the type of territory. The political map features are Country, Border, State or province, and Sublocality.
3D style buildings.
For map feature types that are fully or partially represented with a label, such as Point of interest or Transportation, you can usually style the following elements: Visibility, Icon color, Text fill color, and Text stroke color.
Label text and icon styling customizations example
Map feature hierarchyThese tables for the top level map features show what child map features are available under each.
Point of interest Emergency FireExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-10 UTC.
[[["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 2025-07-10 UTC."],[[["Customize the appearance of map features like roads, buildings, and points of interest by adjusting their color, visibility, and stroke."],["Map features inherit styles from their parent features, allowing for broad or granular customization."],["Specific styling options vary based on the feature type, for instance, polygons and polylines offer fill and stroke controls while icons and text labels have color options."],["Control the visibility of map features to show or hide specific elements on your map for different purposes."],["A hierarchy of map features organizes customization options, ranging from broad categories like \"Points of Interest\" to specific features like \"Restaurant\" or \"Beach\"."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4