MCPcopy Create free account
hub / github.com/Maps4HTML/MapML.js / pcrs2tilematrix

Function pcrs2tilematrix

src/mapml/layers/TemplatedTileLayer.js:587–592  ·  view source on GitHub ↗
(c, zoom)

Source from the content-addressed store, hash-verified

585 return transformation.untransform(c.multiplyBy(tileSize), scale(zoom));
586 },
587 pcrs2tilematrix = function (c, zoom) {
588 return transformation
589 .transform(c, scale(zoom))
590 .divideBy(tileSize)
591 .floor();
592 };
593 if (east && north) {
594 template.pcrs = {};
595 template.pcrs.bounds = bounds(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected