Home > General Components > MapInteraction

MapInteraction

@wq/map-gl’s <MapInteraction/> component defines map controls (such as zoom controls). It can be overridden to provide additional tools and effects.

@wq/map-gl’s implementation includes react-mapbox-gl’s <ZoomControl/>, <RotationControl/>, and <ScaleControl/> (for web only).

Source

While @wq/map defines a placeholder implementation, @wq/map-gl’s version is more useful as reference:

  • MapInteraction.js (@wq/map-gl-web)

There is currently no implementation of this component for @wq/map-gl-native.