Set Layer Editable
Toggles whether the target layer is editable.
Syntax
store.dispatch({ type: "SET_LAYER_EDITABLE", payload: {id, editable} });
Parameters
id
The target layer to set editable.
Examples
Toggles layer 2 to be editable.
store.dispatch({
type: "SET_LAYER_EDITABLE",
payload: {id: 2, editable: true}
});