Select to view content in your preferred language

Print Service Generates with Service ID as Title head at legends, how to avoid that.

319
2
09-06-2022 05:46 AM
VenkatMe
New Contributor

Hello All,

Can someone help me how to avoid feature service's id shows up as title on legend portion of print service response file(PDF url) on point feature services. I want to show just legend and its label, not title on top of it, in the following image 'myPointFtrs' in red highlight is showing I want avoid that.

VenkatMe_0-1662468177070.png

 

Here is the inputs for ESRI's print service rest end url.

For 'Web Map as JSON':

{
"mapOptions":{
"extent":{
"xmin":-13630255.86177027,
"ymin":4547551.685206397,
"xmax":-13621933.780315502,
"ymax":4552080.579132413,
"spatialReference":{
"wkid":102100
}
},
"scale":18055.954822
},
"operationalLayers":[
{
"url":"https://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"
},
{
"id":"myPointFtrs",
"url":"https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/SanFransiscoIncidents/FeatureServe..."
}
],
"exportOptions":{
"outputSize":[
3300,
2550
],
"dpi":150
},
"layoutOptions":{
"legendOptions":{
"operationalLayers":[
{
"id":"myPointFtrs"
}
]
}
}
}

Format:
PDF

Layout Template:
A4 Landscape

Thanks and appreciate for your help.

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor

Where does this ID come from?

0 Kudos
VenkatMe
New Contributor

Thanks for looking into it. ID is an assigned reference value to the feature service, i.e. a look up value for 'legendOptions' to get the legends from which ever the assigned feature service ID.

0 Kudos