Wrap the utilities.download_ArcGIS_REST and this download_TileMapServer() function into a download_web_server() wrapper. That detects which function to use based on the URL and has the (optional? not sure) ability for async
Move all of this out of utilities and into a new module, download.py
@Om-Doiphode do you want to collaborate with me on this? If interested, give it a go and I will help.
In line with the new function described here:
https://deepforest.readthedocs.io/en/latest/annotation.html#specify-a-lat-long-box-and-crop-an-imageserver-asset
We should add other image source APIs, like TMS (Tile Map Server)
https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification
Here is an example from South Africa
https://aerial.openstreetmap.org.za/
@Om-Doiphode do you want to collaborate with me on this? If interested, give it a go and I will help.