0

The polygon and Trash Control Buttons for MapBox are seen empty as below (functionality works perfectly).

Output

this.draw = new MapboxDraw({
    userProperties: true,
    displayControlsDefault: false,
    controls: {
      combine_features: false,
      uncombine_features: false,
      polygon: true,
      trash: true
    }
  });
  this.map.addControl(this.draw, 'top-left');

Expected Output Expected Output

1 Answers1

0

Please add this to your styles array in your angular.json and it'll work.

"styles": [ "./node_modules/mapbox-gl/dist/mapbox-gl.css",