API / geotoolkit / map / features / adapters / Center / Center
Calculates geometry center and applies it to Text as an anchor
Constructors
Constructors
• new Center(mode?)
| Name | Type | Description |
|---|---|---|
Optional mode | Mode | geometry center to anchor mode |
Methods
▸ apply(geometry, text, context?): void
Calculates geometry center and applies it to Text as an anchor
| Name | Type | Description |
|---|---|---|
geometry | GeometryBase | feature geometry |
text | Text | text shape to set the anchor on |
Optional context | Transformation | RenderingContext | rendering context or its transformation |
void
▸ getClassName(): string
string
▸ Static getClassName(): string
string