Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var geojsonvt = require('geojson-vt');
var vtpbf = require('vt-pbf');
var GeoJSONWrapper = vtpbf.GeoJSONWrapper;
var SphericalMercator = require('@mapbox/sphericalmercator');
var VectorTilesGenerator = function(options) {
this.projection = new SphericalMercator({
size: 256
});
this.pgPool = options.pgPool;
this.cacheOptions = options.cache;
};
VectorTilesGenerator.prototype.tile = function(opts) {
var tile = {
x: opts.x,
y: opts.y,
z: opts.z
};