Skip to content
Last updated

API / geotoolkit / scene / shapes / PolylineSegment / PolylineSegment

Class: PolylineSegment

shapes.PolylineSegment.PolylineSegment

Define a segment of polyline set

Table of contents

Constructors
[new PolylineSegment(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.scene.shapes.polylinesegment.polylinesegment.md#new polylinesegment(options))[new PolylineSegment(x, y)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.scene.shapes.polylinesegment.polylinesegment.md#new polylinesegment(x, y))
Methods
Css Properties
Name Type Description
boundsRectShape bounds
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop

Contents

Constructors

new PolylineSegment(options)

• new PolylineSegment(options)

Parameters

Name Type Description
optionsOptionsoptions

new PolylineSegment(x, y)

• new PolylineSegment(x, y)

Parameters

Name Type Description
xnumber[]set of x coordinates
ynumber[]set of y coordinates
Methods

getBounds

▸ getBounds(): Rect

Return bounds

Returns

Rect

bounds


getProperties

▸ getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties


setProperties

▸ setProperties(properties?): PolylineSegment

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsobject containing the properties to set

Returns

PolylineSegment