Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 53 additions & 52 deletions reference/styles/sections/toolbar.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Toolbar
description: The toolbar is always along the top of the screen in Mapbox Studio style editor.
标题: 工具栏
描述: 在Mapbox Studio样式编辑器中,工具栏始终位于屏幕顶部。
prependJs:
- "import AppropriateImage from '../../../../components/appropriate-image';"
- "import Browser from '@mapbox/dr-ui/browser';"
Expand All @@ -13,26 +13,26 @@ prependJs:
- "import EditorRaster from '../../../../video/reference-styles-toolbar-raster.mp4';"
- "import EditorSatelliteImagery from '../../../../video/reference-styles-toolbar-satellite-imagery.mp4';"
- "import EditorTileBoundaries from '../../../../video/reference-styles-toolbar-tile-boundaries.mp4';"
contentType: reference
内容类型: 参考
---

## Toolbar
## 工具栏

The toolbar is always along the top of the screen in Mapbox Studio style editor.
在Mapbox Studio样式编辑器中,工具栏始终位于屏幕顶部。

### Share and Publish
### 分享和发布

For more information on sharing and publishing your style, see [Publish your style](/studio-manual/overview/publish-your-style/).
有关分享和发布样式的更多信息,请参考[发布样式]。(/studio-manual/overview/publish-your-style/).

### Print panel
### 打印面板

Click **{{<Icon name='printer' inline={true} />}} Print** to toggle the print panel on and off. Position your map and specify **Print export settings** in the print panel. Settings include image dimensions (in inches or centimeters), resolution (in PPI), and file format (PNG or JPG). The maximum image export is 8,000&nbsp;px by 8,000&nbsp;px.
单击 **{{<Icon name='printer' inline={true} />}} 打印**,打开或关闭打印面板。 放置地图并在打印面板中指定**打印导出设置**。设置包括图像尺寸(英寸或厘米),分辨率(PPI)和文件格式(PNG或JPG)。最大图像导出为8000px × 800px。

