📄️ Overview
Three hooks are provided for interaction.
📄️ useDrag
The drag hook takes an object with the following props:
📄️ useZoom
The zoom hook takes an object with the following props:
📄️ useClick
The click hook takes an object with the following props:
📄️ Hook Writing
The hooks allow interaction to the map.
📄️ Coordinate Systems
There are three coordinate systems involved (and a projection!).
📄️ Dragging
Dragging the map is achieved by changing the center coordinate. When
📄️ Clicking
The primary function of the click hook is to translate the screen