New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-easyprint

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-easyprint - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

14

CHANGELOG.md
# Changelog
version 2
## Version 2.1.0
1/08/2017
- Fix for page title on print
- Support for custom page title
- Support for custom css spinner
- Support for custom color on spinner bg
- Support for filename for programmatic printing
## Version 2
22/07/2017

@@ -9,2 +19,2 @@ - Complete overhaul

- Programmatic access
- Resizing
- Resizing

2

dist/bundle.js

@@ -1,2 +0,2 @@

"use strict";function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},domToImage=createCommonjsModule(function(e){!function(t){function n(e,t){function n(e){return t.bgcolor&&(e.style.backgroundColor=t.bgcolor),t.width&&(e.style.width=t.width+"px"),t.height&&(e.style.height=t.height+"px"),t.style&&Object.keys(t.style).forEach(function(n){e.style[n]=t.style[n]}),e}return t=t||{},Promise.resolve(e).then(function(e){return u(e,t.filter,!0)}).then(l).then(c).then(n).then(function(n){return d(n,t.width||g.width(e),t.height||g.height(e))})}function i(e,t){return s(e,t||{}).then(function(t){return t.getContext("2d").getImageData(0,0,g.width(e),g.height(e)).data})}function o(e,t){return s(e,t||{}).then(function(e){return e.toDataURL()})}function r(e,t){return t=t||{},s(e,t).then(function(e){return e.toDataURL("image/jpeg",t.quality||1)})}function a(e,t){return s(e,t||{}).then(g.canvasToBlob)}function s(e,t){function i(e){var n=document.createElement("canvas");if(n.width=t.width||g.width(e),n.height=t.height||g.height(e),t.bgcolor){var i=n.getContext("2d");i.fillStyle=t.bgcolor,i.fillRect(0,0,n.width,n.height)}return n}return n(e,t).then(g.makeImage).then(g.delay(100)).then(function(t){var n=i(e);return n.getContext("2d").drawImage(t,0,0),n})}function u(e,t,n){function i(e){return e instanceof HTMLCanvasElement?g.makeImage(e.toDataURL()):e.cloneNode(!1)}function o(e,t,n){var i=e.childNodes;return 0===i.length?Promise.resolve(t):function(e,t,n){var i=Promise.resolve();return t.forEach(function(t){i=i.then(function(){return u(t,n)}).then(function(t){t&&e.appendChild(t)})}),i}(t,g.asArray(i),n).then(function(){return t})}function r(e,t){function n(){!function(e,t){e.cssText?t.cssText=e.cssText:function(e,t){g.asArray(e).forEach(function(n){t.setProperty(n,e.getPropertyValue(n),e.getPropertyPriority(n))})}(e,t)}(window.getComputedStyle(e),t.style)}function i(){function n(n){var i=window.getComputedStyle(e,n),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var r=g.uid();t.className=t.className+" "+r;var a=document.createElement("style");a.appendChild(function(e,t,n){var i="."+e+":"+t,o=n.cssText?function(e){var t=e.getPropertyValue("content");return e.cssText+" content: "+t+";"}(n):function(e){function t(t){return t+": "+e.getPropertyValue(t)+(e.getPropertyPriority(t)?" !important":"")}return g.asArray(e).map(t).join("; ")+";"}(n);return document.createTextNode(i+"{"+o+"}")}(r,n,i)),t.appendChild(a)}}[":before",":after"].forEach(function(e){n(e)})}function o(){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function r(){t instanceof SVGElement&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t instanceof SVGRectElement&&["width","height"].forEach(function(e){var n=t.getAttribute(e);n&&t.style.setProperty(e,n)}))}return t instanceof Element?Promise.resolve().then(n).then(i).then(o).then(r).then(function(){return t}):t}return n||!t||t(e)?Promise.resolve(e).then(i).then(function(n){return o(e,n,t)}).then(function(t){return r(e,t)}):Promise.resolve()}function l(e){return h.resolveAll().then(function(t){var n=document.createElement("style");return e.appendChild(n),n.appendChild(document.createTextNode(t)),e})}function c(e){return f.inlineAll(e).then(function(){return e})}function d(e,t,n){return Promise.resolve(e).then(function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)}).then(g.escapeXhtml).then(function(e){return'<foreignObject x="0" y="0" width="100%" height="100%">'+e+"</foreignObject>"}).then(function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+n+'">'+e+"</svg>"}).then(function(e){return"data:image/svg+xml;charset=utf-8,"+e})}var g=function(){function e(){var e="application/font-woff";return{woff:e,woff2:e,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function t(e){var t=/\.([^\.\/]*?)$/g.exec(e);return t?t[1]:""}function n(n){var i=t(n).toLowerCase();return e()[i]||""}function i(e){return-1!==e.search(/^(data:)/)}function o(e){return new Promise(function(t){for(var n=window.atob(e.toDataURL().split(",")[1]),i=n.length,o=new Uint8Array(i),r=0;r<i;r++)o[r]=n.charCodeAt(r);t(new Blob([o],{type:"image/png"}))})}function r(e){return e.toBlob?new Promise(function(t){e.toBlob(t)}):o(e)}function a(e,t){var n=document.implementation.createHTMLDocument(),i=n.createElement("base");n.head.appendChild(i);var o=n.createElement("a");return n.body.appendChild(o),i.href=t,o.href=e,o.href}function s(e){return new Promise(function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=n,i.src=e})}function u(e){var t=3e4;return new Promise(function(n){function i(){if(4===a.readyState){if(200!==a.status)return void r("cannot fetch resource: "+e+", status: "+a.status);var t=new FileReader;t.onloadend=function(){var e=t.result.split(/,/)[1];n(e)},t.readAsDataURL(a.response)}}function o(){r("timeout of "+t+"ms occured while fetching resource: "+e)}function r(e){console.error(e),n("")}var a=new XMLHttpRequest;a.onreadystatechange=i,a.ontimeout=o,a.responseType="blob",a.timeout=t,a.open("GET",e,!0),a.send()})}function l(e,t){return"data:"+t+";base64,"+e}function c(e){return e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function d(e){return function(t){return new Promise(function(n){setTimeout(function(){n(t)},e)})}}function g(e){for(var t=[],n=e.length,i=0;i<n;i++)t.push(e[i]);return t}function m(e){return e.replace(/#/g,"%23").replace(/\n/g,"%0A")}function h(e){var t=p(e,"border-left-width"),n=p(e,"border-right-width");return e.scrollWidth+t+n}function f(e){var t=p(e,"border-top-width"),n=p(e,"border-bottom-width");return e.scrollHeight+t+n}function p(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}return{escape:c,parseExtension:t,mimeType:n,dataAsUrl:l,isDataUrl:i,canvasToBlob:r,resolveUrl:a,getAndEncode:u,uid:function(){var e=0;return function(){return"u"+function(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}()+e++}}(),delay:d,asArray:g,escapeXhtml:m,makeImage:s,width:h,height:f}}(),m=function(){function e(e){return-1!==e.search(o)}function t(e){for(var t,n=[];null!==(t=o.exec(e));)n.push(t[1]);return n.filter(function(e){return!g.isDataUrl(e)})}function n(e,t,n,i){function o(e){return new RegExp("(url\\(['\"]?)("+g.escape(e)+")(['\"]?\\))","g")}return Promise.resolve(t).then(function(e){return n?g.resolveUrl(e,n):e}).then(i||g.getAndEncode).then(function(e){return g.dataAsUrl(e,g.mimeType(t))}).then(function(n){return e.replace(o(t),"$1"+n+"$3")})}function i(i,o,r){return function(){return!e(i)}()?Promise.resolve(i):Promise.resolve(i).then(t).then(function(e){var t=Promise.resolve(i);return e.forEach(function(e){t=t.then(function(t){return n(t,e,o,r)})}),t})}var o=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:i,shouldProcess:e,impl:{readUrls:t,inline:n}}}(),h=function(){function e(){return t(document).then(function(e){return Promise.all(e.map(function(e){return e.resolve()}))}).then(function(e){return e.join("\n")})}function t(){function e(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE}).filter(function(e){return m.shouldProcess(e.style.getPropertyValue("src"))})}function t(e){var t=[];return e.forEach(function(e){try{g.asArray(e.cssRules||[]).forEach(t.push.bind(t))}catch(t){console.log("Error while reading CSS rules from "+e.href,t.toString())}}),t}function n(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return m.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}return Promise.resolve(g.asArray(document.styleSheets)).then(t).then(e).then(function(e){return e.map(n)})}return{resolveAll:e,impl:{readAll:t}}}(),f=function(){function e(e){function t(t){return g.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(t||g.getAndEncode).then(function(t){return g.dataAsUrl(t,g.mimeType(e.src))}).then(function(t){return new Promise(function(n,i){e.onload=n,e.onerror=i,e.src=t})})}return{inline:t}}function t(n){return n instanceof Element?function(e){var t=e.style.getPropertyValue("background");return t?m.inlineAll(t).then(function(t){e.style.setProperty("background",t,e.style.getPropertyPriority("background"))}).then(function(){return e}):Promise.resolve(e)}(n).then(function(){return n instanceof HTMLImageElement?e(n).inline():Promise.all(g.asArray(n.childNodes).map(function(e){return t(e)}))}):Promise.resolve(n)}return{inlineAll:t,impl:{newImage:e}}}(),p={toSvg:n,toPng:o,toJpeg:r,toBlob:a,toPixelData:i,impl:{fontFaces:h,images:f,util:g,inliner:m}};e.exports=p}()}),FileSaver=createCommonjsModule(function(e){var t=t||function(e){if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},i=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in i,r=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/constructor/i.test(e.HTMLElement)||e.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},l=function(e){var t=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};setTimeout(t,4e4)},c=function(e,t,n){t=[].concat(t);for(var i=t.length;i--;){var o=e["on"+t[i]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){u(e)}}},d=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},g=function(t,u,g){g||(t=d(t));var m,h=this,f=t.type,p="application/octet-stream"===f,M=function(){c(h,"writestart progress write writeend".split(" "))};if(h.readyState=h.INIT,o)return m=n().createObjectURL(t),void setTimeout(function(){i.href=m,i.download=u,r(i),M(),l(m),h.readyState=h.DONE});!function(){if((s||p&&a)&&e.FileReader){var i=new FileReader;return i.onloadend=function(){var t=s?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,h.readyState=h.DONE,M()},i.readAsDataURL(t),void(h.readyState=h.INIT)}if(m||(m=n().createObjectURL(t)),p)e.location.href=m;else{e.open(m,"_blank")||(e.location.href=m)}h.readyState=h.DONE,M(),l(m)}()},m=g.prototype,h=function(e,t,n){return new g(e,t||e.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=d(e)),navigator.msSaveOrOpenBlob(e,t)}:(m.abort=function(){},m.readyState=m.INIT=0,m.WRITING=1,m.DONE=2,m.error=m.onwritestart=m.onprogress=m.onwrite=m.onabort=m.onerror=m.onwriteend=null,h)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||commonjsGlobal.content);e.exports&&(e.exports.saveAs=t)});L.Control.EasyPrint=L.Control.extend({options:{title:"Print map",position:"topleft",sizeModes:["Current"],filename:"map",exportOnly:!1,hidden:!1,tileWait:500,hideControlContainer:!0,customWindowTitle:window.document.title,spinnerBgCOlor:"#0DC5C1",customSpinnerClass:"epLoader",defaultSizeTitles:{Current:"Current Size",A4Landscape:"A4 Landscape",A4Portrait:"A4 Portrait"}},onAdd:function(){if(this.mapContainer=this._map.getContainer(),this.options.sizeModes=this.options.sizeModes.map(function(e){return"Current"===e?{name:this.options.defaultSizeTitles.Current,className:"CurrentSize"}:"A4Landscape"===e?{height:this._a4PageSize.height,width:this._a4PageSize.width,name:this.options.defaultSizeTitles.A4Landscape,className:"A4Landscape page"}:"A4Portrait"===e?{height:this._a4PageSize.width,width:this._a4PageSize.height,name:this.options.defaultSizeTitles.A4Portrait,className:"A4Portrait page"}:e},this),!this.options.hidden){this._addCss();var e=L.DomUtil.create("div","leaflet-control-easyPrint leaflet-bar leaflet-control");L.DomEvent.addListener(e,"mouseover",this._togglePageSizeButtons,this),L.DomEvent.addListener(e,"mouseout",this._togglePageSizeButtons,this);var t="leaflet-control-easyPrint-button";return this.options.exportOnly&&(t+="-export"),this.link=L.DomUtil.create("a",t,e),this.link.id="leafletEasyPrint",this.link.title=this.options.title,this.holder=L.DomUtil.create("ul","easyPrintHolder",e),this.options.sizeModes.forEach(function(e){var t=L.DomUtil.create("li","easyPrintSizeMode",this.holder);t.title=e.name;L.DomUtil.create("a",e.className,t);L.DomEvent.addListener(t,"click",this.printMap,this)},this),L.DomEvent.disableClickPropagation(e),e}},printMap:function(e,t){t&&(this.options.filename=t),this.options.exportOnly||(this._page=window.open("","_blank","toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10, top=10, width=200, height=250, visible=none"),this._page.document.write(this._createSpinner(this.options.customWindowTitle,this.options.customSpinnerClass,this.options.spinnerBgCOlor))),this.originalState={mapWidth:this.mapContainer.style.width,mapHeight:this.mapContainer.style.height,zoom:this._map.getZoom(),center:this._map.getCenter()},this._map.fire("easyPrint-start",{event:e}),this._togglePageSizeButtons({type:null}),this.options.hideControlContainer&&this._toggleControls();var n="string"!=typeof e?e.target.className:e;if("CurrentSize"===n)return this._printOpertion();this.outerContainer=this._createOuterContainer(this.mapContainer),this._createImagePlaceholder(n)},_createImagePlaceholder:function(e){var t=this;domToImage.toPng(this.mapContainer).then(function(n){t.blankDiv=document.createElement("div");var i=t.blankDiv;t.outerContainer.parentElement.insertBefore(i,t.outerContainer),i.className="epHolder",i.style.backgroundImage='url("'+n+'")',i.style.position="absolute",i.style.zIndex=1011,i.style.display="initial",i.style.width=t.mapContainer.style.width,i.style.height=t.mapContainer.style.height,t._resizeAndPrintMap(e)}).catch(function(e){console.error("oops, something went wrong!",e)})},_resizeAndPrintMap:function(e){this.outerContainer.style.opacity=0;var t=this.options.sizeModes.filter(function(t){return t.className===e});t=t[0],this.mapContainer.style.width=t.width+"px",this.mapContainer.style.height=t.height+"px",this.mapContainer.style.width>this.mapContainer.style.height?this.orientation="portrait":this.orientation="landscape",this._map.setView(this.originalState.center),this._map.setZoom(this.originalState.zoom),this._map.invalidateSize(),this.options.tileLayer?this._pausePrint():this._printOpertion()},_pausePrint:function(){var e=this,t=setInterval(function(){e.options.tileLayer.isLoading()||(clearInterval(t),e._printOpertion())},e.options.tileWait)},_printOpertion:function(){var e=this;domToImage.toPng(e.mapContainer,{width:parseInt(e.mapContainer.style.width.replace("px")),height:parseInt(e.mapContainer.style.height.replace("px"))}).then(function(t){var n=e._dataURItoBlob(t);e.options.exportOnly?FileSaver.saveAs(n,e.options.filename+".png"):e._sendToBrowserPrint(t,e.orientation),e._toggleControls(!0),e.outerContainer&&(e.mapContainer.style.width=e.originalState.mapWidth,e.mapContainer.style.height=e.originalState.mapHeight,e._removeOuterContainer(e.mapContainer,e.outerContainer,e.blankDiv),e._map.invalidateSize(),e._map.setView(e.originalState.center),e._map.setZoom(e.originalState.zoom)),e._map.fire("easyPrint-finished")}).catch(function(e){console.error("Print operation failed",e)})},_sendToBrowserPrint:function(e,t){this._page.resizeTo(600,800);var n=this._createNewWindow(e,t,this);this._page.document.body.innerHTML="",this._page.document.write(n),this._page.document.close()},_createSpinner:function(e,t,n){return"<html><head><title>"+e+"</title></head><body><style>\n body{\n background: "+n+";\n }\n .epLoader,\n .epLoader:before,\n .epLoader:after {\n border-radius: 50%;\n }\n .epLoader {\n color: #ffffff;\n font-size: 11px;\n text-indent: -99999em;\n margin: 55px auto;\n position: relative;\n width: 10em;\n height: 10em;\n box-shadow: inset 0 0 0 1em;\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n }\n .epLoader:before,\n .epLoader:after {\n position: absolute;\n content: '';\n }\n .epLoader:before {\n width: 5.2em;\n height: 10.2em;\n background: #0dc5c1;\n border-radius: 10.2em 0 0 10.2em;\n top: -0.1em;\n left: -0.1em;\n -webkit-transform-origin: 5.2em 5.1em;\n transform-origin: 5.2em 5.1em;\n -webkit-animation: load2 2s infinite ease 1.5s;\n animation: load2 2s infinite ease 1.5s;\n }\n .epLoader:after {\n width: 5.2em;\n height: 10.2em;\n background: #0dc5c1;\n border-radius: 0 10.2em 10.2em 0;\n top: -0.1em;\n left: 5.1em;\n -webkit-transform-origin: 0px 5.1em;\n transform-origin: 0px 5.1em;\n -webkit-animation: load2 2s infinite ease;\n animation: load2 2s infinite ease;\n }\n @-webkit-keyframes load2 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n @keyframes load2 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n </style>\n <div class=\""+t+'">Loading...</div></body></html>'},_createNewWindow:function(e,t,n){return"<html><head>\n <style>@media print {\n img { max-width: 98%!important; max-height: 98%!important; }\n @page { size: "+t+";}}\n </style>\n <script>function step1(){\n setTimeout('step2()', 10);}\n function step2(){window.print();window.close()}\n <\/script></head><body onload='step1()'>\n <img src=\""+e+'" style="display:block; margin:auto;"></body></html>'},_createOuterContainer:function(e){var t=document.createElement("div");return e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e),t.appendChild(e),t.style.width=e.style.width,t.style.height=e.style.height,t.style.display="inline-block",t.style.overflow="hidden",t},_removeOuterContainer:function(e,t,n){t.parentNode&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(n),t.parentNode.removeChild(t))},_addCss:function(){var e=document.createElement("style");e.type="text/css",e.innerHTML=".leaflet-control-eas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xlLWRvd25sb2FkIj4KCQk8cGF0aCBkPSJNMzk1LjI1LDE1M2gtMTAyVjBoLTE1M3YxNTNoLTEwMmwxNzguNSwxNzguNUwzOTUuMjUsMTUzeiBNMzguMjUsMzgyLjV2NTFoMzU3di01MUgzOC4yNXoiIGZpbGw9IiMwMDAwMDAiLz4KCTwvZz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);\n background-size: 16px 16px; \n cursor: pointer; \n }\n .easyPrintHolder a {\n background-size: 16px 16px;\n cursor: pointer;\n }\n .easyPrintHolder .CurrentSize{\n background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTZweCIgdmVyc2lvbj0iMS4xIiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNjQgNjQiPgogIDxnPgogICAgPGcgZmlsbD0iIzFEMUQxQiI+CiAgICAgIDxwYXRoIGQ9Ik0yNS4yNTUsMzUuOTA1TDQuMDE2LDU3LjE0NVY0Ni41OWMwLTEuMTA4LTAuOD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AgICIgZmlsbD0iIzAwMDAwMCIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=);\n }\n .easyPrintHolder .A4Landscape { \n transform: rotate(-90deg);\n }\n\n .leaflet-control-easyPrint-button{\n display: inline-block;\n }\n .easyPrintHolder{\n margin-top:-31px;\n margin-bottom: -5px;\n margin-left: 30px;\n padding-left: 0px;\n display: none;\n }\n\n .easyPrintSizeMode {\n display: inline-block;\n }\n .easyPrintHolder .easyPrintSizeMode a {\n border-radius: 0px;\n }\n\n .easyPrintHolder .easyPrintSizeMode:last-child a{\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n margin-left: -1px;\n }\n\n .easyPrintPortrait:hover, .easyPrintLandscape:hover{\n background-color: #757570;\n cursor: pointer;\n }",document.body.appendChild(e)},_dataURItoBlob:function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),o=new DataView(i),r=0;r<t.length;r++)o.setUint8(r,t.charCodeAt(r));return new Blob([i],{type:n})},_togglePageSizeButtons:function(e){var t=this.holder.style,n=this.link.style;"mouseover"===e.type?(t.display="block",n.borderTopRightRadius="0",n.borderBottomRightRadius="0"):(t.display="none",n.borderTopRightRadius="2px",n.borderBottomRightRadius="2px")},_toggleControls:function(e){var t=document.getElementsByClassName("leaflet-control-container")[0];if(e)return t.style.display="block";t.style.display="none"},_a4PageSize:{height:715,width:1045}}),L.easyPrint=function(e){return new L.Control.EasyPrint(e)};
"use strict";function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},domToImage=createCommonjsModule(function(e){!function(t){function n(e,t){function n(e){return t.bgcolor&&(e.style.backgroundColor=t.bgcolor),t.width&&(e.style.width=t.width+"px"),t.height&&(e.style.height=t.height+"px"),t.style&&Object.keys(t.style).forEach(function(n){e.style[n]=t.style[n]}),e}return t=t||{},s(t),Promise.resolve(e).then(function(e){return u(e,t.filter,!0)}).then(c).then(d).then(n).then(function(n){return g(n,t.width||m.width(e),t.height||m.height(e))})}function i(e,t){return l(e,t||{}).then(function(t){return t.getContext("2d").getImageData(0,0,m.width(e),m.height(e)).data})}function o(e,t){return l(e,t||{}).then(function(e){return e.toDataURL()})}function r(e,t){return t=t||{},l(e,t).then(function(e){return e.toDataURL("image/jpeg",t.quality||1)})}function a(e,t){return l(e,t||{}).then(m.canvasToBlob)}function s(e){void 0===e.imagePlaceholder?w.impl.options.imagePlaceholder=M.imagePlaceholder:w.impl.options.imagePlaceholder=e.imagePlaceholder,void 0===e.cacheBust?w.impl.options.cacheBust=M.cacheBust:w.impl.options.cacheBust=e.cacheBust}function l(e,t){function i(e){var n=document.createElement("canvas");if(n.width=t.width||m.width(e),n.height=t.height||m.height(e),t.bgcolor){var i=n.getContext("2d");i.fillStyle=t.bgcolor,i.fillRect(0,0,n.width,n.height)}return n}return n(e,t).then(m.makeImage).then(m.delay(100)).then(function(t){var n=i(e);return n.getContext("2d").drawImage(t,0,0),n})}function u(e,t,n){function i(e){return e instanceof HTMLCanvasElement?m.makeImage(e.toDataURL()):e.cloneNode(!1)}function o(e,t,n){var i=e.childNodes;return 0===i.length?Promise.resolve(t):function(e,t,n){var i=Promise.resolve();return t.forEach(function(t){i=i.then(function(){return u(t,n)}).then(function(t){t&&e.appendChild(t)})}),i}(t,m.asArray(i),n).then(function(){return t})}function r(e,t){function n(){!function(e,t){e.cssText?t.cssText=e.cssText:function(e,t){m.asArray(e).forEach(function(n){t.setProperty(n,e.getPropertyValue(n),e.getPropertyPriority(n))})}(e,t)}(window.getComputedStyle(e),t.style)}function i(){function n(n){var i=window.getComputedStyle(e,n),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var r=m.uid();t.className=t.className+" "+r;var a=document.createElement("style");a.appendChild(function(e,t,n){var i="."+e+":"+t,o=n.cssText?function(e){var t=e.getPropertyValue("content");return e.cssText+" content: "+t+";"}(n):function(e){function t(t){return t+": "+e.getPropertyValue(t)+(e.getPropertyPriority(t)?" !important":"")}return m.asArray(e).map(t).join("; ")+";"}(n);return document.createTextNode(i+"{"+o+"}")}(r,n,i)),t.appendChild(a)}}[":before",":after"].forEach(function(e){n(e)})}function o(){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function r(){t instanceof SVGElement&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t instanceof SVGRectElement&&["width","height"].forEach(function(e){var n=t.getAttribute(e);n&&t.style.setProperty(e,n)}))}return t instanceof Element?Promise.resolve().then(n).then(i).then(o).then(r).then(function(){return t}):t}return n||!t||t(e)?Promise.resolve(e).then(i).then(function(n){return o(e,n,t)}).then(function(t){return r(e,t)}):Promise.resolve()}function c(e){return p.resolveAll().then(function(t){var n=document.createElement("style");return e.appendChild(n),n.appendChild(document.createTextNode(t)),e})}function d(e){return f.inlineAll(e).then(function(){return e})}function g(e,t,n){return Promise.resolve(e).then(function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)}).then(m.escapeXhtml).then(function(e){return'<foreignObject x="0" y="0" width="100%" height="100%">'+e+"</foreignObject>"}).then(function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+n+'">'+e+"</svg>"}).then(function(e){return"data:image/svg+xml;charset=utf-8,"+e})}var m=function(){function e(){var e="application/font-woff";return{woff:e,woff2:e,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function t(e){var t=/\.([^\.\/]*?)$/g.exec(e);return t?t[1]:""}function n(n){var i=t(n).toLowerCase();return e()[i]||""}function i(e){return-1!==e.search(/^(data:)/)}function o(e){return new Promise(function(t){for(var n=window.atob(e.toDataURL().split(",")[1]),i=n.length,o=new Uint8Array(i),r=0;r<i;r++)o[r]=n.charCodeAt(r);t(new Blob([o],{type:"image/png"}))})}function r(e){return e.toBlob?new Promise(function(t){e.toBlob(t)}):o(e)}function a(e,t){var n=document.implementation.createHTMLDocument(),i=n.createElement("base");n.head.appendChild(i);var o=n.createElement("a");return n.body.appendChild(o),i.href=t,o.href=e,o.href}function s(e){return new Promise(function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=n,i.src=e})}function l(e){var t=3e4;return w.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()),new Promise(function(n){function i(){if(4===a.readyState){if(200!==a.status)return void(s?n(s):r("cannot fetch resource: "+e+", status: "+a.status));var t=new FileReader;t.onloadend=function(){var e=t.result.split(/,/)[1];n(e)},t.readAsDataURL(a.response)}}function o(){s?n(s):r("timeout of "+t+"ms occured while fetching resource: "+e)}function r(e){console.error(e),n("")}var a=new XMLHttpRequest;a.onreadystatechange=i,a.ontimeout=o,a.responseType="blob",a.timeout=t,a.open("GET",e,!0),a.send();var s;if(w.impl.options.imagePlaceholder){var l=w.impl.options.imagePlaceholder.split(/,/);l&&l[1]&&(s=l[1])}})}function u(e,t){return"data:"+t+";base64,"+e}function c(e){return e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function d(e){return function(t){return new Promise(function(n){setTimeout(function(){n(t)},e)})}}function g(e){for(var t=[],n=e.length,i=0;i<n;i++)t.push(e[i]);return t}function m(e){return e.replace(/#/g,"%23").replace(/\n/g,"%0A")}function h(e){var t=f(e,"border-left-width"),n=f(e,"border-right-width");return e.scrollWidth+t+n}function p(e){var t=f(e,"border-top-width"),n=f(e,"border-bottom-width");return e.scrollHeight+t+n}function f(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}return{escape:c,parseExtension:t,mimeType:n,dataAsUrl:u,isDataUrl:i,canvasToBlob:r,resolveUrl:a,getAndEncode:l,uid:function(){var e=0;return function(){return"u"+function(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}()+e++}}(),delay:d,asArray:g,escapeXhtml:m,makeImage:s,width:h,height:p}}(),h=function(){function e(e){return-1!==e.search(o)}function t(e){for(var t,n=[];null!==(t=o.exec(e));)n.push(t[1]);return n.filter(function(e){return!m.isDataUrl(e)})}function n(e,t,n,i){function o(e){return new RegExp("(url\\(['\"]?)("+m.escape(e)+")(['\"]?\\))","g")}return Promise.resolve(t).then(function(e){return n?m.resolveUrl(e,n):e}).then(i||m.getAndEncode).then(function(e){return m.dataAsUrl(e,m.mimeType(t))}).then(function(n){return e.replace(o(t),"$1"+n+"$3")})}function i(i,o,r){return function(){return!e(i)}()?Promise.resolve(i):Promise.resolve(i).then(t).then(function(e){var t=Promise.resolve(i);return e.forEach(function(e){t=t.then(function(t){return n(t,e,o,r)})}),t})}var o=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:i,shouldProcess:e,impl:{readUrls:t,inline:n}}}(),p=function(){function e(){return t(document).then(function(e){return Promise.all(e.map(function(e){return e.resolve()}))}).then(function(e){return e.join("\n")})}function t(){function e(e){return e.filter(function(e){return e.type===CSSRule.FONT_FACE_RULE}).filter(function(e){return h.shouldProcess(e.style.getPropertyValue("src"))})}function t(e){var t=[];return e.forEach(function(e){try{m.asArray(e.cssRules||[]).forEach(t.push.bind(t))}catch(t){console.log("Error while reading CSS rules from "+e.href,t.toString())}}),t}function n(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return h.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}return Promise.resolve(m.asArray(document.styleSheets)).then(t).then(e).then(function(e){return e.map(n)})}return{resolveAll:e,impl:{readAll:t}}}(),f=function(){function e(e){function t(t){return m.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(t||m.getAndEncode).then(function(t){return m.dataAsUrl(t,m.mimeType(e.src))}).then(function(t){return new Promise(function(n,i){e.onload=n,e.onerror=i,e.src=t})})}return{inline:t}}function t(n){return n instanceof Element?function(e){var t=e.style.getPropertyValue("background");return t?h.inlineAll(t).then(function(t){e.style.setProperty("background",t,e.style.getPropertyPriority("background"))}).then(function(){return e}):Promise.resolve(e)}(n).then(function(){return n instanceof HTMLImageElement?e(n).inline():Promise.all(m.asArray(n.childNodes).map(function(e){return t(e)}))}):Promise.resolve(n)}return{inlineAll:t,impl:{newImage:e}}}(),M={imagePlaceholder:void 0,cacheBust:!1},w={toSvg:n,toPng:o,toJpeg:r,toBlob:a,toPixelData:i,impl:{fontFaces:p,images:f,util:m,inliner:h,options:{}}};e.exports=w}()}),FileSaver=createCommonjsModule(function(e){var t=t||function(e){if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},i=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in i,r=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/constructor/i.test(e.HTMLElement)||e.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),l=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u=function(e){var t=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};setTimeout(t,4e4)},c=function(e,t,n){t=[].concat(t);for(var i=t.length;i--;){var o=e["on"+t[i]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){l(e)}}},d=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},g=function(t,l,g){g||(t=d(t));var m,h=this,p=t.type,f="application/octet-stream"===p,M=function(){c(h,"writestart progress write writeend".split(" "))};if(h.readyState=h.INIT,o)return m=n().createObjectURL(t),void setTimeout(function(){i.href=m,i.download=l,r(i),M(),u(m),h.readyState=h.DONE});!function(){if((s||f&&a)&&e.FileReader){var i=new FileReader;return i.onloadend=function(){var t=s?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,h.readyState=h.DONE,M()},i.readAsDataURL(t),void(h.readyState=h.INIT)}if(m||(m=n().createObjectURL(t)),f)e.location.href=m;else{e.open(m,"_blank")||(e.location.href=m)}h.readyState=h.DONE,M(),u(m)}()},m=g.prototype,h=function(e,t,n){return new g(e,t||e.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=d(e)),navigator.msSaveOrOpenBlob(e,t)}:(m.abort=function(){},m.readyState=m.INIT=0,m.WRITING=1,m.DONE=2,m.error=m.onwritestart=m.onprogress=m.onwrite=m.onabort=m.onerror=m.onwriteend=null,h)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||commonjsGlobal.content);e.exports&&(e.exports.saveAs=t)});L.Control.EasyPrint=L.Control.extend({options:{title:"Print map",position:"topleft",sizeModes:["Current"],filename:"map",exportOnly:!1,hidden:!1,tileWait:500,hideControlContainer:!0,customWindowTitle:window.document.title,spinnerBgCOlor:"#0DC5C1",customSpinnerClass:"epLoader",defaultSizeTitles:{Current:"Current Size",A4Landscape:"A4 Landscape",A4Portrait:"A4 Portrait"}},onAdd:function(){if(this.mapContainer=this._map.getContainer(),this.options.sizeModes=this.options.sizeModes.map(function(e){return"Current"===e?{name:this.options.defaultSizeTitles.Current,className:"CurrentSize"}:"A4Landscape"===e?{height:this._a4PageSize.height,width:this._a4PageSize.width,name:this.options.defaultSizeTitles.A4Landscape,className:"A4Landscape page"}:"A4Portrait"===e?{height:this._a4PageSize.width,width:this._a4PageSize.height,name:this.options.defaultSizeTitles.A4Portrait,className:"A4Portrait page"}:e},this),!this.options.hidden){this._addCss();var e=L.DomUtil.create("div","leaflet-control-easyPrint leaflet-bar leaflet-control");L.DomEvent.addListener(e,"mouseover",this._togglePageSizeButtons,this),L.DomEvent.addListener(e,"mouseout",this._togglePageSizeButtons,this);var t="leaflet-control-easyPrint-button";return this.options.exportOnly&&(t+="-export"),this.link=L.DomUtil.create("a",t,e),this.link.id="leafletEasyPrint",this.link.title=this.options.title,this.holder=L.DomUtil.create("ul","easyPrintHolder",e),this.options.sizeModes.forEach(function(e){var t=L.DomUtil.create("li","easyPrintSizeMode",this.holder);t.title=e.name;L.DomUtil.create("a",e.className,t);L.DomEvent.addListener(t,"click",this.printMap,this)},this),L.DomEvent.disableClickPropagation(e),e}},printMap:function(e,t){t&&(this.options.filename=t),this.options.exportOnly||(this._page=window.open("","_blank","toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10, top=10, width=200, height=250, visible=none"),this._page.document.write(this._createSpinner(this.options.customWindowTitle,this.options.customSpinnerClass,this.options.spinnerBgCOlor))),this.originalState={mapWidth:this.mapContainer.style.width,mapHeight:this.mapContainer.style.height,zoom:this._map.getZoom(),center:this._map.getCenter()},this._map.fire("easyPrint-start",{event:e}),this._togglePageSizeButtons({type:null}),this.options.hideControlContainer&&this._toggleControls();var n="string"!=typeof e?e.target.className:e;if("CurrentSize"===n)return this._printOpertion();this.outerContainer=this._createOuterContainer(this.mapContainer),this._createImagePlaceholder(n)},_createImagePlaceholder:function(e){var t=this;domToImage.toPng(this.mapContainer).then(function(n){t.blankDiv=document.createElement("div");var i=t.blankDiv;t.outerContainer.parentElement.insertBefore(i,t.outerContainer),i.className="epHolder",i.style.backgroundImage='url("'+n+'")',i.style.position="absolute",i.style.zIndex=1011,i.style.display="initial",i.style.width=t.mapContainer.style.width,i.style.height=t.mapContainer.style.height,t._resizeAndPrintMap(e)}).catch(function(e){console.error("oops, something went wrong!",e)})},_resizeAndPrintMap:function(e){this.outerContainer.style.opacity=0;var t=this.options.sizeModes.filter(function(t){return t.className===e});t=t[0],this.mapContainer.style.width=t.width+"px",this.mapContainer.style.height=t.height+"px",this.mapContainer.style.width>this.mapContainer.style.height?this.orientation="portrait":this.orientation="landscape",this._map.setView(this.originalState.center),this._map.setZoom(this.originalState.zoom),this._map.invalidateSize(),this.options.tileLayer?this._pausePrint():this._printOpertion()},_pausePrint:function(){var e=this,t=setInterval(function(){e.options.tileLayer.isLoading()||(clearInterval(t),e._printOpertion())},e.options.tileWait)},_printOpertion:function(){var e=this;domToImage.toPng(e.mapContainer,{width:parseInt(e.mapContainer.style.width.replace("px")),height:parseInt(e.mapContainer.style.height.replace("px"))}).then(function(t){var n=e._dataURItoBlob(t);e.options.exportOnly?FileSaver.saveAs(n,e.options.filename+".png"):e._sendToBrowserPrint(t,e.orientation),e._toggleControls(!0),e.outerContainer&&(e.mapContainer.style.width=e.originalState.mapWidth,e.mapContainer.style.height=e.originalState.mapHeight,e._removeOuterContainer(e.mapContainer,e.outerContainer,e.blankDiv),e._map.invalidateSize(),e._map.setView(e.originalState.center),e._map.setZoom(e.originalState.zoom)),e._map.fire("easyPrint-finished")}).catch(function(e){console.error("Print operation failed",e)})},_sendToBrowserPrint:function(e,t){this._page.resizeTo(600,800);var n=this._createNewWindow(e,t,this);this._page.document.body.innerHTML="",this._page.document.write(n),this._page.document.close()},_createSpinner:function(e,t,n){return"<html><head><title>"+e+"</title></head><body><style>\n body{\n background: "+n+";\n }\n .epLoader,\n .epLoader:before,\n .epLoader:after {\n border-radius: 50%;\n }\n .epLoader {\n color: #ffffff;\n font-size: 11px;\n text-indent: -99999em;\n margin: 55px auto;\n position: relative;\n width: 10em;\n height: 10em;\n box-shadow: inset 0 0 0 1em;\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n }\n .epLoader:before,\n .epLoader:after {\n position: absolute;\n content: '';\n }\n .epLoader:before {\n width: 5.2em;\n height: 10.2em;\n background: #0dc5c1;\n border-radius: 10.2em 0 0 10.2em;\n top: -0.1em;\n left: -0.1em;\n -webkit-transform-origin: 5.2em 5.1em;\n transform-origin: 5.2em 5.1em;\n -webkit-animation: load2 2s infinite ease 1.5s;\n animation: load2 2s infinite ease 1.5s;\n }\n .epLoader:after {\n width: 5.2em;\n height: 10.2em;\n background: #0dc5c1;\n border-radius: 0 10.2em 10.2em 0;\n top: -0.1em;\n left: 5.1em;\n -webkit-transform-origin: 0px 5.1em;\n transform-origin: 0px 5.1em;\n -webkit-animation: load2 2s infinite ease;\n animation: load2 2s infinite ease;\n }\n @-webkit-keyframes load2 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n @keyframes load2 {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n </style>\n <div class=\""+t+'">Loading...</div></body></html>'},_createNewWindow:function(e,t,n){return"<html><head>\n <style>@media print {\n img { max-width: 98%!important; max-height: 98%!important; }\n @page { size: "+t+";}}\n </style>\n <script>function step1(){\n setTimeout('step2()', 10);}\n function step2(){window.print();window.close()}\n <\/script></head><body onload='step1()'>\n <img src=\""+e+'" style="display:block; margin:auto;"></body></html>'},_createOuterContainer:function(e){var t=document.createElement("div");return e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e),t.appendChild(e),t.style.width=e.style.width,t.style.height=e.style.height,t.style.display="inline-block",t.style.overflow="hidden",t},_removeOuterContainer:function(e,t,n){t.parentNode&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(n),t.parentNode.removeChild(t))},_addCss:function(){var e=document.createElement("style");e.type="text/css",e.innerHTML=".leaflet-control-easyPrint-button { \n background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBs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o8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);\n background-size: 16px 16px; \n cursor: pointer; \n }\n .leaflet-control-easyPrint-button-export { \n background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDQzMy41IDQzMy41IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MzMuNSA0MzMuNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxnIGlkPSJmaWxlLWRvd25sb2FkIj4KCQk8cGF0aCBkPSJNMzk1LjI1LDE1M2gtMTAyVjBoLTE1M3YxNTNoLTEwMmwxNzguNSwxNzguNUwzOTUuMjUsMTUzeiBNMzguMjUsMzgyLjV2NTFoMzU3di01MUgzOC4yNXoiIGZpbGw9IiMwMDAwMDAiLz4KCTwvZz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);\n background-size: 16px 16px; \n cursor: pointer; \n }\n .easyPrintHolder a {\n background-size: 16px 16px;\n cursor: pointer;\n }\n .easyPrintHolder .CurrentSize{\n background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTZweCIgdmVyc2lvbj0iMS4xIiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNjQgNjQiPgogIDxnPgogICAgPGcgZmlsbD0iIzFEMUQxQiI+CiAgICAgIDxwYXRoIGQ9Ik0yNS4yNTUsMzUuOTA1TDQuMDE2LDU3LjE0NVY0Ni41OWMwLTEuMTA4LTAuODk3LTIuMDA4LTIuMDA4LTIuMDA4QzAuODk4LDQ0LjU4MiwwLDQ1LjQ4MSwwLDQ2LjU5djE1LjQwMiAgICBjMCwwLjI2MSwwLjA1MywwLjUyMSwwLjE1NSwwLjc2N2MwLjIwMywwLjQ5MiwwLjU5NCwwLjg4MiwxLjA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CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=);\n }\n .easyPrintHolder .A4Landscape { \n transform: rotate(-90deg);\n }\n\n .leaflet-control-easyPrint-button{\n display: inline-block;\n }\n .easyPrintHolder{\n margin-top:-31px;\n margin-bottom: -5px;\n margin-left: 30px;\n padding-left: 0px;\n display: none;\n }\n\n .easyPrintSizeMode {\n display: inline-block;\n }\n .easyPrintHolder .easyPrintSizeMode a {\n border-radius: 0px;\n }\n\n .easyPrintHolder .easyPrintSizeMode:last-child a{\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n margin-left: -1px;\n }\n\n .easyPrintPortrait:hover, .easyPrintLandscape:hover{\n background-color: #757570;\n cursor: pointer;\n }",document.body.appendChild(e)},_dataURItoBlob:function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),o=new DataView(i),r=0;r<t.length;r++)o.setUint8(r,t.charCodeAt(r));return new Blob([i],{type:n})},_togglePageSizeButtons:function(e){var t=this.holder.style,n=this.link.style;"mouseover"===e.type?(t.display="block",n.borderTopRightRadius="0",n.borderBottomRightRadius="0"):(t.display="none",n.borderTopRightRadius="2px",n.borderBottomRightRadius="2px")},_toggleControls:function(e){var t=document.getElementsByClassName("leaflet-control-container")[0];if(e)return t.style.display="block";t.style.display="none"},_a4PageSize:{height:715,width:1045}}),L.easyPrint=function(e){return new L.Control.EasyPrint(e)};
//# sourceMappingURL=bundle.js.map
{
"name": "leaflet-easyprint",
"version": "2.1.1",
"version": "2.1.2",
"description": "A leaflet plugin which adds an icon to print the map",

@@ -5,0 +5,0 @@ "main": "dist/leaflet.easyPrint.js",

@@ -8,3 +8,4 @@ ## leaflet-easyPrint

* Compatible with both Leaflet v1+ and 0.7
* Tested on Chrome, Firefox, IE & Edge
* Tested on Chrome, Firefox
* Incompatible with IE & Edge due to `dom-to-image` dependency

@@ -11,0 +12,0 @@ Check out the [demo](http://rowanwins.github.com/leaflet-easyPrint/).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc