AnsweredAssumed Answered

Replace Legend data from ArcGIS Server with simplemarker symbol

Question asked by mua9999 on Nov 24, 2015
Latest reply on Nov 24, 2015 by mua9999



I want to replace the symbol of some feature layer legend symbology that comes from the ArcGIS server legend url with simplemarker symbol defined in json in my app.config  in javascript code. I am able to get the legend symbol using ajax call to the legend on the REST endpoint EST endpoint (.../MapServer/legend?f=pjson) to obtain the necessary info including the symbol img src and content in base 64 encrypted data. However, i want to replace the symbol with a custom simplemarker symbol that i have defined in my appconfig for some specific feature layers. However when i assign the simplemarker symbol to the legend.legenddata the symbol does not show on the legend table of content as expected. I am not sure what is missing.



"type": "esriSMS",

"style": "esriSMSSquare",

"color": [76,115,0,255],

"size": 8,

"angle": 0,

"xoffset": 0,

"yoffset": 0



Any useful advice will be greatly appreciate. Thank you in advance.