Computes the map scale for the given pointResolution (in meters per pixel).
pointResolution
The point resolution is typically derived from the map's center, its projection and its view resolution, see getPointResolution.
Note that the returned scale is the denominator of the map's scale, i.e. 1:${scale}.
1:${scale}
NOTE: The value is not rounded.
See also OpenLayers' getScaleForResolution(): https://github.com/openlayers/openlayers/blob/7fa9df03431e9e1bc517e6c414565d9f848a3132/src/ol/control/ScaleLine.js#L454C3-L454C24
getScaleForResolution()
Computes the map scale for the given
pointResolution(in meters per pixel).The point resolution is typically derived from the map's center, its projection and its view resolution, see getPointResolution.
Note that the returned scale is the denominator of the map's scale, i.e.
1:${scale}.See also OpenLayers'
getScaleForResolution(): https://github.com/openlayers/openlayers/blob/7fa9df03431e9e1bc517e6c414565d9f848a3132/src/ol/control/ScaleLine.js#L454C3-L454C24