

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# AWS 地图样式和功能
<a name="map-styles"></a>

## 地图样式概述
<a name="map-style-overview"></a>

要获取地图，必须先选择一种地图样式。地图样式定义了所渲染地图的视觉外观，包括地图图块、字形和 sprite 的样式。地图图块可以是向量（MVT），也可以是栅格（图像）。当您放大或缩小时，样式可能会发生变化，但总体上仍保持一致的主题。在将样式传递到地图渲染库之前，可以覆盖样式的部分，也可以覆盖整个样式。

## AWS 地图样式
<a name="aws-map-styles"></a>

AWS 地图样式符合行业标准，提供精致而专业的外观。这些样式减少 time-to-market并消除了专业制图师从头开始创建地图样式的需求。借助这些预先设计的样式，您可以快速有效地为最终用户创建具有视觉吸引力的地图。

通过利用预先设计 AWS 的地图样式，您可以绕过从头开始设计和构建地图样式的耗时且资源密集型的过程。这可以加快您的开发进程，使您能够专注于核心功能。




| 地图样式名称 | 说明 | 颜色方案 | 支持动态地图 | 支持静态地图 | 
| --- | --- | --- | --- | --- | 
| 标准 | 彩色地图样式 | 深色和浅色 | 支持 | 是 | 
| 单色 | 灰度地图样式 | 深色和浅色 | 是 | 否 | 
| Hybrid | 卫星图像上的道路和标注叠加层 | 不适用 | 是 | 否 | 
| 卫星 | 基于卫星图像的地图样式 | 不适用 | 支持 | 是 | 

