[geo] introduce "Auto Zoom" control (#4389)

* [geo] introduce "Auto Zoom" control

On geospatial visualization, checking the "Auto Zoom" control makes it
such that the viewport is fitted to the data upon rendering the chart.

For dashboards with region filters, the map should jump to the right
position.

Eventually we should enhance this to fly and ease to the position in an
animated way.

* Added TODO notes
This commit is contained in:
Maxime Beauchemin
2018-02-13 11:10:15 -08:00
committed by GitHub
parent db24cef03b
commit e0bbb0c77e
16 changed files with 141 additions and 34 deletions

View File

@@ -188,6 +188,7 @@ class Chart extends React.PureComponent {
});
this.props.actions.chartRenderingSucceeded(this.props.chartKey);
} catch (e) {
console.error(e); // eslint-disable-line
this.props.actions.chartRenderingFailed(e, this.props.chartKey);
}
}