WebGIS Discussions

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Posts: 46
Registered: ‎10-13-2015
Accepted Solution

How to customize printing templates used by external printing service

Is there any other way to remove the scale bar control inseide the map that generating a new  custom snapshot page.


In that case that this wasn't possible is there any example of a custom snapshot page could be that it was so easy and it was really an stupid question but I haven't done any similar thing.

Technical Evangelist
Posts: 1,271
Registered: ‎09-11-2015

Re: How to customize printing templates used by external printing service

Hi Santiago,


I'm afraid that only the custom snapshot page (SDK) is a way to go because the scalebar is hardcoded to the MapControl and cannot be removed using template settings.


To remove the scale bar using the Custom Snapshot Page, follow this article:


But instead of creating the complex PredicateStyle.js, just create simple SnaphshotPage.js with this piece of code:

$GP.ready(function () {
    // turn off printout scalebar

And reference the JS file from the MySnapshotPage.cs:

  • ScriptManager.Scripts.Add(new ScriptReference("js/SnapshotPage.js"));



Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial