MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getZoom

Function getZoom

src/common/iServer/InitMapServiceBase.js:184–187  ·  view source on GitHub ↗
({ scale, dpi, coordUnit }, extent)

Source from the content-addressed store, hash-verified

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

Callers 2

createMapOptionsFunction · 0.90
createMapOptionsFunction · 0.90

Calls 3

getZoomByResolutionFunction · 0.90
scaleToResolutionFunction · 0.90
extentToResolutionsFunction · 0.85

Tested by

no test coverage detected