Merge pull request #1683 from jfirebaugh/1683

tile layers added after initial load don't show up until zoomed
This commit is contained in:
Vladimir Agafonkin 2013-05-15 13:54:09 -07:00
commit 7a84294afd

View File

@ -240,7 +240,11 @@ L.TileLayer = L.Class.extend({
var className = 'leaflet-tile-container leaflet-zoom-animated';
this._bgBuffer = L.DomUtil.create('div', className, this._container);
this._bgBuffer.style.zIndex = 1;
this._tileContainer = L.DomUtil.create('div', className, this._container);
this._tileContainer.style.zIndex = 2;
} else {
this._tileContainer = this._container;
}