Select to view content in your preferred language

AGOL Feature Layer labels are not visible after print ExportWebMap in PDF

386
0
02-28-2024 12:40 AM
Labels (1)
ShefaliMantri1
New Contributor

We are adding secured AGOL layers on map and when we try to print using ExportWebMap in pdf, layer features are visible in PDF but labels are visible.

Sample Json - layer is secured so mostly not accessible just for reference adding json

{"operationalLayers":[{"layerType":"ArcGISTiledMapServiceLayer","url":"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer","id":"topo-base-layer","title":"World Topo Map","opacity":1,"minScale":0,"maxScale":0},{"id":"FLDynamicLayer_0","title":"GD Projects","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxxxxxx/aaa/arcgis/rest/services/test1/FeatureServer/0","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":20000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[230,76,0,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[255,170,0,255],"outline":{"type":"esriSLS","color":[168,112,0,255],"width":0.7,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxxx"},{"id":"FLDynamicLayer_1","title":"GT Project Sites","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxxx/aaa/arcgis/rest/services/test2/FeatureServer/1","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":320000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[0,92,230,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[115,178,255,255],"outline":{"type":"esriSLS","color":[255,255,255,255],"width":3,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxx"},{"id":"FLDynamicLayer_2","title":"GT Replacement Projects","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxx/aaa/arcgis/rest/services/test3/FeatureServer/2","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":320000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[169,0,230,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[255,0,197,255],"outline":{"type":"esriSLS","color":[255,115,223,255],"width":1,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxx"},{"id":"FLDynamicLayer_3","title":"GT All Other Projects","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxx/aaa/arcgis/rest/services/aa/FeatureServer/3","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":320000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[0,92,230,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[115,178,255,255],"outline":{"type":"esriSLS","color":[0,112,255,255],"width":0.7,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxx"},{"id":"FLDynamicLayer_0","title":"GD Projects","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxx/aa/arcgis/rest/services/test4/FeatureServer/0","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":20000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[230,76,0,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[255,170,0,255],"outline":{"type":"esriSLS","color":[168,112,0,255],"width":0.7,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxx"},{"id":"FLDynamicLayer_1","title":"GT Project Sites","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxx.arcgis.com/aaa/arcgis/rest/services/test5/FeatureServer/1","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":320000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[0,92,230,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[115,178,255,255],"outline":{"type":"esriSLS","color":[255,255,255,255],"width":3,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxx"},{"id":"FLDynamicLayer_2","title":"GT Replacement Projects","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxx.arcgis.com/aaa/arcgis/rest/services/test6/FeatureServer/2","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":320000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[169,0,230,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[255,0,197,255],"outline":{"type":"esriSLS","color":[255,115,223,255],"width":1,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxx"},{"id":"FLDynamicLayer_3","title":"GT All Other Projects","opacity":0.7,"minScale":0,"maxScale":0,"url":"https://xxx.arcgis.com/aaaa/arcgis/rest/services/test7/FeatureServer/3","layerType":"ArcGISFeatureLayer","layerDefinition":{"definitionExpression":null,"featureReduction":null,"drawingInfo":{"labelingInfo":[{"name":"Class 1","allowOverrun":true,"deconflictionStrategy":"dynamic","labelExpression":"[ORDER_NUMBER]","labelExpressionInfo":{"expression":"$feature.ORDER_NUMBER","title":"Custom"},"labelPlacement":"esriServerPolygonPlacementAlwaysHorizontal","labelPosition":"curved","maxScale":0,"minScale":320000,"repeatLabel":false,"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Segoe UI","size":10,"weight":"bold"},"horizontalAlignment":"left","kerning":true,"haloColor":[0,92,230,255],"haloSize":1,"rightToLeft":false,"rotated":false,"text":"","verticalAlignment":"bottom","xoffset":0,"yoffset":0,"angle":0},"useCodedValues":true}],"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[115,178,255,255],"outline":{"type":"esriSLS","color":[0,112,255,255],"width":0.7,"style":"esriSLSSolid"},"style":"esriSFSSolid"}}}},"showLabels":true,"token":"xxx"},{"featureCollection":{"layers":[{"layerDefinition":{"name":"pointLayer","geometryType":"esriGeometryPoint"},"featureSet":{"geometryType":"esriGeometryPoint","features":[{"aggregateGeometries":null,"geometry":{"spatialReference":{"latestWkid":3857,"wkid":102100},"x":-13568366.491667176,"y":4582959.4897752805},"symbol":{"type":"esriPMS","xoffset":0,"yoffset":11,"contentType":"image/png","imageData":"iVBORw0KGgoAAAANSUhEUgAAABMAAAAbCAYAAACeA7ShAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo3MEQ5REU2OUQyMkIxMUUzQTVFNkQyNTlFRkY5NEEwRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo3MEQ5REU2QUQyMkIxMUUzQTVFNkQyNTlFRkY5NEEwRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjcwRDlERTY3RDIyQjExRTNBNUU2RDI1OUVGRjk0QTBGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjcwRDlERTY4RDIyQjExRTNBNUU2RDI1OUVGRjk0QTBGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+mXNq/wAAAX5JREFUeNqslTtIA0EQhmdPMNiEKFhYiVgKaVJYWooprOzSpLAI9mIRMGAhBPtUlilS2JzFiYWFpYKYxu581YJ20QRl/eeYSNzcHffYHz4m2dv5MhdyG0Uh+dheXkXZBZtgDcyCEXgAl+B0/vz10exThmQOpQ32wAxF5wd0wAGkn1MyiBZRLkCFkucObEH49ieDqIByDdYpfW7ABoRDRxZaGUUkfa1gMky1hPoMCpQ9Q7DCk9Vzikj66yyrkp1UWVa2JCuzrGhJVnTky7OR4KfRtyTrs8yzJPNY1gU6p4j7uw4egye8cHPKXPaMH6ejHNNp6adABus9Si+jrCf95EwsHsoBmCYj6aN/Mth9ORjTpC19ZE7GOQZ+QpEv+ylUhk/5QmkklDVkP0VNxsIrOd/j0pF9FCuT7Mfcri/Xp+Jorcmk5L4McK0Gvo39/L6GqQahsqj7QMMtStNYbso6pZJJTiYOAk/eR0bxbYVeUGr8f7qAcgZ2MNV7nOxXgAEAvGV7UEskyd4AAAAASUVORK5CYII=","height":20.25,"width":14.25}}]}},{"layerDefinition":{"name":"textLayer","geometryType":"esriGeometryPoint"},"featureSet":{"geometryType":"esriGeometryPoint","features":[{"aggregateGeometries":null,"geometry":{"spatialReference":{"latestWkid":3857,"wkid":102100},"x":-13568366.491667176,"y":4582959.4897752805},"symbol":{"type":"esriTS","color":[255,255,255,255],"font":{"family":"Arial","size":8,"weight":"bold"},"horizontalAlignment":"center","kerning":true,"rotated":false,"text":"A","verticalAlignment":"middle","xoffset":0,"yoffset":12,"lineWidth":192,"lineHeight":1}}]}}]},"id":"searchGraphicsLayer","title":null,"opacity":1,"minScale":0,"maxScale":0}],"mapOptions":{"extent":{"spatialReference":{"latestWkid":3857,"wkid":102100},"xmin":-13568570.423269922,"ymin":4582863.794198883,"xmax":-13568162.56006443,"ymax":4583055.185351678},"spatialReference":{"latestWkid":3857,"wkid":102100},"scale":1128.497176},"forceFeatureAttributes":true,"exportOptions":{"dpi":100,"outputSize":[700,700]},"layoutOptions":{"titleText":"1128,Portrait8.5x11,n","scaleBarOptions":{},"legendOptions":{"operationalLayers":[]}}}

0 Kudos
0 Replies