From 3d77ce34e7b0c3363c02e2aff19eb7997e5707ee Mon Sep 17 00:00:00 2001 From: Eddydg Date: Tue, 28 Nov 2017 18:56:02 +0100 Subject: [PATCH] Update index.js The `moveGroup` documentation was the same as the `removeGroup`'s. This replaces it with a more appropriate doc. --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8b2ae96..7d89215 100644 --- a/index.js +++ b/index.js @@ -58,10 +58,12 @@ function removeGroup(map, id) { } /** - * Remove a layer group and all of its layers from the map. + * Move a layer group and all of its layers after a given layer. * * @param {Map} map * @param {string} id The id of the group to be removed. + * @param {string} beforeId An existing layer id after which the group + * layers will be moved to. */ function moveGroup(map, id, beforeId) { var beforeLayerId = normalizeBeforeId(map, beforeId);