AnsweredAssumed Answered

Problem on Web Map Export for ArcGIS server 10.2

Question asked by musaserkan on Mar 22, 2016
Latest reply on Apr 4, 2016 by musaserkan

Hi Guys,

I am having problem with printing service which is working on ArcGIS server 10.2.

I am trying to a printout from web map export geoprocessing service and there some problems with Legend. Some times the legend is not visible. I am facing problem on different scenarios. I could not identify it exactly.

On below json, for id:1, if i add labelinginfo legend is unvisible but if i remove labelinginfo, legend is visible.

In another json, if i add "name" information for layer in english, legend is visible, but if i write some name in Arabic, legend is not visible.

So i want to know is there any one faced this type of problems?

 

 

{

  "operationalLayers": [

    {

      "id": "a",

      "url": "xxxxxxxxxxxxxxxxxxxx?token=xxxxxxxxx",

      "title": "MOA Map Layers",

      "opacity": 1,

      "visibility": true,

      "visibleLayers": [

        27,

        87,

        89,

        58,

      ],

      "layers": [

        {

          "id": 0,

          "layerDefinition": {

            "definitionExpression": "ISO_CC <> 'SA'",

            "name": "دول العالم",

            "drawingInfo": {

              "transparency": 50,

              "showLabels": true

            },

            "source": {

              "type": "mapLayer",

              "mapLayerId": 89

            }

          }

        },

        {

          "id": 1,

          "layerDefinition": {

            "definitionExpression": "DATA_SOURCE = 'Atlas Wadi'",

            "name": "الأودية الرئيسية",

            "drawingInfo": {

              "renderer": {

                "type": "simple",

                "symbol": {

                  "type": "esriSFS",

                  "outline": {

                    "type": "esriSLS",

                    "style": "esriSLSSolid",

                    "color": [

                      64,

                      101,

                      235,

                      255

                    ],

                    "width": 1

                  },

                  "style": "esriSFSSolid",

                  "color": [

                    1,

                    169,

                    230,

                    255

                  ]

                }

              },

              "transparency": 1,

              "showLabels": true,

              "labelingInfo": [

                {

                  "labelPlacement": "esriServerPolygonPlacementAlwaysHorizontal",

                  "labelExpression": "[NAME_AR]",

                  "symbol": {

                    "type": "esriTS",

                    "color": [

                      52,

                      52,

                      52,

                      255

                    ],

                    "verticalAlignment": "bottom",

                    "horizontalAlignment": "left",

                    "font": {

                      "family": "Arial",

                      "size": 10,

                      "style": "normal",

                      "weight": "bold",

                      "decoration": "none"

                    }

                  },

                  "minScale": 0,

                  "maxScale": 0,

                  "where": ""

                }

              ]

            },

            "source": {

              "type": "mapLayer",

              "mapLayerId": 58

            }

          }

        },

        {

          "id": 2,

          "layerDefinition": {

            "drawingInfo": {

              "transparency": 0.5

            },

            "source": {

              "type": "mapLayer",

              "mapLayerId": 27

            }

          }

        },

        {

          "id": 3,

          "layerDefinition": {

            "name": "حدود المناطق",

            "drawingInfo": {

              "renderer": {

                "type": "simple",

                "symbol": {

                  "type": "esriSFS",

                  "style": "esriSFSNull ",

                  "color": [

                    104,

                    104,

                    104,

                    255

                  ],

                  "outline": {

                    "type": "esriSLS",

                    "style": "esriSLSSolid",

                    "color": [

                      104,

                      104,

                      104,

                      255

                    ],

                    "width": 1.2

                  }

                },

                "label": "",

                "description": "<description>"

              },

              "transparency": 50

            },

            "source": {

              "type": "mapLayer",

              "mapLayerId": 87

            }

          }

        }

      ]

    }

  ],

  "baseMap": {

    "title": "Imagery",

    "baseMapLayers": [

      {

        "url": "xxxxxxxxxxxxxxx"

      }

    ]

  },

  "mapOptions": {

    "extent": {

      "xmin": 31.716,

      "ymin": 15.387,

      "xmax": 57.65,

      "ymax": 33.471,

      "spatialReference": {

        "wkid": 4326

      }

    },

    "scale": 7000000,

    "rotation": 0

  },

  "exportOptions": {

    "dpi": 96,

    "outputSize": [

      1899,

      883

    ]

  },

  "layoutOptions": {

    "titleText": "الأودية الرئيسية بالمملكة العربية السعودية",

    "copyrightText": " هذه الخريطة انتجت من خلال بوابة نظم المعلومات الجغرافية",

    "authorText": "",

    "legendOptions": {

      "operationalLayers": [

        {

          "id": "a",

          "sublayerIds": [

            0,

            1,

            2,

            3,4,5

          ]

        }

      ]

    }

  }

}

Outcomes