Following your advice, I've got my layer id and sublayer ids pushed into an array that is passed to the legendLayers property. If you look at tail end of the JSON being posted (below), you'll see that legendOptions includes those. However, I'm still getting no legend at all on the PDF maps. Thoughts? I can't locate an example app which includes a legend and a print option to compare.Format PDF
Layout_Template A3 Landscape
Web_Map_as_JSON {"mapOptions":{"showAttribution":true,"extent":{"xmin":-10884089.275607755,"ymin":4039507.1494186064,"xmax":-9710016.521147506,"ymax":4407627.877639997,"spatialReference":{"wkid":102100}},"spatialReference":{"wkid":102100},"scale":2311162.217155},"operationalLayers":[{"id":"layer0","title":"layer0","opacity":1,"minScale":591657527.591555,"maxScale":2256.994353,"type":"OpenStreetMap","url":"http://a.tile.openstreetmap.org"},{"id":"Districts","title":"Districts","opacity":0.7,"minScale":0,"maxScale":0,"url":"http://165.29.23.149/arcgis/rest/services/DistrictReports_FY22/MapServer","visibleLayers":[32],"layers":[{"id":32,"layerDefinition":{"id":32,"source":{"type":"mapLayer","mapLayerId":32},"drawingInfo":{"renderer":{"type":"classBreaks","field":"Two_or_More_Races_Total_Pie","minValue":0,"classBreakInfos":[{"classMaxValue":161,"label":"0 - 161","description":"","symbol":{"color":[255,255,204,255],"outline":{"color":[0,0,0,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}},{"classMaxValue":322,"label":"162 - 322","description":"","symbol":{"color":[218,196,131,255],"outline":{"color":[0,0,0,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}},{"classMaxValue":483,"label":"323 - 483","description":"","symbol":{"color":[181,127,72,255],"outline":{"color":[0,0,0,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}},{"classMaxValue":644,"label":"484 - 644","description":"","symbol":{"color":[144,58,29,255],"outline":{"color":[0,0,0,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}},{"classMaxValue":805,"label":"645 - 805","description":"","symbol":{"color":[107,0,0,255],"outline":{"color":[0,0,0,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}],"classificationMethod":"esriClassifyEqualInterval"}},"minScale":0,"maxScale":0}}]},{"id":"map_graphics","minScale":0,"maxScale":0,"featureCollection":{"layers":[]}}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"titleText":"Two or More Races Total","authorText":"Made by: Arkansas Department of Education","copyrightText":"<copyright info here>","scaleBarOptions":{"metricUnit":"Kilometers","metricLabel":"km","nonMetricUnit":"Miles","nonMetricLabel":"mi"},"legendOptions":{"operationalLayers":[{"id":"Districts","subLayerIds":[32]}]}}}
f json
I appreciate your help!