Customize 3D maps
Stay organized with collections
Save and categorize content based on your preferences.
You can customize the look and feel of the 3D basemap using cloud-based maps styling.
With cloud-based maps styling, you have control over the look and feel of the map that you present to users. By controlling features such as the density of points of interest (POIs), the removal of certain POI categories, and modifying the fill or stroke of features, you can create a map experience tailored to your users.
Cloud-based maps styling provides a no-code editing experience in the Google Cloud console. Edits made to your style in the maps console will appear in your application automatically.
The following example shows a map that uses a custom style to change the color of recreation feature icons and text to orange:
asyncfunctioninitMap(){
const{Map3DElement}=awaitgoogle.maps.importLibrary('maps3d');
constmap=newMap3DElement({
center:{
lat:37.75183154601466,
lng:-119.52369070507672,
altitude:2200,
},
tilt:67.5,
heading:108.94057782079429,
range:6605.57279990986,
mapId:'bcce776b92de1336e22c569f',
mode:'HYBRID',
gestureHandling:'COOPERATIVE',
});
document.body.append(map);
}
initMap();
Overview
The process for customizing 3D maps using cloud-based maps styling is the same as for 2D maps:
map-id parameter.
For an in-depth look at creating map styles, review Create and use map styles.
Limitations
There are certain limitations to be aware of when using cloud-based maps styling with 3D Maps in Maps JavaScript:
- Dark mode isn't supported.
- Map ID-enabled features like data-driven styling aren't supported.