Skip to main content

DecimalScale

geovisto-map • Readme | API


geovisto-map / DecimalScale

Class: DecimalScale

This class provides the decimal scale.

Author​

Jiri Hynek

Extends​

Implements​

Constructors​

new DecimalScale()​

new DecimalScale(): DecimalScale

It initializes the scale.

Returns​

DecimalScale

Overrides​

MapDomain.constructor

Source​

tools/layers/choropleth/model/internal/scale/DecimalScale.ts:18

Methods​

getName()​

getName(): string

It returns the name of the map domain.

Returns​

string

Implementation of​

IScale.getName

Inherited from​

MapDomain.getName

Source​

model/internal/domain/generic/MapDomain.ts:21


getScale()​

getScale(values, size): number[]

It returns a scale which can be used for choropleth color levels.

Parameters​

• values: number[]

• size: number

Returns​

number[]

Implementation of​

IScale.getScale

Source​

tools/layers/choropleth/model/internal/scale/DecimalScale.ts:35


toString()​

toString(): string

The string representation is equal to the name of the map domain.

Returns​

string

Inherited from​

MapDomain.toString

Source​

model/internal/domain/abstract/AbstractMapDomain.ts:18


TYPE()​

static TYPE(): string

Type of the scale.

Returns​

string

Source​

tools/layers/choropleth/model/internal/scale/DecimalScale.ts:25