simplify pane structure (remove objectsPane, not necessary)
This commit is contained in:
parent
ee3f2f8b1e
commit
bc9721b3be
1
dist/leaflet.css
vendored
1
dist/leaflet.css
vendored
@ -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; }
|
||||
|
@ -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);
|
||||
},
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user