API / geotoolkit / map / features / IFeature / IFeature
The map feature interface IFeature shows the basic properties that any feature should have.
Deprecated
since 2022, use geotoolkit/map/features/AbstractFeature instead
Interface
Constructors
Methods
▸ Abstract getAttributes(): Attributes
Gets attributes (non-spatial properties)
Attributes are some additional (non-spatial) properties. These attributes can be written as a text next to the feature itself for more information for the user.
attributes
▸ Abstract getGeometry(isMapCS?): Geometry | Geometry[]
Gets geometry. Geometry is the place, where the feature should be rendered. It is point coordinates for a point feature or a points array for polygons and polylines.
| Name | Type | Description |
|---|---|---|
Optional isMapCS | boolean | Map coordinate system flag |
geometry
▸ Abstract getId(): string
Gets ID
Id is a unique identifier of the feature, usually one of the attributes. It is used to simplify settings for the user, as a default 'annotation' (text info) for the feature.
string
ID