Skip to content

Commit

Permalink
fix(Feature2Texture): prevent empty style
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff authored and jailln committed Jul 12, 2023
1 parent 3adbf39 commit ab5713a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converter/Feature2Texture.js
Expand Up @@ -151,7 +151,7 @@ const featureExtent = new Extent('EPSG:4326', 0, 0, 0, 0);
export default {
// backgroundColor is a THREE.Color to specify a color to fill the texture
// with, given there is no feature passed in parameter
createTextureFromFeature(collection, extent, sizeTexture, style, backgroundColor) {
createTextureFromFeature(collection, extent, sizeTexture, style = {}, backgroundColor) {
let texture;

if (collection) {
Expand Down

0 comments on commit ab5713a

Please sign in to comment.