Mapbox Studio offers 100 high resolution image exports per account. If you need more than 100, you can purchase an annual license that allows for a higher number of image exports and prints. Contact [Mapbox sales](https://www.mapbox.com/contact/sales) for more information.
Mapbox Studio每个帐户提供100个高分辨率图像导出数量。如果需要的数量超过100,则可以购买年度许可证,以增加图像输出和打印的数量。联系 [Mapbox 商务](https://www.mapbox.com/contact/sales) 获取更多信息.

If you do not want to purchase an annual license that provides more than 100 high resolution image exports, you can use the [Mapbox Static Images API playground](https://docs.mapbox.com/help/interactive-tools/static-api-playground). With the [Mapbox Static Images API](https://docs.mapbox.com/api/maps/#static-images), image exports can be up to 1,280&nbsp;px by 1,280&nbsp;px in size. While enabling retina may improve the quality of the image, you cannot export at a higher resolution using the Static Images API.
如果您不想购买提供超过100张高分辨率图像导出的年度许可证,则可以使用[Mapbox 静态图片 API playground](https://docs.mapbox.com/help/interactive-tools/static-api-playground).使用Mapbox静态图片API,图片导出的最大尺寸为1,280px × 1,280px。虽然启用视网膜模式可能会提高图像质量,但是你无法使用静态图像API以更高的分辨率导出。

**Be sure to read the [Mapbox print policy](https://docs.mapbox.com/help/how-mapbox-works/static-maps/#static-images-for-print) before printing any Mapbox maps.**
**在打印任何Mapbox地图之前,请务必阅读[Mapbox打印策略](https://docs.mapbox.com/help/how-mapbox-works/static-maps/#static-images-for-print)**

{{
<Browser>
Expand All @@ -43,18 +43,17 @@ If you do not want to purchase an annual license that provides more than 100 hig
</Browser>
}}

### Settings
### 设置

The Settings menu includes a lot of options including:
设置菜单包含许多选项,包括:

- Various [**View modes**](#view-modes) for debugging your style.
- [**Supported Mapbox SDK versions**](#supported-mapbox-sdk-versions) for checking compatibility with Mapbox GL JS and our mobile Maps SDKs.
- [**Default map position**](#default-map-position) for setting and locking map position.
- [**Compare styles**](#compare-styles) for comparing this style to other styles in your account.
- A [**Layer overview**](#layer-overview) covering all layers and source layers used in this style.
- The ability to toggle [**Source compositing**](#source-compositing) on and off.
- 各种 [**查看模式**](#view-modes) 用于调试样式.
- [**支持的Mapbox SDK版本**](#支持-mapbox-sdk-版本)用于检查与Mapbox GL JS和我们的移动地图 SDK的兼容性。
- [**默认地图位置**](#默认-地图-位置)用于设置和锁定地图位置。
- [**图层概述**](#图层-概述),包含此样式中使用的所有图层和数据源图层。
- 启用和禁用[** 数据源合成 **](#数据源-合成)的功能。

#### View modes
#### 查看模式

Toggle **Satellite imagery** to compare your style to satellite imagery. This is useful for checking the accuracy of map features.

Expand All @@ -68,8 +67,7 @@ Toggle **Satellite imagery** to compare your style to satellite imagery. This is
<br />
}}

Toggle **Raster tiles** to view raster tiles for your style. Note that style updates may be delayed in the raster tiles.

切换 **栅格瓦片** 查看你的样式的栅格图块。 请注意,样式更新可能会在栅格瓦片中延迟。
{{
<Browser>
<Video
Expand All @@ -81,7 +79,8 @@ Toggle **Raster tiles** to view raster tiles for your style. Note that style upd
}}


Toggle **Tile boundaries** to see tile boundaries. Occasionally features will be affected by crossing tile boundaries. Toggling visibility of tile boundaries is useful for debugging clipped or missing symbols.
切换 **瓦片边界** 来查看瓦片边界。 有时,要素会受到瓦片边界的影响。 切换瓦片边界的可见性对于调试剪切或丢失的符号很有用。


{{
<Browser>
Expand All @@ -93,7 +92,7 @@ Toggle **Tile boundaries** to see tile boundaries. Occasionally features will be
<br />
}}

Toggle **Collision boxes** to see collision boxes for symbols. This is also useful for debugging clipped or missing symbols.
切换 **碰撞盒** 来查看符号的碰撞盒。 这对于调试剪切或丢失的符号也很有用。

{{
<Browser>
Expand All @@ -105,7 +104,7 @@ Toggle **Collision boxes** to see collision boxes for symbols. This is also usef
<br />
}}

Toggle **Overdraw inspector**.
切换**透支检查器**。Toggle **Overdraw inspector**.

{{
<Browser>
Expand All @@ -116,17 +115,17 @@ Toggle **Overdraw inspector**.
</Browser>
}}

#### Supported Mapbox SDK versions
#### 支持的Mapbox SDK版本

Make sure that all features you are using are supported with specific versions of Mapbox SDKs and view warnings related to compatibility.
确保特定版本的Mapbox SDK支持你正在使用的所有功能,并查看与兼容性有关的警告。

#### Default map position
#### 默认的地图位置

Set the zoom, bearing (rotation), pitch, and latitude and longitude coordinates for the current map view. You can also toggle **Lock default position** so that the map returns to the current position whenever the style is opened.
设置当前地图视图的缩放,方位(旋转),俯仰以及纬度和经度坐标。 你还可以切换 **锁定默认位置** ,以便每当打开样式时地图都将返回到默认位置。

#### Compare styles
#### 比较样式

Compare your working style with another style from your account. Select the style to compare, then click Compare to open a dialog box. Use the swipe arrows to compare maps. Hit Escape or click away from the Compare tool to dismiss the window.
将你的正在编辑的样式与帐户中的另一种样式进行比较。 选择要比较的样式,然后单击“比较”以打开一个对话框。 使用滑动箭头比较地图。 点击ESC或单击“比较”工具以关闭该窗口。

{{
<Browser>
Expand All @@ -137,13 +136,13 @@ Compare your working style with another style from your account. Select the styl
</Browser>
}}

#### Layer overview
#### 图层概述

The _Layer overview_ section shows a list of tilesets used in style layers that rely on the tileset. Tilesets are [sources](https://docs.mapbox.com/mapbox-gl-js/style-spec/#sources). Sources include vector or raster data files uploaded to your account. Your account also includes access to [Mapbox tilesets](https://docs.mapbox.com/vector-tiles/).
_图层概述_ 部分显示了依赖于瓦片集的样式图层中使用的瓦片集的列表。瓦片集即[数据源](https://docs.mapbox.com/mapbox-gl-js/style-spec/#sources). 数据源包括上传到你帐户的矢量或栅格数据文件。你的帐户还包括访问[Mapbox 瓦片集](https://docs.mapbox.com/vector-tiles/).

There is a limit of 15 unique sources permitted in styles made with the style editor. You can check the number of sources used in **Settings** _Layer overview_ popover.
使用样式编辑器制作的样式中最多只能包含15个唯一数据源。 您可以检查**设置** _图层概述_ 弹出框中使用的来源数量。

Source compositing does not reduce the number of sources counted toward this limit. For example, if you are using a template style that references both the Mapbox Streets and Terrain tilesets (in other words, two tileset sources) and you add one custom tileset, even if the tilesets are bundled into one composite source, the total number of tileset sources used would be 3. In this example, you could add an additional 12 sources before hitting the 15 source limit.
数据源合成不会减少计入此限制的数据源数量。 例如,如果你使用的模板样式同时引用了Mapbox街道和地形瓦片集(换句话说,是两个瓦片集数据源),并且你添加了一个自定义瓦片集,即使将这些瓦片集合成到一个复合数据源中,使用的瓦片集数据源的数量仍然为3。在此示例中,你可以在达到15个数据源限制之前添加其他12个数据源。

{{
<AppropriateImage
Expand All @@ -153,27 +152,28 @@ Source compositing does not reduce the number of sources counted toward this lim
<br />
}}

For more information on source limits, see our [Source limits in Mapbox Studio styles](https://docs.mapbox.com/help/troubleshooting/reduce-tileset-sources/) troubleshooting guide.
有关数据源限制的更多信息,请参考 [Mapbox Studio样式中的源限制](https://docs.mapbox.com/help/troubleshooting/reduce-tileset-sources/) 故障排除指南.

#### Source compositing
#### 数据源合成

Any sources in your Mapbox Studio style are composited, or combined, by default. When source compositing is enabled, any Mapbox vector tilesets used and any custom vector tilesets added to your style in the future will be bundled into one composite source. Compositing improves label placement calculations across tilesets and makes maps load faster.
默认情况下,你的Mapbox Studio样式的任何数据源源都是合成或组合的。 启用数据源合成后,将来使用的任何Mapbox矢量瓦片集和任何添加到你样式的自定义矢量瓦片集都将合成到一个复合数据源中。 合成改善了整个瓦片之间的标签放置计算,并使地图加载速度更快。

Source composting can be turned on or off in the Settings section of the toolbar. When source compositing is turned off, you cannot make label placement calculations between layers from different sources.
可以在工具栏的设置部分中打开或关闭数据源合成。 关闭数据源合成时,无法在来自不同数据源的图层之间进行标签放置计算。

According to the [Mapbox Vector Tile Specification](https://docs.mapbox.com/vector-tiles/specification/), no two vector layers in a vector tileset may have the same ID. If you try to composite sources with the same ID, a modal will be displayed in the style editor to walk you through resolving the name conflicts.
根据[Mapbox矢量瓦片规范](https://docs.mapbox.com/vector-tiles/specification/),矢量瓦片集中的两个矢量图层都不能具有相同的ID。 如果你尝试使用相同的ID组合数据源,则会在样式编辑器中显示一个模式,来引导你解决名称冲突。

{{<Note title="Source limit">}}
There is a limit of 15 unique sources permitted in styles made with the style editor. Source compositing does not reduce the number of sources counted toward this limit. For example, if you are using a template style that references both the Mapbox Streets and Terrain tilesets (in other words, two tileset sources) and you add two custom tilesets, even if the tilesets are bundled into one composite source, the total number of tileset sources would be 4. In this example, you could add an additional 11 sources before hitting the 15 source limit. For more information on source limits see our [Source limits in Mapbox Studio styles](https://docs.mapbox.com/help/troubleshooting/reduce-tileset-sources/) troubleshooting guide.</p>
{{<Note title="数据源限制">}}
使用样式编辑器制作的样式中最多只能包含15个唯一数据源。 数据源合成不会减少计入此限制的数据源数量。 例如,如果你使用的模板样式同时引用了Mapbox街道和地形瓦片集(换句话说,是两个瓦片集数据源),并且你添加了两个自定义瓦片集,即使将这些瓦片集合成到一个复合数据源中, 瓦片集数据源为4。在此示例中,你可以在达到15个数据源限制之前添加其他11个数据源。 有关数据源限制的更多信息,请参阅我们的[Mapbox Studio样式中的源限制](https://docs.mapbox.com/help/troubleshooting/reduce-tileset-sources/)故障排除指南。</p>
{{</Note>}}

### History
### 历史

查看当前会话中所做更改的完整历史记录(从打开样式编辑器到现在)。在我们的博客文章中了解有关此功能的更多信息,<a href="https://www.mapbox.com/blog/using-undo-redo-in-mapbox-studio-with-visual-history/">Mapbox Studio中的视觉撤消和重做</a>.

See a complete history of changes made in the current session (since opening the style editor). Read more on this functionality in our blog post, <a href="https://www.mapbox.com/blog/using-undo-redo-in-mapbox-studio-with-visual-history/">Visual undo & redo in Mapbox Studio</a>.
<h4 id='images-toolbar'> {{<Icon name='picture' inline={true} />}} 图像</h4>

<h4 id='images-toolbar'> {{<Icon name='picture' inline={true} />}} Images</h4>
在此弹出框中,从样式的[sprite](https://docs.mapbox.com/help/glossary/sprite/)中添加和删除图像。要在地图上显示图像,请在左侧的图层面板中选择。

Add and remove images from your style's [sprite](https://docs.mapbox.com/help/glossary/sprite/) in this popover. To display images on your map, select in the layer panel on the left.

{{
<AppropriateImage
Expand All @@ -182,14 +182,15 @@ Add and remove images from your style's [sprite](https://docs.mapbox.com/help/gl
/>
}}

### Fonts
### 字体

Add and remove all fonts associated with your Mapbox account (across all styles). Browse _Mapbox fonts_ or upload custom TTF or OTF fonts.
添加和删除与你的Mapbox帐户关联的所有字体(所有样式)。浏览 _Mapbox字体_ 或上传自定义的TTF或OTF字体。

### Light
###

When using a fill extrusion layer, you can specify the anchor, color, and intensity of lighting. Each can also be adjusted by zoom level.
使用填充拉伸层时,可以指定锚点,颜色和照明强度。 每个都可以通过缩放级别进行调整。

### Help
### 帮助

打开帮助来获取指向我们的帮助页面和联系页面的链接。 启用提示使其在样式编辑器中定位。 查看完整地图交互和键盘快捷键的列表。
Open Help for links to our help page and contact page. Turn on Tips to become oriented in the style editor. See a full list map interactions and keyboard shortcuts.