Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
this._mbDrawControl = new MapboxDraw({
displayControlsDefault: false,
modes: mbDrawModes,
});
this._mbDrawControlAdded = false;
}
constructor() {
super();
this._mbMap = null;
this._tooltipContainer = document.createElement('div');
this._mbPopup = new mapboxgl.Popup({
closeButton: false,
closeOnClick: false,
});
this._mbDrawControl = new MapboxDraw({
displayControlsDefault: false,
modes: mbDrawModes
});
this._mbDrawControlAdded = false;
}