Widget settings
To set up the widget, click on the three dots next to the name of the widget and select "Configure" (see Figure 1).

In the dialog box you will see the raster and vector basemaps available for selection, for example: OSM (OpenStreetMap), OSM Topo, Esri Topo Map, Esri Street Map, etc. (see Figure 2). Use the "Raster maps" and "Vector maps" tabs to switch between them.
You can select any basemap from the list and add it by clicking on the switch next to it, after which it will be available for selection when using the widget.

To upload your own basemap, click "Add basemap". You can add both raster and vector tile basemaps. Select the tiles type, enter a basemap name, and paste the basemap link and the preview link (see Figure 3).

For example
For raster:
Basemap name — "Dark theme"
Basemap link — https://c.basemaps.cartocdn.com/rastertiles/dark_nolabels/{z}/{x}/{y}.png
Preview link — https://c.basemaps.cartocdn.com/rastertiles/dark_nolabels/2/1/1.png
For vector:
Basemap name — "Toner VT"
Basemap link — https://openmaptiles.geo.data.gouv.fr/styles/maptiler-toner/style.json

For vector basemaps, you can also set your own colors. Check "Configure colors" and choose the colors for the background, residential areas, parks, forests and grass, water, buildings, etc. (see Figure 5). This way you can create your own vector basemap.

Widget description
Click the "Gallery" icon in the lower left corner of the map window and select the current basemap for your project. To close the window, click the "Gallery" icon again (see Figure 6).

To change the colors of a vector basemap you have added, hover over it in the gallery and click the "Configure basemap colors" icon (see Figure 6). Edit the colors in the panel that opens (see Figure 7). The changes are applied to the map right away.
