Gets the legend query status for a specific layer.
The map identifier
The layer path to look up
The layer legend query status, defaults to undefined
Gets the legend query status for a specific layer.