StyleOptions
StyleOptions =
object
Defined in: style/style.ts:99
The options object related to the Map's style related methods
Properties
globalState?
optionalglobalState?:Record<string,any>
Defined in: style/style.ts:115
Defines an initial global state for the map style. It overrides the defaults defined in the map style, as if Map.setGlobalStateProperty was called after loading the style.
localIdeographFontFamily?
optionallocalIdeographFontFamily?:string|false
Defined in: style/style.ts:111
Defines a CSS font-family fallback used only for locally generated CJK (Chinese, Japanese and Korean) characters.
The layer's text-font families are tried first, then this family, then sans-serif.
Set to false or an empty string to disable this fallback. Clusters and styles without a glyphs URL
can still render locally.
Changing this option forces a full style update.
validate?
optionalvalidate?:boolean
Defined in: style/style.ts:103
If false, style validation will be skipped. Useful in production environment.