MCPcopy Create free account
hub / github.com/microsoft/SandDance / getMeterZoom

Function getMeterZoom

docs/app/js/sanddance-app.js:80310–80315  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

80308 ];
80309}
80310function getMeterZoom(options) {
80311 const { latitude } = options;
80312 (0, _assertDefault.default)(Number.isFinite(latitude));
80313 const latCosine = Math.cos(latitude * DEGREES_TO_RADIANS);
80314 return scaleToZoom(EARTH_CIRCUMFERENCE * latCosine) - 9;
80315}
80316function getDistanceScales(options) {
80317 const { latitude , longitude , highPrecision =false } = options;
80318 (0, _assertDefault.default)(Number.isFinite(latitude) && Number.isFinite(longitude));

Callers

nothing calls this directly

Calls 1

scaleToZoomFunction · 0.70

Tested by

no test coverage detected