Home > General Components > Legend

Legend

wq’s <Legend/> component renders the map engine’s Legend component (if applicable), with BasemapToggle / OverlayToggle as children.

Source

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

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