unable to set color when using material with FeatureCollection
I'm trying to create extruded buildings similar to the example in ign_data.html, but they are always black when I set the material. Here's my FeatureCollection:
buildingFeat = new FeatureCollection('buildings', {
source: buildingSource,
extent: loc.extent,
material: new MeshLambertMaterial({ color: '#ff0000' }),
extrusionOffset: 10,
elevation: feature => feature.getProperties().elevation,
minLevel: 1,
maxLevel: 1,
});
buildingFeat.renderOrder = 1;
instance.add(buildingFeat);
The features are at the correct location (horizontally and vertically), extrusion looks good, but the color is black. I've also tried:
style: { color: '#ff0000' }
If I don't set the material, the color does change. Any ideas?