diff --git a/src/module_vmap/module/javascript/app/vmap/tools/print.js b/src/module_vmap/module/javascript/app/vmap/tools/print.js index c438c6d1dd65631ad1a34c154de0253ca2bf0825..d2ee61f8a985d6466bf31be3c3f21c47485d45d1 100644 --- a/src/module_vmap/module/javascript/app/vmap/tools/print.js +++ b/src/module_vmap/module/javascript/app/vmap/tools/print.js @@ -493,6 +493,10 @@ nsVmap.nsToolsManager.Print.prototype.printController.prototype.getPrintedMapSiz mapHeight = tmpHeight / resizeCoeff; } + setTimeout(function () { + $(template).remove(); + }); + return { printedMapSize: [mapWidth, mapHeight], realSize: [imageDiv.width(), imageDiv.height()], @@ -721,9 +725,7 @@ nsVmap.nsToolsManager.Print.prototype.printController.prototype.print = function var sOrientation = response['data']['data'][0]['rt_orientation_id']; // Cas d'utilisation de la fonction print sans passer par le forumlaire - if (opt_options.recalcSize === true || - !goog.isDefAndNotNull(this.printedMapSize_) || - !goog.isDefAndNotNull(this_.printedOverviewMapSize_)) { + if (opt_options.recalcSize === true) { this_.setTemplate({ 'definition': response['data']['data'][0]['definition'] });