Home > Overlay Components > Empty

Empty

@wq/map’s <Empty/> overlay component defines a non-rendered layer that essentially is just to provide a toggle-able entry in the legend. An empty layer can be used with a custom component somewhere else in the tree that calls useMapState() and renders accordingly.

Source

The default Empty implementation is just null, as defined in <AutoOverlay/>. If an explicit Empty component is registered it will be used instead.