API / geotoolkit / map / features / adapters / Edge / Edge
Calculates right edge point of geometry and applies it to Text as an anchor
Constructors
Methods
▸ apply(geometry, text, context?): void
Calculates right end point of polyline and applies it to Text as an anchor
| Name | Type | Description |
|---|---|---|
geometry | Geometry | Geometry | feature geometry |
text | AnchoredShape | text shape to set the anchor on |
Optional context | Transformation | RenderingContext | rendering context or its transformation |
void
▸ getClassName(): string
string
▸ 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.
| Name | Type | Description |
|---|---|---|
options | Offset | options |
this
▸ Static getClassName(): string
string