leaflet ยท console.warn
bindLeaflet: the grid has no position: {reas...
Printed by leaflet, prefixed [lattice], since 1.76.0.
Warnings reference › leaflet:position
- Identifier
leaflet:position- Raised by
- leaflet
- Since
- 1.76.0
What happened
options.position says which column(s) place a row - { lon, lat } or { geometry } - and the binding needs them to fetch the rows in the map's view and to write its viewport filter. It was missing, named neither shape, or named a column the grid does not have (the reason says which). Nothing was bound.
The fix
Name the grid's own columns: position: { lon: 'lon', lat: 'lat' } or position: { geometry: 'place' }.
The smallest fix
bindLeaflet(grid, { map, layers, position: { geometry: 'place' } });
Reference
Covered in full at the API reference.