Reputation: 2390
I have a LeafletJs Map with a Lat / Lon graticule. However what I would like at this point is to overlay a grid on the map with a fixed number of rows & columns (say, 19 rows and 17 columns), where the little rectangles that make up the grid would not change size as I zoom in and out on the map. How would I do that?
Upvotes: 4
Views: 7309
Reputation: 895
There is a Leaflet plugin called leaflet-virtual-grid (based on L.Grid) which does what you want. The provided examples need a few fixes to work, here is the result.
I didn't see any option to make the x and y length different.
Upvotes: 5