"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("mapbox-gl");exports.getViewportBounds=function(e,o,r,a){var n=512*Math.pow(2,o),s=t.MercatorCoordinate.fromLngLat(e),i=r/2/n,u=a/2/n,g=new t.MercatorCoordinate(s.x-i,s.y+u,0).toLngLat(),l=new t.MercatorCoordinate(s.x+i,s.y-u,0).toLngLat();return{north:l.lat,south:g.lat,east:l.lng,west:g.lng}};
//# sourceMappingURL=getViewportBounds.js.map
