Not positive what exactly cause this (could be a racing situation), but the left side's symbol is rendered on server (result of a legend operation), and right side symbol is rendered on client by dojo using the renderer information of the layer. Server symbol should be used whenever possible because they are more faithfully representing the mxd than browser renderered. However, there are certain cases the client symbols are used either because server symbol not returned in an async request queue, or not available. It is possible to force the order of /layers/ and /legend/ call in the TOC code, but it could get messy when trying to handle older version of AGS server when /legend/ operation is not possible and need to use arcgis.com's SOAP utility. And that's not the good solution anyway. It should be solved at REST API level. The /legend/ and /layers/ operations have many redundancy and overlapping, and not consistent even for server symbol rendering. I have a few bugs reported and enhancement for the REST API to combine legend and layers operation for several years, but nothing has happened yet.
Oops! Here it is sorry!
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.