How to use the georaster-layer-for-leaflet function in georaster-layer-for-leaflet

To help you get started, we’ve selected a few georaster-layer-for-leaflet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GeoTIFF / geotiff.io / src / services / RasterService.js View on Github external
createRasterFromGeoraster(georaster) {
    const options = {
      georaster,
      opacity: 0.7,
      resolution: getResolution()
    }
    return new GeoRasterLayer(options);
  }
}
github GeoTIFF / geotiff.io / src / services / RasterService.js View on Github external
.then(georaster => {
          let options = {
            georaster: georaster,
            opacity: 0.7,
            resolution: getResolution()
          };
          const raster = new GeoRasterLayer(options);
          resolve(raster);
        }, error => {
          reject(error);

georaster-layer-for-leaflet

Display GeoTIFFs and soon other types of raster on your Leaflet Map

Apache-2.0
Latest version published 2 years ago

Package Health Score

58 / 100
Full package analysis

Popular georaster-layer-for-leaflet functions