The Felt SDK provides methods to control the visibility of various entities like layers, layer groups, annotation groups, and legend items. These methods are designed to efficiently handle bulk operations.
Understanding visibility requests
All visibility methods use a consistent structure that allows both showing and hiding entities in a single call:
{show?:string[],// IDs of entities to showhide?:string[] // IDs of entities to hide}
Layers
Control visibility of layer groups using setLayerVisibility: