mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
fix mapbox viz (#4621)
This commit is contained in:
parent
36fa6cd7df
commit
7c5bc8d90c
@ -65,7 +65,7 @@ class ScatterPlotGlowOverlay extends React.Component {
|
|||||||
const canvas = this.refs.overlay;
|
const canvas = this.refs.overlay;
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
const radius = props.dotRadius;
|
const radius = props.dotRadius;
|
||||||
const mercator = ViewportMercator(props);
|
const mercator = new ViewportMercator(props);
|
||||||
const rgb = props.rgb;
|
const rgb = props.rgb;
|
||||||
const clusterLabelMap = [];
|
const clusterLabelMap = [];
|
||||||
let maxLabel = -1;
|
let maxLabel = -1;
|
||||||
@ -264,7 +264,7 @@ class MapboxViz extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const mercator = ViewportMercator({
|
const mercator = new ViewportMercator({
|
||||||
width: this.props.sliceWidth,
|
width: this.props.sliceWidth,
|
||||||
height: this.props.sliceHeight,
|
height: this.props.sliceHeight,
|
||||||
longitude: this.state.viewport.longitude,
|
longitude: this.state.viewport.longitude,
|
||||||
|
Loading…
Reference in New Issue
Block a user