Last updated

API / geotoolkit / widgets / overlays / IAnnotation / IAnnotation

Class: IAnnotation

overlays.IAnnotation.IAnnotation

Annotation

Interface

Implemented by

Table of contents

Constructors
Methods

Contents

Constructors

new IAnnotation()

new IAnnotation()

Methods

getAnchor

Abstract getAnchor(): Point

Get annotation anchor

Returns

Point

target


getClassName

getClassName(): string

Returns

string


getFillStyle

Abstract getFillStyle(): FillStyle

Return fill style

Returns

FillStyle


getLineStyle

Abstract getLineStyle(): LineStyle

Return line style

Returns

LineStyle


getName

Abstract getName(): string

Get annotation name

Returns

string

returns name


getOptions

Abstract getOptions(): Record<string, any>

Get annotation options

Returns

Record<string, any>

options


getSymbol

Abstract getSymbol(): Symbol

Get annotation symbol

Returns

Symbol


getTarget

Abstract getTarget(): Node

Get annotation target

Returns

Node

target


getText

Abstract getText(): string

Get annotation text

Returns

string

returns text


getTextStyle

Abstract getTextStyle(): TextStyle

Get text style

Returns

TextStyle


getZIndex

Abstract getZIndex(): number

Returns node z-index (null if not set)

Returns

number


setAnchor

Abstract setAnchor(anchor): IAnnotation

Set annotation anchor Returns annotation

Parameters

Name Type
anchorPoint

Returns

IAnnotation

this


setFillStyle

Abstract setFillStyle(fillStyle, merge?): IAnnotation

Sets fill style

Parameters

Name Type Description
fillStyleTypea new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

IAnnotation

this


setLineStyle

Abstract setLineStyle(lineStyle, merge?): IAnnotation

Sets line style

Parameters

Name Type Description
lineStyleTypeline style or options
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

IAnnotation

this


setName

Abstract setName(name): IAnnotation

Set annotation name

Parameters

Name Type
namestring

Returns

IAnnotation

this


setOptions

Abstract setOptions(options): IAnnotation

Set annotation options

Parameters

Name Type
optionsRecord<string, any>

Returns

IAnnotation

this


setSymbol

Abstract setSymbol(symbol): IAnnotation

Set annotation symbol

Parameters

Name Type Description
symbolSymbol(base64 in case of url)

Returns

IAnnotation

this


setTarget

Abstract setTarget(target): IAnnotation

Set annotation target

Parameters

Name Type
targetNode

Returns

IAnnotation

this


setText

Abstract setText(text): IAnnotation

Set annotation text

Parameters

Name Type
textstring

Returns

IAnnotation

this


setTextStyle

Abstract setTextStyle(textStyle, merge?): IAnnotation

Set text style

Parameters

Name Type Description
textStyleTypea new shape text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

IAnnotation

this


setZIndex

Abstract setZIndex(value): IAnnotation

Sets z-index for node (set null for default)

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

IAnnotation

this


getClassName

Static getClassName(): string

Returns

string