Home > General Components > LegendIcon

LegendIcon

@wq/map’s <LegendIcon/> component renders an icon based on the passed name prop. The default implementation assumes that name is a path to an image. Override this component to define alternative icon rendering logic.

Source

The source code for <LegendIcon/> is available here:

  • LegendIcon.js (@wq/map)

This component should not generally need to be overridden directly.