fix mapbox viz (#4621)

This commit is contained in:
Grace Guo 2018-03-15 15:06:41 -07:00 committed by GitHub
parent 36fa6cd7df
commit 7c5bc8d90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class ScatterPlotGlowOverlay extends React.Component {
const canvas = this.refs.overlay;
const ctx = canvas.getContext('2d');
const radius = props.dotRadius;
const mercator = ViewportMercator(props);
const mercator = new ViewportMercator(props);
const rgb = props.rgb;
const clusterLabelMap = [];
let maxLabel = -1;
@ -264,7 +264,7 @@ class MapboxViz extends React.Component {
}
render() {
const mercator = ViewportMercator({
const mercator = new ViewportMercator({
width: this.props.sliceWidth,
height: this.props.sliceHeight,
longitude: this.state.viewport.longitude,