Polygon and line displays(多边形与线条显示)¶
Maps can render polygons and lines based on your ontology objects. There are two ways to specify the line or polygon geometry to draw:
- Geoshape properties: Display GeoJSON line and polygon geometries stored in a geoshape property on your objects.
- Line segment: Display lines between two geopoint properties on objects.
See value-based styling for more information on how styling rules are configured, as well as color and opacity styling configuration. Polygons and lines can be styled with the following additional attributes.
Stroke width¶
Use the Stroke width section to control the width used when rendering lines, or the stroke of polygons that are not filled.

Stroke style¶
Use the Stroke style section to control the dash pattern used when rendering lines, or the stroke of polygons that are not filled. The available options are:
| Solid | Dashed | Dotted |
|---|---|---|
![]() |
![]() |
![]() |
For line segments, you can also configure arrows to indicate the direction of the line.

Fill polygons¶
When Fill polygons is enabled, polygons render with a minimal stroke and their interior filled with the specified color. When disabled, the polygon is instead only stroked, using the styling configuration in Stroke width and Stroke style.
| Fill enabled | Fill disabled |
|---|---|
![]() |
![]() |
Loading methods¶
When displaying a large number of objects, polygon and line geometries can also support tile-based loading methods.
中文翻译¶
多边形与线条显示¶
地图可根据您的本体论(Ontology)对象渲染多边形和线条。有两种方式指定要绘制的线条或多边形几何形状:
- 地理形状(Geoshape)属性: 显示存储在对象地理形状属性中的GeoJSON线条和多边形几何数据。
- 线段(Line segment): 显示对象上两个地理点(Geopoint)属性之间的连线。
关于样式规则的配置方法,以及颜色和不透明度样式的配置,请参阅基于值的样式设置。多边形和线条可通过以下附加属性进行样式设置。
描边宽度(Stroke width)¶
使用描边宽度部分控制渲染线条时的宽度,或未填充多边形轮廓的描边宽度。

描边样式(Stroke style)¶
使用描边样式部分控制渲染线条时的虚线模式,或未填充多边形轮廓的描边样式。可用选项包括:
| 实线(Solid) | 虚线(Dashed) | 点线(Dotted) |
|---|---|---|
![]() |
![]() |
![]() |
对于线段,您还可以配置箭头以指示线条方向。

填充多边形(Fill polygons)¶
启用填充多边形时,多边形将以最小描边渲染,内部填充指定颜色。禁用时,多边形仅使用描边宽度和描边样式中的配置进行轮廓描边。
| 启用填充 | 禁用填充 |
|---|---|
![]() |
![]() |
加载方法(Loading methods)¶
当显示大量对象时,多边形和线条几何形状还可支持基于瓦片的加载方法。




