Select to view content in your preferred language

Export task not showing all labels

437
1
02-08-2023 05:53 AM
PaulPark
New Contributor

When using the export task (https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute) only the label for the Point is showing. Am I missing something? 

 

Thanks

 

{"operationalLayers":[{"layerType":"ArcGISTiledMapServiceLayer","url":"https://utility.arcgis.com/usrsvcs/servers/00b35f155103434fa2ed9ac67876102f/rest/services/BaseMap_OS...","id":"BaseMap_OS_VML_MasterMap_6625","title":"BaseMap_OS_VML_MasterMap","opacity":1,"minScale":500000000,"maxScale":250},{"featureCollection":{"layers":[{"layerDefinition":{"name":"","geometryType":"esriGeometryPolygon","drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSFS","color":[34,139,34,179],"outline":{"type":"esriSLS","color":[0,0,0,255],"width":1,"style":"esriSLSSolid"},"style":"esriSFSSolid"}},"labelingInfo":[{"labelExpression":"[compartmentName]","labelExpressionInfo":{"expression":"$feature.compartmentName"},"repeatLabel":true,"symbol":{"type":"esriTS","color":[0,0,0,255],"font":{"family":"sans-serif","size":20,"weight":"bold"},"horizontalAlignment":"center","kerning":true,"haloColor":[255,255,255,255],"haloSize":9,"rotated":false,"text":"","verticalAlignment":"baseline","xoffset":0,"yoffset":0,"angle":0}}]},"fields":[{"alias":"ObjectID","editable":true,"length":-1,"name":"ObjectID","nullable":true,"type":"esriFieldTypeOID"},{"alias":"compartmentName","editable":true,"length":-1,"name":"compartmentName","nullable":true,"type":"esriFieldTypeString"}]},"featureSet":{"geometryType":"esriGeometryPolygon","features":[{"aggregateGeometries":null,"geometry":{"spatialReference":{"latestWkid":27700,"wkid":27700},"rings":[[[359125.3440371452,173149.57548723381],[359170.7285226895,173168.08758002162],[359177.4466208786,173170.77481929728],[359177.2973298077,173171.07340143903],[359179.8352780125,173164.8031764625],[359184.7618833512,173129.1226105247],[359180.7310244377,173117.32861592603],[359175.9537101699,173128.07757302863],[359165.0554619964,173126.7339533908],[359161.7710584373,173128.97331945383],[359139.22810673603,173118.8215266347],[359125.34403714514,173149.57548723381]]]},"symbol":null,"attributes":{"compartmentName":"100-A"}},{"aggregateGeometries":null,"geometry":{"spatialReference":{"latestWkid":27700,"wkid":27700},"rings":[[[359161.4724762956,173128.82402838298],[359148.7827352717,173112.5513016582],[359139.2281067361,173118.82152663474],[359161.47247629566,173128.82402838298]]]},"symbol":null,"attributes":{"compartmentName":"100-b"}}]}}]},"showLabels":true,"id":"186314718a6-layer-1","title":"","opacity":1,"minScale":0,"maxScale":0},{"featureCollection":{"layers":[{"layerDefinition":{"name":"","geometryType":"esriGeometryPolyline","drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSLS","color":[0,0,0,255],"width":2,"style":"esriSLSSolid","cap":"butt"}},"labelingInfo":[{"labelExpression":"[compartmentName]","labelExpressionInfo":{"expression":"$feature.compartmentName"},"repeatLabel":true,"symbol":{"type":"esriTS","color":[0,0,0,255],"font":{"family":"sans-serif","size":20,"weight":"bold"},"horizontalAlignment":"center","kerning":true,"haloColor":[255,255,255,255],"haloSize":9,"rotated":false,"text":"","verticalAlignment":"baseline","xoffset":0,"yoffset":0,"angle":0}}]},"fields":[{"alias":"ObjectID","editable":true,"length":-1,"name":"ObjectID","nullable":true,"type":"esriFieldTypeOID"},{"alias":"compartmentName","editable":true,"length":-1,"name":"compartmentName","nullable":true,"type":"esriFieldTypeString"}]},"featureSet":{"geometryType":"esriGeometryPolyline","features":[{"aggregateGeometries":null,"geometry":{"spatialReference":{"latestWkid":27700,"wkid":27700},"paths":[[[359143.2589656495,173103.44454633517],[359166.5483727052,173115.089249863],[359168.7877387682,173114.19350343777],[359171.4749780439,173114.0442123669],[359174.01292624866,173115.38783200472]]]},"symbol":null,"attributes":{"compartmentName":"Compartment-Line"}}]}}]},"showLabels":true,"id":"186314718af-layer-2","title":"","opacity":1,"minScale":0,"maxScale":0},{"featureCollection":{"layers":[{"layerDefinition":{"name":"","geometryType":"esriGeometryPoint","drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSMS","color":[34,139,34,179],"angle":0,"xoffset":0,"yoffset":0,"size":14,"style":"esriSMSCircle","outline":{"type":"esriSLS","color":[0,0,0,255],"width":1,"style":"esriSLSDash"}}},"labelingInfo":[{"labelExpression":"[compartmentName]","labelExpressionInfo":{"expression":"$feature.compartmentName"},"repeatLabel":true,"symbol":{"type":"esriTS","color":[0,0,0,255],"font":{"family":"sans-serif","size":20,"weight":"bold"},"horizontalAlignment":"center","kerning":true,"haloColor":[255,255,255,255],"haloSize":9,"rotated":false,"text":"","verticalAlignment":"baseline","xoffset":-20,"yoffset":-15,"angle":0}}]},"fields":[{"alias":"ObjectID","editable":true,"length":-1,"name":"ObjectID","nullable":true,"type":"esriFieldTypeOID"},{"alias":"compartmentName","editable":true,"length":-1,"name":"compartmentName","nullable":true,"type":"esriFieldTypeString"}]},"featureSet":{"geometryType":"esriGeometryPoint","features":[{"aggregateGeometries":null,"geometry":{"spatialReference":{"latestWkid":27700,"wkid":27700},"x":359170.4299405478,"y":173119.12010877646},"symbol":null,"attributes":{"compartmentName":"Compartment-Sub"}}]}}]},"showLabels":true,"id":"186314718b6-layer-3","title":"","opacity":1,"minScale":0,"maxScale":0}],"mapOptions":{"extent":{"spatialReference":{"wkid":27700},"xmin":359114.05423575017,"ymin":173062.46723715714,"xmax":359196.07523312554,"ymax":173211.95711947026},"spatialReference":{"latestWkid":27700,"wkid":27700},"showAttribution":true},"exportOptions":{"dpi":96,"outputSize":[800,1100]},"layoutOptions":{"titleText":"","authorText":"","copyrightText":"","customTextElements":[{"date":"08/02/2023"}],"scaleBarOptions":{},"legendOptions":{"operationalLayers":[{"id":"BaseMap_OS_VML_MasterMap_6625"},{"id":"186314718a6-layer-1"},{"id":"186314718af-layer-2"},{"id":"186314718b6-layer-3"}]}}}

0 Kudos
1 Reply
PaulPark
New Contributor

Interestingly using the Print widget causes the same issue starting with the map: 

PaulPark_0-1675877337800.png

it only labels the first point 

PaulPark_1-1675877382352.png

 

0 Kudos