Home > General Components > OverlayToggle

OverlayToggle

wq’s <OverlayToggle/> component wraps <AutoOverlay/> with a checkbox 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:

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