How to use the geotiff/src/main.fromUrls function in geotiff

To help you get started, we’ve selected a few geotiff 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 geotiffjs / cog-explorer / src / components / mapview.jsx View on Github external
async getImage(sceneId, url, hasOvr = true) {
    if (!this.sceneSources[sceneId]) {
      this.sceneSources[sceneId] = {};
    }
    if (!this.sceneSources[sceneId][url]) {
      if (hasOvr) {
        this.sceneSources[sceneId][url] = fromUrls(url, [`${url}.ovr`]);
      } else {
        this.sceneSources[sceneId][url] = fromUrl(url);
      }
    }
    return this.sceneSources[sceneId][url];
  }