| 1 |
!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)}(); |