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.
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.
Where does this ID come from?
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.