Can ArcGIS server admins allow dynamic layers *except* for labels?

474
0
06-15-2020 10:00 AM
JosephElfelt1
Occasional Contributor

I produce maps using Leaflet and the ESRI Leaflet plugin. The state of Arizona has a layer at
https://arcgisserver2.morpc.org/arcgis/rest/services/legislative/OhioStateHouse/MapServer/39
that has boundary data for the state legislature districts and supports dynamiclayers.

Below is a link to the map I produced using the above layer. My code makes use of the dynamiclayers support to style the fill, lines and labels. This map works fine.

https://mappingsupport.com/p2/gissurfer.php?center=32.178995,-110.957794&zoom=10&basemap=USA_basemap...

However there are a few states where my code is unable to convince the state server to produce dynamic labels even though the server will restyle fill and lines. It is only trying to produce dynamic labels from a few servers that is causing me grief.

Hence my question of whether a server admin can turn on dynamiclayers support *except* for dynamic labels.

Here is an Ohio layer where I am having this problem.
https://arcgisserver2.morpc.org/arcgis/rest/services/legislative/OhioStateHouse/MapServer/0

The following tile call to the Ohio server returns a blank tile.

https://arcgisserver2.morpc.org/arcgis/rest/services/legislative/OhioStateHouse/MapServer/export?bbo...

Below is the dynamiclayers portion of the above tile call.

{"source":{"type":"mapLayer","mapLayerId":0},
"drawingInfo":
   {"renderer":
      {"type":"simple",
      "symbol":
         {"type":"esriSFS",
         style":"esriSFSSolid",
         "color":[0,0,0,0],
         "outline":{"type":"esriSLS","style":"esriSLSDOT","color":[0,0,0,0],"width":0}
         }
      },
      "showLabels":true,
      "labelingInfo":[
         {"labelPlacement":"esriServerPointLabelPlacementAboveRight",
         "labelExpression":"\"H-\" CONCAT [DISTRICT]",
         "useCodedValues":false,
         "symbol":
            {"type": "esriTS",
            "color": [0,0,0,255],
            "backgroundColor": [0,0,0,0],
            "borderLineSize": 0,
            "borderLineColor": [0,0,0,0],
            "haloSize": 1.5,
            "haloColor": [255,255,255,255],
            "verticalAlignment": "bottom",
            "horizontalAlignment": "left",
            "rightToLeft": false,
            "angle": 0,
            "xoffset": -20,
            "yoffset": 0,
            "kerning": true,
            "font":
               {"family": "Arial",
               "size": 12,
               "style": "normal",
               "weight": "bold",
               "decoration": "none"
               }
            }
         }
      ]
   }
}

Is it me? Is it the server? Can anyone shed light on why some servers that support dynamic layers refuse to produce dynamic labels?

Joseph Elfelt
Twitter: @mappingsupport
https://mappingsupport.com

0 Kudos
0 Replies