In my OpenLayers map application I display many WMS layers from different sources. Some of them have display scale restrictions set by MinScaleDenominator and MaxScaleDenominator tags in WMS GetCapabilities.
What I want to achieve is to notify my application users to zoom in or zoom out to view particular layer.
How can I compare current map view zoom level to MinScaleDenominator and MaxScaleDenominator in OpenLayers?