Classes
Functions
-
import {toFeature} from 'ol/render/Feature';Create an
ol/Featurefrom anol/render/FeatureName Type Description renderFeatureRenderFeature RenderFeature
geometryNamestring (defaults to 'geometry') Geometry name to use when creating the Feature.
Returns:
Newly constructedol/Featurewith properties, geometry, and id copied over.
-
toGeometry(renderFeature){Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon}
-
import {toGeometry} from 'ol/render/Feature';Create a geometry from an
ol/render/FeatureName Type Description renderFeatureRenderFeature Render Feature
Returns:
New geometry instance.
Type Definitions
-
Type{'Point'} {'LineString'} {'LinearRing'} {'Polygon'} {'MultiPoint'} {'MultiLineString'}
-
The geometry type. One of
'Point','LineString','LinearRing','Polygon','MultiPoint'or 'MultiLineString'`.