Maps SDK for Web

IMapThemeOptions

Options for setting the map theme used in Map options. Either this option or style may be provided but not both.

Properties

source: String

Default: 'vector'

Source format for tiles. Can be vector or raster.

style: String | URL

Default: 'main'

The map style. It can be one of following types:
  • String with style name. Supported values are: main and night. When used with source:vector option, those styles are retrieved from the styles directory path and follow the naming convention: [LAYER_NAME]_[STYLE_NAME].json (eg. basic_night.json). You can add your own style using this convention.
  • URL to the JSON object conforming to the schema described in this compatible specification.
  • JSON object conforming to the mentioned specification.