Last updated

API / geotoolkit / map / features / IFeature / IFeature

Class: IFeature

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

Implemented by

Table of contents

Constructors
Methods

Contents

Constructors

new IFeature()

new IFeature()

Methods

getAttributes

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.

Returns

Attributes

attributes


getGeometry

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.

Parameters

Name Type Description
Optional isMapCSbooleanMap coordinate system flag

Returns

Geometry | Geometry[]

geometry


getId

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.

Returns

string

ID