# leaflet-map/2.11.2/scripts/construct-leaflet-map.min.js

Leaflet Map, version 2.11.2. 2 lines.

- Page: https://pluginprobe.com/plugins/leaflet-map/2.11.2/code/scripts/construct-leaflet-map.min.js
- Raw: https://pluginprobe.com/plugins/leaflet-map/2.11.2/raw/scripts/construct-leaflet-map.min.js
- Modified: 2018-09-19T22:32:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/leaflet-map/2.11.2/code/scripts/construct-leaflet-map.min.js#L10-L20`.

```javascript
!function(){function t(){var t=window.WPLeafletMapPlugin;if(window.WPLeafletMapPlugin=new function(){this.push=function(t){t()},this.getCurrentMap=function(){return this.maps[this.maps.length-1]},this.getCurrentMarkerGroup=function(){var t=this.maps.length;return this.markergroups[t]||(this.markergroups[t]=this.newMarkerGroup(this.maps[t-1])),this.markergroups[t]},this.getGroup=function(t){return(new L.FeatureGroup).addTo(t)},this.newMarkerGroup=function(t){var n=this.getGroup(t);return n.timeout=null,t.fit_markers&&n.on("layeradd",function(e){window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){t.fitBounds(n.getBounds())},100)},n),n},this.unescape=function(t){var n=document.createElement("div");return n.innerHTML=t,n.innerText},this.maps=[],this.images=[],this.markergroups={},this.markers=[],this.lines=[]},t)for(var n=0,e=t.length;n<e;n++)window.WPLeafletMapPlugin.push(t[n])}window.addEventListener?window.addEventListener("load",t,!1):window.attachEvent&&window.attachEvent("onload",t)}();

```
