Temporary method to set the legend layers directly in the store, used for the moment to set the
legend layers with the data from the query result of the legend.
This method should be used with caution and only in specific cases, as it bypasses the usual
state update patterns and may lead to unintended side effects if not used properly.
Parameters
mapId: string
The map identifier
legendLayers: TypeLegendLayer[]
The legend layers to set
Returns void
Deprecated
Try to use another more direct method to update the store
Temporary method to set the legend layers directly in the store, used for the moment to set the legend layers with the data from the query result of the legend.
This method should be used with caution and only in specific cases, as it bypasses the usual state update patterns and may lead to unintended side effects if not used properly.