* @private * @function getZoomByScale * @description 获取Zoom。 * @param {Object} options * @param {string} options.scale - scale。 * @param {number} options.dpi - dpi * @param {string} options.coordUnit - coordUnit * @param {Object} visableResolutions - visableResolutions * @returns {number} zo
({ scale, dpi, coordUnit }, visableResolutions)
| 197 | * @returns {number} zoom。 |
| 198 | */ |
| 199 | function getZoomByScale({ scale, dpi, coordUnit }, visableResolutions) { |
| 200 | const resolution = scaleToResolution(scale, dpi, coordUnit); |
| 201 | return getZoomByResolution(resolution, visableResolutions); |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * @private |
no test coverage detected