First off; let me apologize for first asking this question on the issues of Github. It was a bit of a hurried question, however it's fine for now.
I've written a script that samples the terrain to get the 'appropriate' zoomlevel for the final sampleTerrain function, starting from zoomlevel 15.
Now, this works great. I get the correct zoomlevels for the tiles I'm on (f.e. - Netherlands generally returns '14' as the highest zoomlevel. But if I go to Mirny Mine, it will return '9'.).
However what this does do is that it throws quite a lot of errors (for the lower detail levels ofcourse a larger amount due to the fact that multiple sampleterrains are ran.). Is there a way to catch these by myself instead of having the sampleTerrain function itself throw the errors?