Skip to content

Commit

Permalink
docstrings: Layer's removeFrom works on LayerGroups too
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSanchez committed Jun 11, 2020
1 parent 25f7bbb commit e8c28b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/layer/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export var Layer = Evented.extend({

// @method removeFrom(map: Map): this
// Removes the layer from the given map
//
// @alternative
// @method removeFrom(group: LayerGroup): this
// Removes the layer from the given `LayerGroup`
removeFrom: function (obj) {
if (obj) {
obj.removeLayer(this);
Expand Down

0 comments on commit e8c28b9

Please sign in to comment.