react-leaflet-cursor-coordinates
v2.0.0
Published
A simple react-leaflet package that renders cursor coordinates on mouse move
Downloads
12
Maintainers
Readme
react-leaflet-cursor-coordinates
To install, run:
npm install --save react-leaflet-cursor-coordinates
Then in your working file, use the package as shown below
import CursorCoordinates from 'react-leaflet-cursor-coordinates'
<MapContainer
{/*more code here */}
>
CursorCoordinates />
</MapContainer>
The package depends on react and react-leaflet and thus assumes that you have already installed the pacakges