Set Layer Active

Switches which layer is the active layer.

Syntax

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

Parameters

id

The target layer to set active.

Examples

Switches the base layer to be the active layer.

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