Optional
baseThe base URL for loading external resources like tiles, sprites, and fonts. Default: document.location.origin (in the browser), or 'https://tiles.versatiles.org'
Optional
boundsThe bounding box for the map, formatted as [sw.lng, sw.lat, ne.lng, ne.lat]. Default: [-180, -85.0511287798066, 180, 85.0511287798066]
Optional
colorsAn object specifying overrides for default color values, keyed by the color names.
Optional
fontsAn object specifying overrides for default font names, keyed by the font names.
Optional
glyphsThe URL template for loading font glyphs, formatted with '{fontstack}' and '{range}' placeholders. Default: '/assets/glyphs/{fontstack}/{range}.pbf'
Optional
hideIf set to true, hides all map labels. Default: false
Optional
languageSet the language ('en', 'de') of all map labels. A null value means that the language of the country in which the label is drawn will be used. Default: null
Optional
recolorOptions for color adjustments and transformations applied to the entire style.
Optional
spriteThe URL for loading sprite images and metadata. Default: [{ id: 'basics', url: '/assets/sprites/basics/sprites' }]
Optional
tilesAn array of URL templates for loading map tiles, using '{z}', '{x}', and '{y}' placeholders. Default: ['/tiles/osm/{z}/{x}/{y}']
Options for configuring a style builder.