@react-mapboxgl/hover

2.1.6 • Public • Published

@react-mapboxgl/hover

The Hover component binds listeners for the appropriate map and layer events, and tracks changes in the 'hovering' status of features in a layer. You can either handle hover changes with the onHoverOver and onHoverOut props or pass a function as the children who will be updated with {features, properties}, where features is an array of hovered features, and properties is an array containing the unique property values of the hovered layers (useful shortcut for filters).

Usage

For an example usage, see the storybook.


Developed by TerraEclipse

Terra Eclipse, Inc. is a nationally recognized political technology and strategy firm located in Santa Cruz, CA and Washington, D.C.

Readme

Keywords

Package Sidebar

Install

npm i @react-mapboxgl/hover

Weekly Downloads

3

Version

2.1.6

License

Apache-2.0

Last publish

Collaborators

  • nbadag
  • cpsubrian