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
layer: String
Default: 'basic'
Please refer to Maps API - Vector tile and Maps API - Raster tile
documentation for more details.
Can be one of
basic
, hybrid
, labels
.
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
andnight
. When used withsource: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.