Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
geoblaze.load(input)
.then(georaster => {
let options = {
georaster: georaster,
opacity: 0.7,
resolution: getResolution()
};
const raster = new GeoRasterLayer(options);
resolve(raster);
}, error => {
reject(error);
});
});
},