deckgl ยท console.warn
bindDeck: the grid has no position: {reason}...
Printed by deckgl, prefixed [lattice], since 1.74.0.
Warnings reference › deckgl:position
- Identifier
deckgl:position- Raised by
- deckgl
- Since
- 1.74.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 deck'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
bindDeck(grid, { deck, layers, position: { geometry: 'place' } });
Reference
Covered in full at the API reference.