Skip to main content

MarkerIcon

geovisto-mapReadme | API


geovisto-map / MarkerIcon

Class: MarkerIcon

This class represents custom div icon which is used to mark center of countries. It overrides L.DivIcon.

Author

Jiri Hynek

Extends

Implements

Constructors

new MarkerIcon()

new MarkerIcon(options): MarkerIcon

Parameters

options: any

Returns

MarkerIcon

Overrides

Icon<IMarkerIconOptions>.constructor

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:61

Properties

sizeBasic

private sizeBasic: number = 32

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:54


sizeDonut

private sizeDonut: number = 48

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:56


sizeGroup

private sizeGroup: number = 36

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:55


svgGroup?

private optional svgGroup: any

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:59


svgLabel?

private optional svgLabel: any

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:58

Methods

arc()

protected arc(size): Arc\<unknown, PieArcDatum\<number | object>>

Parameters

size: number

fn: LayersControlEventHandlerFn

context?: any

Returns

Arc\<unknown, PieArcDatum\<number | object>>

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:111


createIcon()

createIcon(oldIcon?): HTMLElement

It creates the icon. The method overrides the super method of Icon.

Parameters

oldIcon?: HTMLElement

Returns

HTMLElement

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:130


formatValue()

protected formatValue(value, level): string

Parameters

value: number

level: number

Returns

string

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:74


getColor()

protected getColor(level): string

Parameters

level: number

Returns

string

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:90


getLevel()

protected getLevel(value): number

Parameters

value: number

Returns

number

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:98


getPieSubvalues()

protected getPieSubvalues(): PieArcDatum\<number | object>[]

Returns

PieArcDatum\<number | object>[]

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:118


getSize()

protected getSize(): number

Returns

number

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:107


round()

protected round(value, align): number

Parameters

value: number

align: number

Returns

number

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:70


updateData()

updateData(values, animateOptions): void

It updates the data of the marker icon.

Parameters

values: IMarkerIconValueOptions

animateOptions: IDataChangeAnimateOptions

Returns

void

Implementation of

IMarkerIcon.updateData

Source

tools/layers/marker/model/internal/marker/MarkerIcon.ts:215