Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

BasemapSwitcher

A toggle between the loidolt basemap, the plain one, and styles of your own.

import { BasemapSwitcher } from '@loidolt/theme-maps';

Example

Focus the map to move it: arrow keys pan, plus and minus zoom, Shift with the arrows rotates and tilts.

Showing: default

Props

Generated from the component source, so it cannot drift from the implementation.

BasemapSwitcher props
PropTypeDefaultNotes
basemaps Basemap[][ { id: 'default', label: 'Map' }, { id: 'blank', label: 'Plain' }, ]The choices, in order. Defaults to the loidolt basemap and the plain one.
class string—
label string'Basemap'Names the group of choices.
onChange (id: string) => void—
position Corner'top-left'