1L.Control.Loader = L.Control.extend({ 2 options: { 3 }, 4 5 onAdd: function (map) { 6 this.container = L.DomUtil.create('div', 'leaflet-bar leaflet-control'); 7 8 9 this.loaderContainer = L.DomUtil.create('div', 'leaflet-loader-container', this._map._container); 10 this.loaderBG = L.DomUtil.create('div', 'leaflet-loader-background', this.loaderContainer); 11 this.loader = L.DomUtil.create('div', 'leaflet-loader', this.loaderBG); 12 for (i=0; i<3; i++) { 13 L.DomUtil.create('div', '', this.loader); 14 } 15 16 this._map.dragging.disable(); 17 this._map.touchZoom.disable(); 18 this._map.doubleClickZoom.disable(); 19 this._map.scrollWheelZoom.disable(); 20 21 return this.container; 22 }, 23 hide: function () { 24 this.loaderBG.style.animation ="hideLoader 1s"; 25 this.loaderBG.style.webkitAnimationName ="hideLoader 1s"; 26 this.loaderBG.style.opacity ="0"; 27 28 var _this =this; 29 setTimeout(function (){_this.loaderContainer.style.display ="none";},500); 30 this._map.dragging.enable(); 31 this._map.touchZoom.enable(); 32 this._map.doubleClickZoom.enable(); 33 this._map.scrollWheelZoom.enable(); 34 } 35}); 36 37L.control.loader = function(options) { 38 var newControl = new L.Control.Loader(options); 39 return newControl; 40};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.