Skip to content

Commit a92f7ab

Browse files
authored
Example fixes. (visgl#884)
Example and docs fixes.
1 parent e7b9368 commit a92f7ab

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/layers/hexagon-cell-layer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ they will be used to calculate primitive hexagon instead of `hexagonVertices`
6767
- Default: `1`
6868

6969
Hexagon radius multiplier, between 0 - 1. The radius of hexagon is calculated by
70-
`coverage * getRadius(d)`
70+
`coverage * radius`
7171

7272
##### `elevationScale` (Number, optional)
7373

examples/brushing/deckgl-overlay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ export default class DeckGLOverlay extends Component {
160160
pickable: false,
161161
// only show source points when brushing
162162
radiusScale: startBrushing ? 3000 : 0,
163-
getColor: d => (d.gain > 0 ? targetColor : sourceColor)
163+
getColor: d => (d.gain > 0 ? targetColor : sourceColor),
164+
getTargetPosition: d => [d[0], d[1], 0]
164165
}),
165166
new ScatterplotBrushingLayer({
166167
id: 'targets-ring',

examples/layer-browser/src/examples/core-layers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ const GeoJsonLayerExample = {
8787
getElevation: f => 500,
8888
lineWidthScale: 10,
8989
lineWidthMinPixels: 1,
90-
pickable: true
90+
pickable: true,
91+
fp64: true
9192
}
9293
};
9394

0 commit comments

Comments
 (0)