Last updated

API / geotoolkit / map / features / Point / Point

Class: Point

features.Point.Point

Point map feature implementation.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new Point(options)

new Point(options)

Parameters

Name Type Description
optionsOptionsoptions

Overrides

AbstractFeature.constructor

Methods

applyMapCS

applyMapCS(layer): Point

Applies Map coordinate system to itself

Parameters

Name Type Description
layerAbstractLayermap layer to use for coordinate system conversion

Returns

Point

this

Overrides

AbstractFeature.applyMapCS


copyConstructor

Protected copyConstructor(src): Point

Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.
Makes a shallow copy of the feature.

Parameters

Name Type Description
srcAbstractFeatureSource to copy from

Returns

Point

this

Inherited from

AbstractFeature.copyConstructor


getAttributes

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

Inherited from

AbstractFeature.getAttributes


getClassName

getClassName(): string

Returns

string

Inherited from

AbstractFeature.getClassName


getGeometry

getGeometry(isMapCS?): 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

Overrides

AbstractFeature.getGeometry


getId

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

Inherited from

AbstractFeature.getId


shallowClone

shallowClone(): AbstractFeature

All subclasses should override copyConstructor or provide custom implementation for this method Returns shallow copy of the feature

Returns

AbstractFeature

clone

Inherited from

AbstractFeature.shallowClone


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractFeature.getClassName