Modifying the Print Template

476
2
Jump to solution
06-02-2021 12:37 PM
AndrewMurdoch1
Occasional Contributor II

Good Day

AndrewMurdoch1_0-1622662448968.png

I have two objects left with the print template, one is to centre the legend and the other is to remove the text under the scale, is it possible to do both of those things?

My current template object:

const template = new this.PrintTemplate({
format: 'jpg',
layout: 'a4-landscape',
layoutOptions: {
authorText: '',
copyrightText: '',
customTextElements: [{
'description': '',
'location': ''
}],
titleText: titleText
},
attributionVisible: false,
showLabelsBoolean: false,
});

 If it's not possible, that's fine.

Thanks

0 Kudos
1 Solution

Accepted Solutions
mdonnelly
Esri Contributor

Hello,

I'm going to assume that you are using either the ArcGIS Online print service or the out of the box print service that comes with ArcGIS Enterprise.

If so, then the print layouts are fixed and cannot be modified. You can change some elements, like the title or the date, etc but not what is included or not (eg the attribute text under the scale bar).

However, if you are referencing a custom print service (only on ArcGIS Enterprise) that has custom print layouts then it may be possible to talk with the custodian of this print service to produce print layouts to your requirements.

Regards,
Mark

View solution in original post

2 Replies
mdonnelly
Esri Contributor

Hello,

I'm going to assume that you are using either the ArcGIS Online print service or the out of the box print service that comes with ArcGIS Enterprise.

If so, then the print layouts are fixed and cannot be modified. You can change some elements, like the title or the date, etc but not what is included or not (eg the attribute text under the scale bar).

However, if you are referencing a custom print service (only on ArcGIS Enterprise) that has custom print layouts then it may be possible to talk with the custodian of this print service to produce print layouts to your requirements.

Regards,
Mark
AndrewMurdoch1
Occasional Contributor II

That's what I was thinking, thanks for your answer.

0 Kudos