({ scale, dpi, coordUnit }, extent)
| 182 | * @returns {number} zoom |
| 183 | */ |
| 184 | export function getZoom({ scale, dpi, coordUnit }, extent) { |
| 185 | const resolutions = extentToResolutions(extent); |
| 186 | return getZoomByResolution(scaleToResolution(scale, dpi, coordUnit), resolutions); |
| 187 | } |
no test coverage detected