Select to view content in your preferred language

Legend doesn't show all symbol types properly for featurelayers

2186
3
04-03-2013 12:44 PM
RickHendrickson
Occasional Contributor
Hello,
I am noticing that the legend control doesn't render the symbols properly for featurelayers. I need to use feature layers in my legend so need to figure this out. The symbols are correct in the map element and they are also correct in the legend if I add a dynamicmapservicelayer. See the attached image that shows and example of this. The featurelayer is at the top and the dynamic layer is at the bottom.
Any ideas?
Thanks
Rick
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
Hi Rick,

Could you share a public service url allowing to reproduce that issue?

Thanks
0 Kudos
RickHendrickson
Occasional Contributor
Thanks, yes I'll send you a private message with the url.
Rick
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Hi Rick,

Thanks for the URL.

It seems the issue is not tied to the legend. The legend reflects the symbol used by the feature service.

If you look at the drawing section of your feature service:

"drawingInfo" : {"renderer" : 
    {
      "type" : "uniqueValue", 
      "field1" : "Location", 
      "field2" : null, 
      "field3" : null, 
      "fieldDelimiter" : ", ", 
      "defaultSymbol" : null, 
      "defaultLabel" : "\u003call other values\u003e", 
      "uniqueValueInfos" : [
        {
          "value" : "65", 
          "label" : "65", 
          "description" : "", 
          "symbol" : 
          {
            "type" : "esriSFS", 
            "style" : "esriSFSSolid", 
            "color" : null, 
            "outline" : 
            {
              "type" : "esriSLS", 
              "style" : "esriSLSSolid", 
              
              "color" : [
                0, 
                0, 
                0, 
                255
              ], 
              "width" : 0
            }
          }
        }, 
        {
          "value" : "Allowable", 
          "label" : "Allowable High Rise Location", 
          "description" : "", 
          "symbol" : 
          {
            "type" : "esriPFS", 
            "url" : "4B71B01F", 
            "imageData" : "iVBORw0KGgoAAAANSUhEUgAAAE0AAABUCAYAAADH0LrjAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAbRJREFUeJzt1UFKxEAQRuEIDX2GnGFurtcxXqF32ffKWejGpANdzwoovH8ZMp8yUPPK4sIry7J8gs+9XDwPWbXWj9774/h8XddHa+09w7rDK8v1F0AWsnrvw+ettS3LusMrEch9bXSeKad3ZWWeCrESvLfIeaacceapECvD8zzBrCfwrCfwPE8w6xn3rCfxPE8w6wk86wk8zxPMesY960k8zxPMegLPegLP8wSznnHPehLP8wSznsCznsDzPMGsZ9yznsTzPMGsJ/CsJ/A8TzDrGfesJ/E8TzDrCTzrCbyyruuPb/P7D5x2fG9mIyvLodZvvdbaVvZ9fz08H35w8N7MTlZrbau1Dv/pq9Val9GpECvB28rV3R43+95/tma903nOLOtc7v4puMsbnefMUk448+yurDu86fOc2V+1sj3rGfSsJ/OsJ/GsJ/CsJ/CsJ5j1DHrWk3nWk3jWE3jWE3jWE8x6Bj3ryTzrSTzrCTzrCTzrCWY9g571ZJ71JJ71BJ71BJ71BLOeQc96Ms96Es96As96As96glnPoGc9mWc9iWc9gWc9gWc9waxn0LOezLOexHsCz3NnwUrBmxoAAAAASUVORK5CYII=", 
            "contentType" : "image/png", 
            "color" : null, 
            "outline" : 
            {
              "type" : "esriSLS", 
              "style" : "esriSLSSolid", 
              
              "color" : [
                0, 
                0, 
                0, 
                255
              ], 
              "width" : 2
            }, 
            "width" : 57.75, 
            "height" : 63, 
            "angle" : 0, 
            "xoffset" : 0, 
            "yoffset" : 0, 
            "xscale" : 1, 
            "yscale" : 1
          }
        }, 
        {
          "value" : "Existing", 
          "label" : "Existing Built Height", 
          "description" : "", 
          "symbol" : 
          {
            "type" : "esriSFS", 
            "style" : "esriSFSSolid", 
            
            "color" : [
              0, 
              0, 
              0, 
              255
            ], 
            "outline" : 
            {
              "type" : "esriSLS", 
              "style" : "esriSLSSolid", 
              
              "color" : [
                0, 
                0, 
                0, 
                255
              ], 
              "width" : 0.4
            }
          }
        }, 
        {
          "value" : "Mid-Block", 
          "label" : "Mid-Block Breaking Height", 
          "description" : "", 
          "symbol" : 
          {
            "type" : "esriPFS", 
            "url" : "CF718212", 
            "imageData" : "iVBORw0KGgoAAAANSUhEUgAAAEgAAABACAYAAAC5vjEqAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAT9JREFUeJzt1rGtg0AQRdEXTAOUsZ1tRkwFxGTEFPUpgxJwBFpjWS9w8EfaOxHmLInF2DfO8zzVTK1V67rq2/Tm0cLzuj3Yq0cLzwda69XjCc/D317JXjw+hHmbkHLtfDaP9lXLsPPZPJ6H/3vnszm/QWboION0kHE6iA76begg43SQcTrIOL9BZugg43SQcTqIDvpt6CDjdJBxOsj4/QUdx6Hn9TAMH/d687g+TNOkUopKKdq2Tfu+a57n+6FePVoYx/F+YFmW+2DPHpLe4JrrXq21aw8p185n88i289k8rlcpy85n8/tvPsvOZ3M6yDgdZJwOooPoIDqIDkrsdJBxOsg4HWScDqKD6CA6iA5K7HSQcTrIOB1knA6ig+ggOogOSux0kHE6yDgdZJwOooPoIDqIDkrsIelPyrPz2fwFomI/sSM9WkQAAAAASUVORK5CYII=", 
            "contentType" : "image/png", 
            "color" : null, 
            "outline" : 
            {
              "type" : "esriSLS", 
              "style" : "esriSLSSolid", 
              
              "color" : [
                156, 
                156, 
                156, 
                255
              ], 
              "width" : 0.4
            }, 
            "width" : 54, 
            "height" : 48, 
            "angle" : 0, 
            "xoffset" : 0, 
            "yoffset" : 0, 
            "xscale" : 1, 
            "yscale" : 1
          }
        }
      ]
    }, 
    "transparency" : 0, 
    "labelingInfo" : null}, 


you'll notice that 'Allowable' and 'Mid Block' are correctly assigned to a PictureFillSymbol while others are just Black Fill Symbol.

It might happen that some of your arcmap symbols have been downgraded while publishing the feature map service.
Comparing the working and non working symbols in Arcmap might give you a clue about the problem origin.

Else it's worth posting that question on server forum in order to get better answer about the downgraded symbols for feature services.
0 Kudos