Open tirengarfio opened 4 years ago
Hi how can i change the lat lng bounds from australia to another location
Hi @tirengarfio, use async and await to fully load the tiff before doing something else. You can refer to https://geotiffjs.github.io/ for the latest update.
Hi,
is is possible to detect when the geotiff has been loaded to, for example, get the min and the max values from the main?
I mean: based on the version 2 of this library, I have added the lines that you can see in this snippet below, to get the min and the max values:
And on my main code I have this:
but I get 'undefined' from both of console.log() calls I guess because the AJAX request is asynchronous. Since I don't want to use a synchronous AJAX request, how can I get the min and max values?
Javier