diff --git a/dist/leaflet.css b/dist/leaflet.css index 24755b8b..a0bd5f4f 100644 --- a/dist/leaflet.css +++ b/dist/leaflet.css @@ -62,7 +62,6 @@ } .leaflet-tile-pane { z-index: 2; } -.leaflet-objects-pane { z-index: 3; } .leaflet-overlay-pane { z-index: 4; } .leaflet-shadow-pane { z-index: 5; } .leaflet-marker-pane { z-index: 6; } diff --git a/src/map/Map.js b/src/map/Map.js index 689926e5..e6226867 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -437,8 +437,7 @@ L.Map = L.Evented.extend({ this._mapPane = panes.mapPane = this._createPane('leaflet-map-pane', this._container); - this._tilePane = panes.tilePane = this._createPane('leaflet-tile-pane', this._mapPane); - panes.objectsPane = this._createPane('leaflet-objects-pane', this._mapPane); + panes.tilePane = this._createPane('leaflet-tile-pane'); panes.shadowPane = this._createPane('leaflet-shadow-pane'); panes.overlayPane = this._createPane('leaflet-overlay-pane'); panes.markerPane = this._createPane('leaflet-marker-pane'); @@ -454,7 +453,7 @@ L.Map = L.Evented.extend({ }, _createPane: function (className, container) { - return L.DomUtil.create('div', className, container || this._panes.objectsPane); + return L.DomUtil.create('div', className, container || this._mapPane); },