Select to view content in your preferred language

[Bug] symbolUtils, renderPreviewHTML and simple-fill

294
1
Jump to solution
09-20-2022 06:44 AM
NicholasWright
New Contributor II

For simple fills, for anything other than `solid` types, the preview doesn't render anything, and in the console, the arcgis internal "previewSymbol2D.js" throws an error against ".toCss is not a function".

Relevant Codepen, testing on the `/next/` version (also tested against 4.24): 

https://codepen.io/Tickthokk/pen/oNdwoEv

---

It'd be great to render polygons that are not solid!

Thank you 🙂

0 Kudos
1 Solution

Accepted Solutions
AnneFitz
Esri Regular Contributor

Hi @NicholasWright - this works as expected if you use the SimpleFillSymbol constructor instead of autocasting. Here's an updated version of your example: https://codepen.io/annefitz/pen/yLjXvgO

Hope this helps!

View solution in original post

1 Reply
AnneFitz
Esri Regular Contributor

Hi @NicholasWright - this works as expected if you use the SimpleFillSymbol constructor instead of autocasting. Here's an updated version of your example: https://codepen.io/annefitz/pen/yLjXvgO

Hope this helps!