From e8c28b996179373447dde1df479898576a508579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20S=C3=A1nchez=20Ortega?= Date: Thu, 11 Jun 2020 11:07:29 +0200 Subject: [PATCH] docstrings: Layer's removeFrom works on LayerGroups too --- src/layer/Layer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layer/Layer.js b/src/layer/Layer.js index 72e4add9e33..c6285a9c057 100644 --- a/src/layer/Layer.js +++ b/src/layer/Layer.js @@ -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);