Skip to content
Last updated

API / geotoolkit / map / features / MultiPolygon / MultiPolygon

Class: MultiPolygon

features.MultiPolygon.MultiPolygon

Multi-polygon map feature implementation.

Hierarchy

Table of contents

Constructors
  • [new MultiPolygon(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.multipolygon.multipolygon.md#new multipolygon(options))
Methods

Contents

Constructors

new MultiPolygon(options)

• new MultiPolygon(options)

Parameters

Name Type Description
optionsOptionsfeature options

Overrides

AbstractFeature.constructor

Methods

applyMapCS

▸ applyMapCS(layer): MultiPolygon

Applies Map coordinate system to itself

Parameters

Name Type Description
layerAbstractLayermap layer to use for coordinate system conversion

Returns

MultiPolygon

this

Overrides

AbstractFeature.applyMapCS


copyConstructor

▸ Protected copyConstructor(src): MultiPolygon

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

MultiPolygon

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?): GeometryBase[]

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

GeometryBase[]

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