2.1.4 • Published 7 years ago
@react-mapboxgl/toggle v2.1.4
@react-mapboxgl/toggle
The Toggle
component binds listeners for the proper map and layer click events
needed to 'toggle' features. You can either respond to toggled features with
the onToggle
prop, or pass a function as the children which will receive {features, properties}
,
where features
is an array of toggled features, and properties
is an array
containing the unique property values of the toggled 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.