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
18 changes: 10 additions & 8 deletions reference/styles/sections/map-canvas.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
title: Map canvas
description: You can interact with the map to see all layers at a single point and when the Select data panel is open, you can inspect individual features from the selected tileset to view their properties.
标题: 地图画布
描述: 你可以与地图进行交互,在单个点上查看所有图层,并且当选择数据面板打开时,你可以检查所选瓦片集中的各个要素来查看其属性。
prependJs:
- "import Browser from '@mapbox/dr-ui/browser';"
- "import Icon from '@mapbox/mr-ui/icon';"
- "import Note from '@mapbox/dr-ui/note';"
- "import Video from '@mapbox/dr-ui/video';"
- "import MapCanvas from '../../../../video/reference-styles-map-canvas.mp4';"
contentType: reference
内容类型: 参考
---

## Map canvas
## 地图画布

All changes made to your style will appear on the map in the center of the style editor. You can interact with the map to see all layers at a single point and when the **Select data** panel is open, you can inspect individual features from the selected tileset to view their properties.
你可以与地图进行交互,在单个点上查看所有图层,并且当 **选择数据** 面板打开时,你可以检查所选瓦片集中的各个要素来查看其属性。

{{
<Browser>
Expand All @@ -23,8 +23,10 @@ All changes made to your style will appear on the map in the center of the style
</Browser>
}}

<h4 id='search-toolbar'>{{<Icon name='search' inline={true} />}} Search places</h4>
<h4 id='search-toolbar'>{{<Icon name='search' inline={true} />}} 地点搜索</h4>

The {{<Icon name='search' inline={true} />}} magnifying glass icon allows you to search for locations on the map. Type in what you're looking for and select the result and search will take you to the exact location. This search is powered by the [Mapbox Geocoding API](https://docs.mapbox.com/api/search/#geocoding).
通过 {{<Icon name='search' inline={true} />}} 放大镜图标,你可以搜索地图上的位置。 输入你要查找的内容并选择结果,搜索将带你到精确的位置上。
此搜索由 [Mapbox Geocoding API](https://docs.mapbox.com/api/search/#geocoding)进行技术支持。

虽然可以在样式编辑器中搜索和查看位置,但是不能在样式编辑器中创建新点。 请参考[Mapbox Studio数据集编辑器](/studio-manual/reference/datasets/)的下一部分,以了解如何搜索地点以及创建要素到地图上。

Although you can search and view places in the style editor, you cannot create new points in the style editor. See the next section on the [Mapbox Studio dataset editor](/studio-manual/reference/datasets/) to learn how to search for places and create new features to be added to your map.