e: false
          })
        }),
        view: new ol.View({
          center: [0, 0],
          zoom: 2
        })
      });


      var dims = {
        a0: [1189, 841],
        a1: [841, 594],
        a2: [594, 420],
        a3: [420, 297],
        a4: [297, 210],
        a5: [210, 148]
      };

      var loading = 0;
      var loaded = 0;

      var exportButton = document.getElementById('export-pdf');

      exportButton.addEventListener('click', function() {

        exportButton.disabled = true;
  