Open this page in the API Guide

LayerViewModel.viewPanel Property

Gets or sets the viewpanel of this layer.