Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createViewport(opt) {
opt = opt || {};
return ViewportMercator({
latitude: 0,
longitude: 0,
zoom: opt.zoom || 0,
tileSize: opt.tileSize || 512,
width: opt.width || 512,
height: opt.height || 512
});
}