Home > General Components > BasemapToggle

BasemapToggle

wq’s <BasemapToggle/> component wraps <AutoBasemap/> with a radio switch that controls active state.

Source

While @wq/map defines a placeholder implementation, @wq/map-gl and @wq/leaflet’s versions are more useful as reference:

  • AutoBasemap.js (@wq/map-gl)
  • Legend.js (@wq/leaflet)