react-leaflet-gridcanvas
React leaflet component to display grid and some info in the grid.
Supports react-leaflet v1 and v2
You can see an example project on react-leaflet-components-examples repository
Usage
install package
npm i react-leaflet-gridcanvas
import to project
use it in the map
<GridCanvas />
default props
color = 'white'centerText = 'zoom: #z' // #z will replace with zoom valueoptions = noWrap: true bounds: -90 -180 90 180
centerText can be function :
<GridCanvas centerText= { // do what ever you want return `x: , y: , z: `; // or // return 'x: #x, y: #y, z: #z' }/>