Last updated

API / geotoolkit / map / features / adapters / Edge / Edge

Class: Edge

adapters.Edge.Edge

Calculates right edge point of geometry and applies it to Text as an anchor

Implements

Table of contents

Constructors
Methods

Contents

Constructors

new Edge(options)

new Edge(options?)

Parameters

Name Type Description
Optional optionsOffsetoptions
Methods

apply

apply(geometry, text, context?): void

Calculates right end point of polyline and applies it to Text as an anchor

Parameters

Name Type Description
geometryGeometry | Geometryfeature geometry
textAnchoredShapetext shape to set the anchor on
Optional contextTransformation | RenderingContextrendering context or its transformation

Returns

void

Implementation of

IGeometryToText.apply


getClassName

getClassName(): string

Returns

string


setOptions

setOptions(options): Edge

Sets feature_geometry-to-text_anchor_position offset options. For the new options to take effect on layer, the layer has to be invalidated.

Parameters

Name Type Description
optionsOffsetoptions

Returns

Edge

this


getClassName

Static getClassName(): string

Returns

string