diff --git a/src/PointMap.js b/src/PointMap.js index 5c076f4c4fca896c2170420b66576299262f0a26..3f484f0c43b608b9dd0181b9232e086fda362d06 100644 --- a/src/PointMap.js +++ b/src/PointMap.js @@ -317,7 +317,12 @@ class PointMap extends Component { }, filled: true, extruded: true, - getElevation: d => d.get_avg_traffic_vol() * 20, + getElevation: d => { + let zoom = this.state.viewport.zoom; + // super hacky way of scaling the bar height + let vol_scale = 20 * (1.5 ** 6); + return d.get_avg_traffic_vol() * vol_scale / (1.5 ** zoom); + }, getLineColor: d => { if (this.state.mouseover === d.get_id()) { return [255, 0, 0];