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

Function getDpi

src/common/util/MapCalculateUtil.js:283–288  ·  view source on GitHub ↗
(scale, resolution, mapUnit)

Source from the content-addressed store, hash-verified

281}
282
283export function getDpi(scale, resolution, mapUnit) {
284 const inchPerMeter = 1 / 0.0254;
285 const meterPerMapUnitValue = getMeterPerMapUnit(mapUnit);
286 const dpi = 1.0/resolution/(scale * inchPerMeter * meterPerMapUnitValue);
287 return dpi;
288}
289
290/**
291 * @private

Callers 1

initMapFunction · 0.90

Calls 1

getMeterPerMapUnitFunction · 0.85

Tested by

no test coverage detected