Sets the legend query status and optional legend data for a specific layer.
Updates the layer's icon images and legend items when legend data with a type is provided.
The map identifier.
The layer path to update.
The new legend query status.
Optional legend data containing the layer type, legend styles, and style config.
Sets the legend query status and optional legend data for a specific layer.
Updates the layer's icon images and legend items when legend data with a type is provided.