Using sentinel process API in Javascript

I am trying to fetch images using the api using javascript. i tried to encode the png data that was fetched but was not able to visualize it. Anyone here can help with the same

I suggest you check senitnelhub-js library:

You might even check how this is done in our Sentinel Playground, it’s open-source:

Here are also two small demo projects

  • project using sentinelhub.js to get images and display them as <img> DOM elements
  • project using Process API to get images and put them on a Leaflet map and Catalog API to get the dates (without using sentinelhub.js)