Select to view content in your preferred language

CIMPolygonSymbol rendering issue in JS API

4512
3
Jump to solution
10-12-2022 07:50 AM
MatejVrtich
Esri Contributor

Hi,

The CIMPolygonSymbol is not rendering it's CIMSolidStroke symbol layers if also using a CIMSolidFill symbol layer with a color set by primitive override. If disabling the primitive override for a CIMSolidFill color and using a fixed color value, the CIMSolidStroke layers are rendered just fine. Also, the symbol is rendered correctly in ArcGIS Pro. Only the JS API is troubled by the problem.

Here is a sample map: https://www.arcgis.com/apps/mapviewer/index.html?webmap=92ed57d2bf34475a8f5e2bb730eeaeaf.

The webmap rendered in ArcGIS Pro:

MatejVrtich_0-1665586136806.png

The webmap rendered in JS API:

MatejVrtich_1-1665586185011.png

Any idea how to solve this?

Thanks,

Matej

0 Kudos
2 Solutions

Accepted Solutions
AnneFitz
Esri Regular Contributor

Hi @MatejVrtich, this appears to be a bug - we'll take a look. Thanks for letting us know!

View solution in original post

AnneFitz
Esri Regular Contributor

@MatejVrtich - We've installed a fix for this for the November release. You can view the fix using the /next version of the API. Here's a basic app that loads your webmap using the /next version: https://codepen.io/annefitz/pen/BaxeZYw 

Let me know if you are still running into any issues. Thank you!

View solution in original post

3 Replies
AnneFitz
Esri Regular Contributor

Hi @MatejVrtich, this appears to be a bug - we'll take a look. Thanks for letting us know!

AnneFitz
Esri Regular Contributor

@MatejVrtich - We've installed a fix for this for the November release. You can view the fix using the /next version of the API. Here's a basic app that loads your webmap using the /next version: https://codepen.io/annefitz/pen/BaxeZYw 

Let me know if you are still running into any issues. Thank you!

MatejVrtich
Esri Contributor

Hi @AnneFitz, perfect, works like a charm.

Thank you for fixing this!

Matej

0 Kudos