Skip to main content

Custom Scale option missing in HTML5 print

Comments

3 comments

  • Permanently deleted user
    Hi Jack, 

     

    Which version of the HTML5 viewer did you upgrade from? There has been some changes made to the HTML5 built-in Printing tool, but you can still set your own custom scale options in Essentials Manager under Print Templates > Edit Print Template > Map Scales tab > Add Map Scale. Any additional map scale you add here will be added to the dropdown list so the user can pick your custom scales when they print.

     

    I hope this helps.

     

    Carmen
    0
  • Permanently deleted user
    Thanks Carmen for the help. I'm using 2.7.2 here. I understood I could add custom scales using the Add Map Scale button, however the users require be able to enter any scale and print at that scale without me to manually add all possible scale options. I remember such option used to be there in the dropdown list of the print form, but not anymore : (  Even in the Print Template setting, under Default Map Scale you can set it to Custom Scale, but there's no place in the print form for user to enter a scale.

     

    Where's the option for Custom Scale?

     

    User-added image

     

    So far I found one work around for this is, first enter a custom scale (only possible for site without tiled map service) or choose a scale from the scale list of the map scale box, then launch the Print tool and choose map scale to Current Scale. in that way it can print to whatever the current map scale is. Is that an expected behaviour? 

     

    Thanks
    0
  • Permanently deleted user
    Hi Jack, 

     

    Yes, this is expected behaviour. If you have a basemap added to your site, then you can only print at those scales. Even if you input your own custom scales in Essentials Manager, the viewer will still automatically snap to the closest scale and print at that scale. 

     

    If you only have dynamic services in your site, then yes, the scale bar will allow you to manually enter in a scale so you can then run the Print tool to print at that scale. 

     

    The other option is to create your own printing tool. If you use the Export tool at the Essentials REST endpoint of the site, it allows you to print in between basemap scales. This means you can type in whatever scale you want at the rest endpoint, and it will return a map at that scale. You will have to do this through a workflow though unfortunately if you want to expose this feature. 

     

    I hope this helps.

     

    Carmen
    0

Please sign in to leave a comment.