Printing map

2 posts, 0 answers
  1. Simon
    Simon avatar
    2 posts
    Member since:
    Jan 2016

    Posted 27 Sep 2016 Link to this post

    Hello,

    is there any way to resize the map to a fixed size (e.g. the size of an A4-paper), before printing.
    Maybe with help of "@media print" CSS, or by using javascript.

    All the solutions I have tried ends up with cropping just the top left corner of the map.

     

    Thanks!

  2. Rumen
    Admin
    Rumen avatar
    13244 posts

    Posted 27 Sep 2016 Link to this post

    Hi Simon,

    Have you tried to scale the page as shown in this help article: Scaling, i.e.

    drawing.drawDOM("#content", {
      paperSize: "A4",
      margin: "2cm",
      scale: 0.8
    }).then(function(group){
      drawing.pdf.saveAs(group, "filename.pdf");
    });



    Regards,
    Rumen
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top