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

Function zoomToScale

docs/app/js/sanddance-app.js:80282–80284  ·  view source on GitHub ↗
(zoom)

Source from the content-addressed store, hash-verified

80280const MAX_LATITUDE = 85.051129;
80281const DEFAULT_ALTITUDE = 1.5;
80282function zoomToScale(zoom) {
80283 return Math.pow(2, zoom);
80284}
80285function scaleToZoom(scale) {
80286 return (0, _mathUtils.log2)(scale);
80287}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected