Hi,
I noticed that the map vanishes when zooming in a lot while using a larger map file (e.g. Germany, or even a MultiMapFile with multiple countries).
Similar issues had been discussed/fixed here:
https://github.com/mapsforge/mapsforge/issues/572but this is a different one.
While rendering itself seems to work just fine, the issue happens afterwards when trying to fill the background.
Relevant code:
DatabaseRenderer uses canvasRasterer.fillOutsideAreas() and passes it the MapFile's bounding box (coordinates relative to the tile boundary).
When zooming in a lot, this can easily become -1E9/1E9.
CanvasRasterer then uses setClipDifference and casts all parameters to int (as the canvas wants it). However, these ints will then overflow.
If I can see it correctly, AwtCanvas could work with double based clipping just fine, but Android's canvas can not? I guess a custom workaround would be needed for this? Any idea for a fix?