From 96f0f913f382e02e2124e99c7c622f0160eec07a Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Thu, 16 Jul 2020 13:13:50 +0200 Subject: [PATCH] use leaflet.browserPrint instead of leaflet.easyPrint FIXME: printing still broken. --- www/index.html.de | 4 +--- www/index.html.en | 4 +--- www/map.js | 3 +-- www/map.js.en | 3 +-- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/www/index.html.de b/www/index.html.de index 32fdf5d..0ad01b0 100755 --- a/www/index.html.de +++ b/www/index.html.de @@ -13,7 +13,6 @@ - @@ -34,8 +33,7 @@ - - + diff --git a/www/index.html.en b/www/index.html.en index 158edff..481ec43 100755 --- a/www/index.html.en +++ b/www/index.html.en @@ -13,7 +13,6 @@ - @@ -34,8 +33,7 @@ - - + diff --git a/www/map.js b/www/map.js index 285edfa..64cb34d 100644 --- a/www/map.js +++ b/www/map.js @@ -206,9 +206,8 @@ $(document).ready(function() { }); // print icon - L.easyPrint({ + L.control.browserPrint({ title: 'print map', position: 'topright', - sizeModes: ['Current', 'A4Portrait', 'A4Landscape'], }).addTo(map); }); diff --git a/www/map.js.en b/www/map.js.en index 95dc862..d1e6ca3 100644 --- a/www/map.js.en +++ b/www/map.js.en @@ -206,9 +206,8 @@ $(document).ready(function() { }); // print icon - L.easyPrint({ + L.control.browserPrint({ title: 'print map', position: 'topright', - sizeModes: ['Current', 'A4Portrait', 'A4Landscape'], }).addTo(map); });