Class MapStyle

Source

Constructors§

§

new MapStyle(): MapStyle

Properties§

Source§

protected static _current: IMapStyle = MapStyle._default

Current map style

Source§

protected static _currentStyle: string = 'default'

Current map style id

Source§

protected static _default: IMapStyle = ...

Default map style

Source§

protected static _highlight: `#${string}` = '#5dade2'

Highlight color

Source§

protected static _notFound: `#${string}` = '#FFFFFF'

Not found color

Accessors§

Source§

get currentStyle(): string

Get the current map style id

Methods§

Source§

getColor(type: keyof IMapStyle): ColorRGB

Get the feature color

Source§

getHighlightColor(): ColorRGB

Get the highlight color

Source§

setCustomStyle(style: IMapStyle): void

Set the feature color

Source§

setPredefinedStyle(style: string): void

Set the feature color