PluginProbe
Leaflet Map / 2.17.2
Leaflet Map v2.17.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.17.2, at scripts/construct-leaflet-map.min.js

2 lines 2.0 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(i){t?i():n.push(i)},this.unshift=function(i){t?i():n.unshift(i)},this.init=function(){t=!0;for(var i=0,e=n.length;i<e;i++)n[i]()},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(i){i.layer instanceof L.FeatureGroup&&i.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 i=this.unescape=function(t){var n=document.createElement("div");return n.innerHTML=t,n.innerText},e=/\{ *(.*?) *\}/g;this.template=function(t,n){return t.replace(e,(function(t,e){var o=function(t,n){for(var e=function(t){for(var n=t.split(r),i=[],e=0,o=n.length;e<o;e++)""!==n[e]&&i.push(n[e]);return i}(i(n)),o=t,u=0,s=e.length;u<s;u++)if(!(o=o[e[u]]))return;return o}(n,e);return void 0===o?t:o}))};var r=/[.‘’'“”"\[\]]+/g;function o(t,n){"undefined"!=typeof L&&void 0!==L[t]?n():setTimeout((function(){o(t,n)}),100)}this.waitForSVG=function(t){o("SVGIcon",t)},this.waitForAjax=function(t){o("AjaxGeoJSON",t)},this.maps=[],this.images=[],this.markergroups={},this.markers=[],this.lines=[],this.polygons=[],this.circles=[],this.geojsons=[]},t){for(var n=0,i=t.length;n<i;n++)window.WPLeafletMapPlugin.push(t[n]);for(var e in t.splice(0),t)t.hasOwnProperty(e)&&(window.WPLeafletMapPlugin[e]=t[e])}window.addEventListener?window.addEventListener("load",window.WPLeafletMapPlugin.init,!1):window.attachEvent&&window.attachEvent("onload",window.WPLeafletMapPlugin.init)}();
2