autk-map / MapStyle
Class: MapStyle
Defined in: map-style.ts:9
Constructors
Constructor
new MapStyle():
MapStyle
Returns
MapStyle
Properties
_current
protectedstatic_current:IMapStyle=MapStyle._default
Defined in: map-style.ts:37
Current map style
_currentStyle
protectedstatic_currentStyle:string='default'
Defined in: map-style.ts:41
Current map style id
_default
protectedstatic_default:IMapStyle
Defined in: map-style.ts:13
Default map style
_highlight
protectedstatic_highlight:`#${string}`='#5dade2'
Defined in: map-style.ts:32
Highlight color
_notFound
protectedstatic_notFound:`#${string}`='#FFFFFF'
Defined in: map-style.ts:28
Not found color
Accessors
currentStyle
Get Signature
get
staticcurrentStyle():string
Defined in: map-style.ts:47
Get the current map style id
Returns
string
The current map style id
Methods
getColor()
staticgetColor(type):ColorRGB
Defined in: map-style.ts:55
Get the feature color
Parameters
type
keyof IMapStyle
Feature type
Returns
getHighlightColor()
staticgetHighlightColor():ColorRGB
Defined in: map-style.ts:95
Get the highlight color
Returns
The highlight color
setCustomStyle()
staticsetCustomStyle(style):void
Defined in: map-style.ts:87
Set the feature color
Parameters
style
new map style json
Returns
void
setPredefinedStyle()
staticsetPredefinedStyle(style):void
Defined in: map-style.ts:67
Set the feature color
Parameters
style
string
new map style in id: #rrggbb format
Returns
void