Remove Layer

Removes target layer from the layer array.

Syntax

store.dispatch({ type: "REMOVE_LAYER", payload: {id} });

Parameters

id

The id of the layer to remove.

Examples

Removes the layer with an id of one 1.

store.dispatch({
  type: "REMOVE_LAYER",
  payload: {id: 1}
});