diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index 0609337ae..28c2209ed 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -459,7 +459,8 @@ L.Map = L.Evented.extend({ var textAreaContainer = L.DomUtil.create('div', 'clipboard-container', container.parentElement); this._textArea = L.DomUtil.create('textarea', 'clipboard', textAreaContainer); this._resizeDetector = L.DomUtil.create('iframe', 'resize-detector', container); - this._fileDownloader = L.DomUtil.create('iframe', 'resize-detector', container); + this._fileDownloader = L.DomUtil.create('iframe', '', container); + L.DomUtil.setStyle(this._fileDownloader, 'display', 'none'); container._leaflet = true; },