An error in deck.gl: dimensionState is undefined in grid_layer-grid-cell
- Dominant language
- TypeScript
- Stars
- 12k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 66
Description
I am trying to create a Grid map layer for my CSV-imported geolocation data. When the app loads, the following 2 errors appear in the upper right corner:
`An error in deck.gl: d is undefined in grid_layer`
`An error in deck.gl: dimensionState is undefined in grid_layer-grid-cell`
The config that I am trying to use is:
const visualChannels = {
colorField: {
"name": "price",
"type": "integer"
},
colorScale: "quantize",
sizeField: {
"name": "price",
"type": "integer"
},
sizeScale: "linear"
};
const cellConfig = {
opacity: 0.8,
worldUnitSize: 1,
colorRange: {
colors: [
"#00939C",
"#3EADB3",
"#7CC7CB",
"#BAE1E2",
"#F8C0AA",
"#E68F71",
"#D45F39",
"#C22E00"
],
reversed: false
},
coverage: 0.7,
sizeRange: [ 0, 500 ],
percentile: [ 0, 100 ],
elevationPercentile: [ 0, 100 ],
elevationScale: 5,
"hi-precision": false,
colorAggregation: "average",
sizeAggregation: "sum",
enable3d: true
};
const layerConfig = {
dataId: "parking_data",
label: "Paid parking",
columns: {
"lat": "latitude",
"lng": "longitude",
},
isVisible: true,
visConfig: cellConfig
};
const config = {
id: "grid_layer",
type: "grid",
config: layerConfig,
visualChannels
};
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the supplied Grid layer configuration with the CSV-imported geolocation data and inspect the grid layer and grid-cell error paths named in the report. Trace where `dimensionState` becomes undefined, then verify that the configuration loads without either reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100