Closed bdaum closed 7 months ago
Nice catch @bdaum Are you able to create a PR?
@bdaum feel free to ask if you need any help
Actually there is another glitch. The cache should be cleared when the GeoMapHelper instance is disposed:
/**
* Dispose internal data
*/
public void dispose() {
waitBackground.dispose();
waitForeground.dispose();
cache.clear();
}
Hi @bdaum
Can you provide a patch through a pull request ? Do you need some help ?
When setting a new tile server, the tile cache is cleared. But clearing the tile cache leaves the tile images undisposed. Overriding the clear() method in the GeoMapHelper constructor fixes the problem: