Skip to content
Last updated

API / geotoolkit / map / features / Point / Point

Class: Point

features.Point.Point

Point map feature implementation.

Hierarchy

Table of contents

Constructors
  • [new Point(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.point.point.md#new point(options))
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.<br> Function used as part of the cloning mechanism.<br> Implementations should copy the given instance state to this instance.<br> 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.<br>

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