Back to layer and add zIndex to the container

pull/284/head
Francisco López 8 years ago
parent a82dbfb850
commit 8b860d4205

@ -4,7 +4,7 @@ require('./leaflet_tileloader_mixin');
* full canvas layer implementation for Leaflet
*/
L.CanvasLayer = L.GridLayer.extend({
L.CanvasLayer = L.Layer.extend({
includes: [L.Mixin.Events, L.Mixin.TileLoader],
@ -186,6 +186,7 @@ L.CanvasLayer = L.GridLayer.extend({
},
setZIndex: function(zIndex) {
this._container.style.zIndex = zIndex;
this._canvas.style.zIndex = zIndex;
if (this.options.zoomAnimation) {
this._backCanvas.style.zIndex = zIndex;

Loading…
Cancel
Save