OlBasemapSwitcherComponent

Interactive basemap switcher control allowing users to switch between different base tile providers dynamically.

TypeScriptexample.ts
import { OlBasemapSwitcherComponent } from '@angular-helpers/openlayers/controls'

# Inputs

InputTypeDefaultDescription
basemapsBasemapConfig[][{ id: 'osm', name: 'OpenStreetMap', type: 'osm' }]Available basemap configurations
activeBasemapstringosmActive basemap configuration ID
position'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'bottom-leftPlacement on the map layout

# Outputs

OutputTypeDescription
basemapChangestringEmitted with the new active basemap ID when chosen
LCP N/A
CLS N/A
INP N/A