Skip to content

Commit

Permalink
fix mapbox viz (apache#4621)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored Mar 15, 2018
1 parent 36fa6cd commit 7c5bc8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/assets/visualizations/mapbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7c5bc8d

Please sign in to comment.