Shows or hides a given layer using its identifier (of character type) in a Panel Grid whose Control Type property is set to Maps.
GridControlName.SetLayerVisible(LayerId, Visible)
Where:
GridControlName
Grid control name whose Control Type property is set to Maps.
LayerId
Layer Identifier based on the character data type.
Visible
Boolean value. When True, the Layer is shown. Otherwise, it is hidden.
Geometry Layer