Select to view content in your preferred language

Trouble with scaleBarUnit for PrintTemplate

957
3
07-23-2012 01:56 PM
spencermartin
Emerging Contributor
I'm using the following code to define the print template but I can't get the scalebarunit to display anything other than Miles and KM.

var layouts = [
          {
            "name": "Letter ANSI A Landscape",
            "label": "Landscape (PDF)",
            "format": "pdf",
            "options": {
              "legendLayers": [], // empty array means no legend
              "scaleBarUnit": "Feet",
              "titleText": printTitle
            }
          }

Any suggestions?
0 Kudos
3 Replies
SharathNarasimhan
Deactivated User
Even I am facing the same problem, Any suggestions on changing the font/font-size of the legend and the text symbols that are displayed in the map ?
0 Kudos
JianHuang
Deactivated User
Even I am facing the same problem, Any suggestions on changing the font/font-size of the legend and the text symbols that are displayed in the map ?


You need to create your own print layout template and add it to the print service to change the font and other map components.
JavaScript doesn't have the ability to change them.
0 Kudos
SharathNarasimhan
Deactivated User
Thanks for this information. This helps a lot !

You need to create your own print layout template and add it to the print service to change the font and other map components.
JavaScript doesn't have the ability to change them.
0 Kudos