Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down