simplify pane structure (remove objectsPane, not necessary)

This commit is contained in:
Vladimir Agafonkin 2013-12-28 03:38:59 +02:00
parent ee3f2f8b1e
commit bc9721b3be
2 changed files with 2 additions and 4 deletions

1
dist/leaflet.css vendored
View File

@ -62,7 +62,6 @@
} }
.leaflet-tile-pane { z-index: 2; } .leaflet-tile-pane { z-index: 2; }
.leaflet-objects-pane { z-index: 3; }
.leaflet-overlay-pane { z-index: 4; } .leaflet-overlay-pane { z-index: 4; }
.leaflet-shadow-pane { z-index: 5; } .leaflet-shadow-pane { z-index: 5; }
.leaflet-marker-pane { z-index: 6; } .leaflet-marker-pane { z-index: 6; }

View File

@ -437,8 +437,7 @@ L.Map = L.Evented.extend({
this._mapPane = panes.mapPane = this._createPane('leaflet-map-pane', this._container); this._mapPane = panes.mapPane = this._createPane('leaflet-map-pane', this._container);
this._tilePane = panes.tilePane = this._createPane('leaflet-tile-pane', this._mapPane); panes.tilePane = this._createPane('leaflet-tile-pane');
panes.objectsPane = this._createPane('leaflet-objects-pane', this._mapPane);
panes.shadowPane = this._createPane('leaflet-shadow-pane'); panes.shadowPane = this._createPane('leaflet-shadow-pane');
panes.overlayPane = this._createPane('leaflet-overlay-pane'); panes.overlayPane = this._createPane('leaflet-overlay-pane');
panes.markerPane = this._createPane('leaflet-marker-pane'); panes.markerPane = this._createPane('leaflet-marker-pane');
@ -454,7 +453,7 @@ L.Map = L.Evented.extend({
}, },
_createPane: function (className, container) { _createPane: function (className, container) {
return L.DomUtil.create('div', className, container || this._panes.objectsPane); return L.DomUtil.create('div', className, container || this._mapPane);
}, },