useDrag
The drag hook takes an object with the following props:
- ref: A reference to the map component,
- defaultCenter: An optional initial center coordinate,
- zoom: The current zoom level,
- tileSize: The size of a map tile,
The drag hook takes an object with the following props: