You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taking a closer look it seems like there is no check in the AbstractTileFactory for the case that (int) getMapSize(zoom).getWidth() returns 0 resulting in divided by zero at tileX = tileX % numTilesWide;:
private Tile getTile(int tpx, int tpy, int zoom, boolean eagerLoad)
{
// wrap the tiles horizontally --> mod the X with the max width
// and use that
int tileX = tpx;// tilePoint.getX();
int numTilesWide = (int) getMapSize(zoom).getWidth();
if (tileX < 0)
{
tileX = numTilesWide - (Math.abs(tileX) % numTilesWide);
}
tileX = tileX % numTilesWide;
...
}
Is this supposed to happen and the error is on m side?
The text was updated successfully, but these errors were encountered:
Hi there,
I am getting a divided by zero Exception in the AbstractTileFactory whenever the JXMapViewer is not visible (hidden/collapsed in the UI):
Taking a closer look it seems like there is no check in the AbstractTileFactory for the case that (int) getMapSize(zoom).getWidth() returns 0 resulting in divided by zero at tileX = tileX % numTilesWide;:
Is this supposed to happen and the error is on m side?
The text was updated successfully, but these errors were encountered: