PluginProbe
Leaflet Map / 2.16.2
Leaflet Map v2.16.2
3.4.7 3.4.6 trunk 2.10.0 2.10.1 2.11.0 2.11.1 2.11.2 2.11.3 2.11.4 2.11.5 2.12.0 2.13.0 2.14.0 2.15.0 2.16.0 2.16.1 2.16.2 2.17.0 2.17.1 2.17.2 2.17.3 2.18.0 2.19.0 2.19.1 All 49 releases
leaflet-map / scripts / construct-leaflet-map.min.js

construct-leaflet-map.min.js in Leaflet Map 2.16.2, at scripts/construct-leaflet-map.min.js

2 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(){var t=window.WPLeafletMapPlugin;if(window.WPLeafletMapPlugin=new function(){var t=!1,n=[];this.push=function(e){t?e():n.push(e)},this.unshift=function(e){t?e():n.unshift(e)},this.init=function(){t=!0;for(var e=0,i=n.length;e<i;e++)n[e]()},this.getCurrentMap=function(){return this.maps[this.maps.length-1]},this.getCurrentGroup=function(){var t=this.maps.length;return this.markergroups[t]||(this.markergroups[t]=this.newMarkerGroup(this.maps[t-1])),this.markergroups[t]},this.getCurrentMarkerGroup=this.getCurrentGroup,this.getGroup=function(t){return(new L.FeatureGroup).addTo(t)},this.newMarkerGroup=function(t){var n=this.getGroup(t);return n.timeout=null,t._shouldFitBounds&&n.on("layeradd",(function(e){e.layer instanceof L.FeatureGroup&&e.layer.on("ready",(function(){t.fitBounds(n.getBounds())})),window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){try{t.fitBounds(n.getBounds())}catch(t){}}),100)}),n),n};var e=this.unescape=function(t){var n=document.createElement("div");return n.innerHTML=t,n.innerText},i=/\{ *(.*?) *\}/g;this.template=function(t,n){return t.replace(i,(function(t,i){var o=function(t,n){for(var i=function(t){for(var n=t.split(r),e=[],i=0,o=n.length;i<o;i++)""!==n[i]&&e.push(n[i]);return e}(e(n)),o=t,u=0,s=i.length;u<s;u++)if(!(o=o[i[u]]))return;return o}(n,i);return void 0===o?t:o}))};var r=/[.‘’'“”"\[\]]+/g;this.maps=[],this.images=[],this.markergroups={},this.markers=[],this.lines=[],this.polygons=[],this.circles=[],this.geojsons=[]},t){for(var n=0,e=t.length;n<e;n++)window.WPLeafletMapPlugin.push(t[n]);for(var i in t.splice(0),t)t.hasOwnProperty(i)&&(window.WPLeafletMapPlugin[i]=t[i])}window.addEventListener?window.addEventListener("load",window.WPLeafletMapPlugin.init,!1):window.attachEvent&&window.attachEvent("onload",window.WPLeafletMapPlugin.init)}();
2