1 (edited by Sinthien 2019-03-08 14:06:29)

Topic: Calculate, Load and Save Tiles of specified area for offline use

Hello Team,
first thank you for the awesome plugin !
For my program i need to download a specific set of tiles (of a specific area which the user can choose).
For example: im at home and need the map of another city where i have no internet access.
So far i need to scroll through the entire city in order to download and store the tiles.

Is there a way the user can set Point A (Lat|Lon), Point B (Lat|Lon) and preload all Tiles within this area and given zoom-ranges ?
And as bonus get a calculation of diskusage and amount of tiles ? (Edit: your online tile counter does this calculation already. but how can i make use of this in my application?)

Re: Calculate, Load and Save Tiles of specified area for offline use

Hello.

Example is attached.

Post's attachments

Attachment icon TileDownloader.cs 9.03 kb, 144 downloads since 2019-03-09 

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.

Re: Calculate, Load and Save Tiles of specified area for offline use

Whoah yikes Thx a lot ! Works like a charm and expected ! big_smile big_smile

Re: Calculate, Load and Save Tiles of specified area for offline use

Could you please direct me to the way on how I can use tiledownloader.cs to pre-populate cache?

Re: Calculate, Load and Save Tiles of specified area for offline use

You specify the coordinates of the area boundaries and zoom range and click Download button on GUI.
Or just use this script as an example of how to implement a download area, and use tiles from the downloaded data.

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.