Open this page in the API Guide

Canvas.setActiveLayer Method

Sets the active layer.
 

Parameters

targetLayerVM