For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class ReferenceMapStyle
Constructors
constructor
-
Parameters
- name: string
Human-friendly name of this reference style
- id: string
ID of this reference style
Returns ReferenceMapStyle
- name: string
Methods
addVariant
getDefaultVariant
-
Get the defualt variant for this reference style
Returns MapStyleVariant
getId
-
Get the id of this reference style
Returns string
getName
-
Get the human-friendly name of this reference style
Returns string
getVariant
-
Get a given variant. If the given type of variant does not exist for this reference style, then the most relevant default variant is returned instead
Parameters
- variantType: string
Returns MapStyleVariant
getVariants
-
Get the list of variants for this reference style
Returns MapStyleVariant[]
hasVariant
-
Check if a given variant type exists for this reference style
Parameters
- variantType: string
Returns boolean
An instance of reference style contains a list of StyleVariants ordered by relevance