console.log map errors.

This commit is contained in:
orangemug 2019-10-26 18:27:11 +01:00
parent 8dfc16e7ee
commit c588164190

View file

@ -180,6 +180,10 @@ export default class MapboxGlMap extends React.Component {
}) })
}) })
map.on("error", e => {
console.log("ERROR", e);
})
map.on("zoom", e => { map.on("zoom", e => {
this.setState({ this.setState({
zoom: map.getZoom() zoom: map.getZoom()