mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
Remove console messages on map creation (#427)
This commit is contained in:
parent
0aa18ee7ae
commit
7c97d2b723
@ -166,7 +166,6 @@ export default class Mapbox {
|
||||
Mapbox.savedMap = null;
|
||||
// TODO - need to call onload again, need to track with Promise?
|
||||
props.onLoad();
|
||||
console.debug('Reused existing mapbox map', this._map); // eslint-disable-line
|
||||
} else {
|
||||
const mapOptions = {
|
||||
container: props.container || document.body,
|
||||
@ -187,7 +186,6 @@ export default class Mapbox {
|
||||
// Attach optional onLoad function
|
||||
this.map.once('load', props.onLoad);
|
||||
this.map.on('error', props.onError);
|
||||
console.debug('Created new mapbox map', this._map); // eslint-disable-line
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user