Skip to main content

Store and reload Swingx map data

1 reply [Last post]
A1ml3ss
Offline
Joined: 2013-10-05
Points: 0

Hi,

i'd like to know if there is an easy possibility to Store the Map information that are downloaded and displayed.
So that in case there is no Internet connection the tiles, which have been downloaded before, can still be displayed.

Thank you for any Help!

Greetings
A1ml3ss

PS: Sorry for my bad english.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kleopatra
Offline
Joined: 2003-06-11
Points: 0

certainly - but you have to implement it yourself :-)

My take would be a custom TileFactory, that would

- load a new Tile not only into in-memory image cache but also save it to a file.
- on loading a Tile, fallback to the local file lookup if offline

Have a look at AbstractTileFactory to get an idea about its Tile handling, it's probably c&p of the TileRunner.

No an expert in swingx-ws, so no guarantees that would work.

HTH
Jeanette