krishna lodha
krishna lodha

Reputation: 417

Not able to load GeoTIFF stored in Cloudflare R2 in Openlayers

I'm trying to create an openlayers application to show GeoTIFF stored in my R2 cloudflare.

I'm following same code as https://openlayers.org/en/latest/examples/cog-overviews.html with my R2 link.

my code looks like this


const source = new GeoTIFF({
  sources: [
    {
      url: "https://<my-r2-domain>.r2.dev/airport.tif",
    },
  ],
  interpolate: false,
  normalize: false,
});

const layer =  new WebGLTileLayer({
      source: source,
    })

map.addLayer(layer)

I'm getting

Failed to load resource: net::ERR_INSUFFICIENT_RESOURCES

enter image description here

Upvotes: -2

Views: 40

Answers (0)

Related Questions