Select to view content in your preferred language

createSwatch doesn't work anymore since 200.5 with

126
2
2 weeks ago
dev4567
Emerging Contributor

Context 

  • use custom `DictionarySymbolStyle` to render App6D symbols;
  • use "ORDERED ANCHOR POINTS" for the dictionary "model" configuration;
  • call `createSwatch(scale, width, height)` at symbol obtained from the dictionary;

Issue

For the symbols with the `CIMGeometricEffectControlMeasureLine` `createSwatch` doesn't work properly anymore – the bitmap returned from the function has a single diagonal line no matter what dictionary content is. Though everything worked well with the SDK 200.4. Note: map rendering still works fine, it's only the `createSwatch` function has issue.

 

0 Kudos
2 Replies
PreetiMaske
Esri Regular Contributor

Nothing jumps out to me why would `createSwatch` be different in 200.4. No changes went in on that front, but I am happy to take a look. Can you please share the SIDC code and the two images before and after 200.4 so I can see what is the difference?
Also another reason could the version of App6D is outdated. Where did you get the App6D stylx file from that is used in your app? 

 

0 Kudos
dev4567
Emerging Contributor

The style dictionary is custom but based on the app6d file provided here – also, it produces the same problematic behaviour described: https://www.arcgis.com/home/item.html?id=ef2f9d1d572d405ab47675679b07ccd4

 

As for the SIDC, it' basically any (I suspect) with the applied effect of `CIMGeometricEffectControlMeasureLine` https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/control-measure-line-symbol-e...

E.g. 10012500003423000000

dev4567_0-1728284540061.png

dev4567_1-1728284555583.png

 

0 Kudos