On this page

Class ReferenceMapStyle

An instance of reference style contains a list of StyleVariants ordered by relevance

Index

Constructors

  • Parameters

    • name: string

      Human-friendly name of this reference style

    • id: string

      ID of this reference style

    Returns ReferenceMapStyle

Methods

  • Get the id of this reference style

    Returns string

  • Get the human-friendly name of this reference style

    Returns string

  • 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

  • Check if a given variant type exists for this reference style

    Parameters

    • variantType: string

    Returns boolean

Was this helpful?
SDK JS
Reference
ReferenceMapStyle