Classes
函数s
-
import {to要素} from 'ol/render/要素';从
ol/render/要素创建ol/要素Name Type Description render要素渲染要素 渲染要素
geometryNamestring | undefined 创建要素时使用的几何图形名称。
返回值:
Newly constructedol/要素with properties, geometry, and id copied over.
-
toGeometry(render要素){Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon}
-
import {toGeometry} from 'ol/render/要素';从
ol/render/要素创建几何图形Name Type Description render要素渲染要素 渲染要素
返回值:
New geometry instance.
Type Definitions
-
Type{'Point'} {'LineString'} {'LinearRing'} {'Polygon'} {'MultiPoint'} {'MultiLineString'}
-
几何图形类型。可选值为
'Point'、'LineString'、'LinearRing'、'Polygon'、'MultiPoint'或 'MultiLineString'`。