2

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?

3
  • 1
    does gis.stackexchange.com/questions/242424/… help?
    – Ian Turton
    Commented Apr 24, 2018 at 16:32
  • helps, thank you! But I'm not sure how to get values of inchesPerMetre and DPI (used in mapScale function)? Commented Apr 26, 2018 at 10:29
  • inches per meter is 12(inches)*3.28084(ft in a metre) - DPI is usually 72 or 96 or so
    – Ian Turton
    Commented Apr 26, 2018 at 10:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.