Skip to content

Commit

Permalink
update doc code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xintong Xia committed Apr 2, 2019
1 parent 283d65d commit 865279a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docs/layers/grid-cell-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ const App = ({data, viewport}) => {
const layer = new GridCellLayer({
id: 'grid-cell-layer',
data,
cellSize: 500,
pickable: true,
extruded: true,
getPosition: d => d.position,
getColor: d => d.color,
getElevation: d => d.elevation
cellSize: 200,
getPosition: d => d.centroid,
getColor: d => [48, 128, d.value * 255, 255],
getElevation: d => d.value * 5000
});

return (<DeckGL {...viewport} layers={[layer]} />);
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/demos/layer-demos.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ export const ColumnLayerDemo = createLayerDemoClass({
Layer: ColumnLayer,
dataUrl: `${DATA_URI}/hexagons.json`,
props: {
diskResolution: 12,
radius: 250,
angle: Math.PI / 2,
diskResolution: 12,
extruded: true,
pickable: true,
getPosition: d => d.centroid,
Expand Down

0 comments on commit 865279a

Please sign in to comment.