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