Select to view content in your preferred language

Web Styles/DictionaryRenderer with Javascript client/server design

690
3
Jump to solution
10-15-2023 08:38 AM
JRHockersmith
Occasional Contributor

Currently have a WPF app using the DictionaryRenderer and Military Symbology .stylx files.  Looking into creating a web-based app.  Does anyone know if the Web Styles over the web use many round-trips to the server to create the specific symbols, or does the server send the entire .stylx implementation to the dictionary renderer and symbol creation is client-side only?  Concerned about performance issues if the server has to build the symbols.

0 Kudos
1 Solution

Accepted Solutions
AnneFitz
Esri Regular Contributor

Yes, the Arcade script executes on the client-side and makes requests for the necessary symbol parts if they are not stored in the cache. For more information and examples of military symbology in the JavaScript Maps SDK, check out the Military Symbology Support in ArcGIS story map. Thanks!

View solution in original post

0 Kudos
3 Replies
AnneFitz
Esri Regular Contributor

The dictionary renderer requests the different symbol parts on the fly. It gets the names of the parts at startup, and make requests as needed (depending on which symbols are used). There is an internal cache at the dictionary level (and obviously at the browser level), so once a symbol gets to the client, it will be used from the cache.

0 Kudos
JRHockersmith
Occasional Contributor

Thank you for responding.  To get the complete picture I have a couple more questions.  Does the Arcade script execute at the web client?  Then the Arcade script returns keys of the symbol parts, then retrieves those symbol parts from the server if not in cache?  The military symbology .stylx is quite large and complex.  Do you have a sample of a web implementation using those .stylx files?

0 Kudos
AnneFitz
Esri Regular Contributor

Yes, the Arcade script executes on the client-side and makes requests for the necessary symbol parts if they are not stored in the cache. For more information and examples of military symbology in the JavaScript Maps SDK, check out the Military Symbology Support in ArcGIS story map. Thanks!

0 Kudos