Reputation: 1
The polygon and Trash Control Buttons for MapBox are seen empty as below (functionality works perfectly).
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
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