I created a custom print service on a stand-alone server that's used in my ArcGIS JS SDK app (in beta): Clustering - query clusters | Sample | ArcGIS Maps SDK for JavaScript. Users can zoom all the way in and select a parcel in the map. Then they can click a popup action to create some layers.
Only issue now is the legend. I wasn’t sure how I would get the legend to come through prior to creating the service. After creating it (Task: Export Web Map), I’m still not sure (fyi-legend does show using the default print utility).
Not sure if this code needs to be adjusted or it just isn't possible. Does anyone else know?
const print = new Print({
view: view,
printServiceUrl: "https://rpgis.isd.lacounty.gov/arcgis/rest/services/ExportWebMap/GPServer/Export%20Web%20Map",
templateOptions: {
title: "EXISTING LAND USE",
format: "pdf",
layout: "Landscape_8.5x11_LU_Map", // Ensure you use a layout template, not MAP_ONLY
attributionEnabled: false,
dynamicLegendEnabled: true
}
});
Solved! Go to Solution.
Hi Noah,
Yes, it worked after adding the legend options in the ArcGIS Pro layout and making sure I was pointing to the right folder with the updated layout in the Export Web Map/Get Layout Templates Info geoprocessing steps.
Hi @BrandonPrice1, thanks for posting your question here. It seems to work okay today. Did something change?
app
prinout
Hi Noah,
Yes, it worked after adding the legend options in the ArcGIS Pro layout and making sure I was pointing to the right folder with the updated layout in the Export Web Map/Get Layout Templates Info geoprocessing steps.