Class MapStyle

Source

Constructors§

§

new MapStyle(): MapStyle

Properties§

§protected static _current: IMapStyleMapStyle._default

Current map style

§protected static _currentStyle: string'default'

Current map style id

§protected static _default: IMapStyle...

Default map style

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

Highlight color

§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