Amazon Location Service 提供的样式符合 [MapLibre GL 样式规范](https://maplibre.org/maplibre-style-spec/)。

## 标准地图样式
<a name="standard-map"></a>

标准地图样式是一种简洁而现代的通用地图设计，可以完美且实用地适配几乎任何应用程序或网站。

要了解更多信息，请参阅[标准地图样式](standard-map-style.md)。

![\[Map of Boston showing neighborhoods, streets, and waterways in standard and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-standard.png)


## 单色地图样式
<a name="monochrome-map"></a>

单色地图样式是一种极简风格的画布，其色彩搭配十分有限，专为与数据可视化叠加配合使用而设计。单色样式提供浅色和深色两种模式，能够清晰传达出地理环境所需的所有关键信息。

要了解更多信息，请参阅[单色地图样式](monochrome-map-style.md)。

![\[Two maps of North America, one light and one dark, showing countries and major bodies of water.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-monochrome.png)


## 混合地图样式
<a name="hybrid-map"></a>

混合地图样式将全球卫星图像与矢量地图中的清晰标签和可配置 POI 类别相结合。

要了解更多信息，请参阅[混合地图样式](hybrid-map-style.md)。

![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-hybrid.png)


## 卫星地图样式
<a name="satellite-map"></a>

卫星地图样式展示了由卫星拍摄的高分辨率真实世界图像，能够呈现出自然景观、建筑物和地形的逼真景象。这种样式通常会尽可能少地使用标签或叠加层，以突出展现地理方面的细节。

![\[Satellite view of Australia, New Zealand, and Southeast Asian islands surrounded by deep blue oceans.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-satellite.png)


# 标准地图样式
<a name="standard-map-style"></a>

标准地图样式是一种简洁而现代的通用地图设计，可以无缝适配几乎任何应用程序或网站。

## 颜色方案
<a name="color-scheme"></a>

标准地图样式有浅色和深色两种模式。浅色模式用途广泛，可以适应任何环境；而深色模式则采用有限的色彩搭配，旨在清晰地展现细节并在较暗的环境中保持可读性。这样可以尽可能地减少干扰，尤其适用于夜间导航等场景。

------
#### [ Forest ]

![\[Map of Washington state and Vancouver area showing coastal regions and major cities.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/color-scheme-forest.png)


------
#### [ Road ]

![\[Map of Bronx area showing highways, neighborhoods, and landmarks in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/color-scheme-road.png)


------
#### [ City ]

![\[Map of Boston showing neighborhoods, streets, and waterfront areas in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/color-scheme-city.png)


------
#### [ Neighborhood ]

![\[Map of Montreal showing districts, landmarks, and streets in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/color-scheme-neighborhood.png)


------

## 令人愉悦、充满现代感的色彩搭配
<a name="modern-palette"></a>

柔和的色彩为地图提供了重要的土地利用背景信息，同时又不会使地图显得过于繁杂，在高倍和低倍放大模式下都能提供有用的信息。进行缩小显示时，森林、沙漠和冰川等特征为地图增添了丰富的细节。进行放大显示时，一系列颜色会突出显示诸如学校、医院、休闲区（如公园和体育设施）以及城市区域（如商业区和工业区）等重要地标。

整体样式采用统一的色彩搭配，包括与各自土地利用区域相匹配的 POI 标记。道路网络以灰色阴影呈现，既提供了细节，又不会因鲜艳、引人注目的色彩而使地图显得过于繁杂。

------
#### [ Highway ]

![\[Map of San Francisco Bay Area showing cities and highways in standard and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/modern-highway.png)


------
#### [ Beach ]

![\[Map of Malibu area showing Pacific Coast Highway, Legacy Park, and Malibu Lagoon State Beach.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/modern-beach.png)


------
#### [ Island ]

![\[Map of Oahu island showing major highways, Honolulu, and surrounding areas in day and night views.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/modern-island.png)


------
#### [ Neighborhood ]

![\[Map of downtown Honolulu showing streets, landmarks, and neighborhoods in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/modern-neighborhood.png)


------
#### [ Intersection ]

![\[Map of Lower Manhattan showing City Hall Park, streets, and landmarks in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/style-intersection.png)


------
#### [ Roundabout ]

![\[Map of Washington Circle area showing streets, landmarks, and points of interest in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/style-roundabout.png)


------

## 丰富的兴趣点（POI）
<a name="rich-poi"></a>

标准地图样式支持丰富的可配置兴趣点 (POIs)。只需几行代码，即可选择与您的使用案例相关的 POI 类别。

![\[Map showing various points of interest in Midtown Manhattan, including businesses and landmarks.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/poi-toggle-animation.gif)


## 面向全球市场而设计
<a name="designed-for-the-world"></a>

标准样式支持不同的政治观点，可确保地图为您的用户显示正确的边界。该样式还便于在地图标签上轻松切换不同的语言，它支持数十种语言和书写系统。

要了解更多信息，请参阅[本地化和国际化](maps-localization-internationalization.md)。

------
#### [ Languages ]

![\[Map of Taiwan showing major cities and geographical features including Taiwan Strait.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/standard-language-switcher.gif)


------
#### [ Political view ]

![\[Map of Cyprus showing Nicosia in the north and Limassol in the south, with surrounding Mediterranean Sea.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/maps-political-view.png)


------

## 地形
<a name="topography"></a>

标准地图样式提供详细的地形可视化，突出显示海拔变化和自然地理特征。等高线、阴影和地形纹理可以真实地呈现景观，使用户能够轻松解释斜坡、山谷和山峰。这种地形渲染非常适合户外规划、环境分析和应用，在这些应用中，了解地形特征可以增强决策和空间意识。

------
#### [ Both Terrain and Contour Density ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-terrain-contour-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-terrain-contour-dark.png) 

------
#### [ Only terrain ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-terrain-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-terrain-dark.png) 

------
#### [ Only contour density ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-contour-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/map-contour-dark.png) 

------

## 导航
<a name="navigation"></a>

标准地图样式提供了用于提供动态可视化的选项，旨在优化导航和路线规划。实时交通数据突出显示拥堵、事故和路况，使用户能够预测延误并相应地调整路线。在多种出行模式（例如卡车或公共交通）中，该功能使用户能够为自己的路线选择最高效、最适合情境的选项，从而确保更流畅、更明智的路线体验。

------
#### [ Traffic ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/traffic-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/traffic-dark.png) 

------
#### [ Transit ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/transit-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/transit-dark.png) 

------
#### [ Truck ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/truck-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/truck-dark.png) 

------

## 3D
<a name="3D"></a>

标准地图样式提供身临其境的三维可视化效果，以空间深度和视角呈现地形高程和建筑结构。可调节的视角、俯仰控制和三维渲染可以真实地呈现自然景观和城市环境，使用户能够轻松解释海拔变化、地形复杂性和空间关系。这种三维渲染非常适合路线规划、城市导航和应用，在这些应用中，了解垂直尺寸和深度感知可以增强决策和空间意识。

------
#### [ 3D Terrain ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/3d-terrain-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/3d-terrain-dark.png) 

------
#### [ 3D Buildings ]

 ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/3d-buildings-light.png) ![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/3d-buildings-dark.png) 

------

## 土地利用
<a name="land-use"></a>

标准地图样式使用鲜艳的色彩来表示指定的土地用途。绿色代表森林、草地、高尔夫球场、体育中心和公园。相关颜色用于描绘水体、冰川、沙漠和海滩。此外，诸如商业区、工业区、机场、军事区、医疗设施和教育区域等土地用途都通过特定鲜明的类别进行了突出展示。

------
#### [ Light ]

![\[Color-coded squares representing various land uses with corresponding hex codes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/land-use-light.png)


------
#### [ Dark ]

![\[Color-coded squares representing various land uses with corresponding hex codes and labels.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/land-use-dark.png)


------

# 单色地图样式
<a name="monochrome-map-style"></a>

单色样式是一种极简风格的画布，其色彩搭配十分有限，专为与数据可视化叠加配合使用而设计。这种样式支持浅色和深色两种模式，每种模式都能清晰传达出地理环境所需的所有关键信息。

## 颜色方案
<a name="color-schemes"></a>

单色样式为深色和浅色模式提供多种颜色选择。

------
#### [ Continent ]

![\[Map of North America showing the United States, Canada, Mexico, and parts of Central and South America.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/monochrome-continent.png)


------
#### [ Neighborhood ]

![\[Map of Downtown Miami showing streets, parks, and landmarks in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/monochrome-neighborhood-colors.png)


------

## 使用案例
<a name="use-case"></a>

单色样式非常适合数据可视化和极简主义的设计需求。

### 数据可视化
<a name="data-visualization"></a>

单色样式特意只使用灰色阴影，让您可以完全自由地选择颜色来绘制数据叠加层（例如分级统计图、热图或点图）。

![\[Map of lower Manhattan showing streets, landmarks, and red dots indicating data points.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/monochrome-data-vis.png)


### 极简主义设计
<a name="minimalist"></a>

为了保持地图干净不显眼，单色样式包括一组精简的兴趣点 (POIs)，用于基本要素，例如机场、公园、医院和大学。

------
#### [ Airport ]

![\[Map showing Miami International Airport and surrounding roads including Airport Expy and Dolphin Expy.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/monochrome-airport.png)


------
#### [ Neighborhood ]

![\[Map showing Jackson Memorial Hospital, UHealth Tower, and nearby streets in light and dark modes.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/monochrome-neighborhood.png)


------

尽管单色样式包含一组精简版 POIs，但底层图块仍包含完整的 POI 数据集。这允许您显示 POIs 样式中没有视觉效果的内容。

## 面向全球市场而设计
<a name="designed-for-the-world"></a>

单色样式支持不同的政治观点，可确保地图为您的用户显示正确的边界。该样式还便于在地图标签上轻松切换不同的语言，它支持数十种语言和书写系统。

![\[Map of Taiwan showing major cities and the Taiwan Strait, with a monochrome color scheme.\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/monochrome-language-switcher.gif)


# 混合地图样式
<a name="hybrid-map-style"></a>

混合地图样式将全球卫星图像与标准地图样式中相同的清晰标签和可配置的兴趣点（POI）类别相结合。这种组合不仅提供了详尽的地理信息，还能确保应用程序具有良好的可读性和易用性。

## 丰富的兴趣点（POI）
<a name="rich-poi"></a>

标签和 POI 专为达到鲜明的对比效果和良好的可读性而设计，可为卫星层提供必要的背景信息，同时又不干扰到详细的图像展示。当画面放大时，浅色的道路线条会凸显出城市的结构；而当画面缩小时，这些线条则会逐渐变得模糊，从而展现出更详尽的街道层面信息。

------
#### [ Zoom ]

![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/hybrid_zoom.gif)


------
#### [ Neighborhood ]

![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/hybrid-neighborhood.png)


------
#### [ Zoomed-in ]

![\[alt text not found\]](http://docs.aws.amazon.com/zh_cn/location/latest/developerguide/images/hybrid-zoom.png)


------

## 面向全球市场而设计
<a name="designed-for-the-world"></a>

混合样式支持不同的政治观点，可确保地图为您的用户显示正确的边界。这种样式还便于在地图标签上轻松切换不同的语言，它支持数十种语言和书写系统，可确保本地化的使用体验。