Viral Panchal
Viral Panchal

Reputation: 1

MapBox control buttons are empty

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

Upvotes: 0

Views: 456

Answers (1)

Nirav Ghodadra
Nirav Ghodadra

Reputation: 352

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

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

Upvotes: 0

Related Questions