Whenever I try to set a style other than 'solid' on a SimpleFillSymbol, the geometry gets rendered empty, with only the outline being drawn. Is this a known issue? I couldn't find any similar posts on this forum.
So for example, this works:
var graphic = map.graphics.graphics; // first graphic of map graphics list (assuming it is a polygon)
We are using JSAPI 4.0 and developing in Typescript. We tried setting the value in the constructor, afterwards, with and without specifying color - the result is the same. Nothing is rendered unless the style is 'solid'.
Oh sorry. Test the following on the Esri sample (Get started with graphics - 4.0 ) and it works:
polygonGraphic.symbol.style = "diagonal-cross"
Retrieving data ...