diff --git a/dist/leaflet.css b/dist/leaflet.css index ff692dbb..1edf2b14 100644 --- a/dist/leaflet.css +++ b/dist/leaflet.css @@ -150,11 +150,6 @@ opacity: 1; } -.leaflet-hack { - width: 1px; - height: 1px; -} - .leaflet-zoom-anim .leaflet-zoom-animated { -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1); -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1); diff --git a/src/layer/tile/GridLayer.js b/src/layer/tile/GridLayer.js index d5906879..fa08f270 100644 --- a/src/layer/tile/GridLayer.js +++ b/src/layer/tile/GridLayer.js @@ -195,11 +195,7 @@ L.GridLayer = L.Layer.extend({ this._tilesToLoad = 0; this._tilesTotal = 0; - var front = this._tileContainer; - - front.innerHTML = ''; - - // hack that prevents hw layers "stretching" when loading new tiles + this._tileContainer.innerHTML = ''; if (this._zoomAnimated && e && e.hard) { this._clearBgBuffer();