Skip to content
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
  • [new IFeature()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.ifeature.ifeature.md#new ifeature())
Methods

Contents

Constructors

new IFeature()

• new IFeature()

Methods

getAttributes

▸ Abstract getAttributes(): Attributes

Gets attributes (non-spatial properties) <br> 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.<br>

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 <br> 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