...
Any custom images that you wish to use in your Print Templates should reside in the WebApps\WebService\custom\print\templates\images folder and custom css in the WebApps\WebService\custom\print\templates\css folder.
Tip |
---|
If iShare GIS finds any Print Templates in the custom folder then it will ignore any in the base folder so, if you want to use any of those supplied by Astun you need to copy the ones you want into the custom folder. |
Below we have the A4-portrait.html which is a Portrait template for printing to A4 size.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<!doctype html> <html> <head> <meta http-equiv="x-ua-compatible" content="IE=Edge"/> <title>iShare Print To Scale</title> <link type="text/css" rel="stylesheet" href="css/astun-common.css" /> <link type="text/css" rel="stylesheet" href="css/astun-portrait.css" /> <style type="text/css"> @page { size: A4 portrait; margin: 0; } body { width: 190mm; height: 277mm; margin: 10mm 10mm 10mm 10mm; } #map { height: 240mm; } </style> <link type="text/css" rel="stylesheet" href="css/astun-portrait.css" /> </head> <body> <div class="wrapper"> <div id="header"></div> <div id="map">##map## <div id="legend">##legend##</div> </div> <div id="footer"> <div class="fWrapper"> <div id="info"> <span id="title" class="ishare-edit-inline">##title.Enter map title##</span> <p id="scale"><img src="images/NorthArrow.png" id="north" />Scale: <span class="ishare-scale">##scale.0##</span></p> <p class="printinfo">Printed on: <span class="ishare-timestamp">##timestamp.1970-01-01##</span> by <span class="ishare-user">##user.user@domain##</span></p> </div><!-- info --> <div id="organization"> <img alt="Astun Technology logo" src="images/print-logo.svg" id="logo" /> <div id="copyright">© Astun Technology Ltd</div> </div><!-- atCompany--> </div><!-- fWrapper --> </div><!-- footer --> </div><!-- wrapper --> </body> </html> |
...