AnsweredAssumed Answered

Rest services JSON incomplete drawingInfo

Question asked by sclark98 on Dec 5, 2014

We have a third-party app that needs to read the json of our map services in order to display the layers properly. However, the drawingInfo in the layer's json is incomplete. Here's an example:

 

"uniqueValueInfos": [

  {

  "symbol": {

  "type": "esriSLS",

  "style": "esriSLSDash",

  "color": [

  230,

  0,

  0,

  255

  ],

  "width": 3.5

  },

  "value": "1, 1",

  "label": "CSU Preliminary",

  "description": ""

  },

  {

  "symbol": {

  "type": "esriSLS",

  "style": "esriSLSSolid",

  "color": [

  0,

  0,

  0,

  255

  ],

  "width": 8.400001525878906

  },

  "value": "1, 2",

  "label": "CSU Final",

  "description": ""

  },

  {

  "symbol": {

  "type": "esriSLS",

  "style": "esriSLSSolid",

  "color": [

  197,

  0,

  255,

  255

  ],

  "width": 3.5

  },

  "value": "1, 4",

  "label": "CSU Warranty",

  "description": ""

 

 

There are three line symbols: a dashed red line, a solid green line with black arrows and a solid purple line. If the line has an arrow, the json will only display that symbol, as in the case of the middle renderer where it only shows the size 8 black arrow and not the solid green line. The third-party app will render this layer as a solid black line.

 

How to get a more complete displayInfo in the json so all of the layers can be rendered properly?

Outcomes