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

Function scaleToZoom

docs/app/js/sanddance-app.js:80285–80287  ·  view source on GitHub ↗
(scale)

Source from the content-addressed store, hash-verified

80283 return Math.pow(2, zoom);
80284}
80285function scaleToZoom(scale) {
80286 return (0, _mathUtils.log2)(scale);
80287}
80288function lngLatToWorld(lngLat) {
80289 const [lng, lat] = lngLat;
80290 (0, _assertDefault.default)(Number.isFinite(lng));

Callers 1

getMeterZoomFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected