Skip to content

Commit

Permalink
Fix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonicclay committed May 7, 2019
1 parent deb8728 commit 959314c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/deck/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,8 @@ export default class Example extends Component<
};

if (mode === 'elevation') {
modeConfig.calculateElevationChange = ({ pointerDownScreenCoords, screenCoords }) =>
ElevationHandler.calculateElevationChangeWithViewport(viewport, {
pointerDownScreenCoords,
screenCoords
});
modeConfig.calculateElevationChange = opts =>
ElevationHandler.calculateElevationChangeWithViewport(viewport, opts);
}

const editableGeoJsonLayer = new EditableGeoJsonLayer({
Expand Down
1 change: 1 addition & 0 deletions modules/core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ export { DrawCircleFromCenterHandler } from '@nebula.gl/layers';
export { DrawCircleByBoundingBoxHandler } from '@nebula.gl/layers';
export { DrawEllipseByBoundingBoxHandler } from '@nebula.gl/layers';
export { DrawEllipseUsingThreePointsHandler } from '@nebula.gl/layers';
export { ElevationHandler } from '@nebula.gl/layers';
1 change: 1 addition & 0 deletions modules/layers/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export {
export {
DrawEllipseUsingThreePointsHandler
} from './mode-handlers/draw-ellipse-using-three-points-handler.js';
export { ElevationHandler } from './mode-handlers/elevation-handler.js';

// Utils
export { toDeckColor } from './utils.js';
Expand Down

0 comments on commit 959314c

Please sign in to comment.