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