jsapi-resources icon indicating copy to clipboard operation
jsapi-resources copied to clipboard

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

Open vm-pa opened this issue 3 years ago • 1 comments

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. image

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/FeatureServer/0" } ], "exportOptions":{ "outputSize":[ 3300, 2550 ], "dpi":150 }, "layoutOptions":{ "legendOptions":{ "operationalLayers":[ { "id":"myPointFtrs" } ] } } }

Format: PDF

Layout Template: A4 Landscape

Thanks and appreciate for your help.

vm-pa avatar Sep 02 '22 16:09 vm-pa

Hi @vm-pa it looks like your first time opening a github issue. My recommendation is to open an issue over on the community site: https://community.esri.com/t5/arcgis-api-for-javascript-questions/bd-p/arcgis-api-for-javascript-questions. That is the best place for questions about print services including most questions about the ArcGIS JS API, and it will get high visibility.

andygup avatar Sep 02 '22 16:09 andygup

Closing.

andygup avatar Feb 23 '23 16:02 andygup