Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can support the sqlite of arcgis offline tiles when zoom=0 but has more than one tiles? #1947

Open
yanjingjiangjun opened this issue Oct 23, 2023 · 0 comments

Comments

@yanjingjiangjun
Copy link

Issue Type

[X ] Questionn

Description and/or steps/code to reproduce the problem

TileLooper.java has a method : loop(final double pZoomLevel, final RectL pMercatorViewPort);
`

protected void loop(final double pZoomLevel, final RectL pMercatorViewPort)
{

TileSystem.getTileFromMercator(pMercatorViewPort, TileSystem.getTileSize(pZoomLevel), mTiles);

mTileZoomLevel = TileSystem.getInputTileZoomLevel(pZoomLevel);

initialiseLoop();

final int mapTileUpperBound = 1 << mTileZoomLevel;

  /* Draw all the MapTiles (from the upper left to the lower right). */
  for (int i = mTiles.left ; i <= mTiles.right ; i ++) {
      for (int j = mTiles.top ; j <= mTiles.bottom ; j ++) {
	      if ((horizontalWrapEnabled || (i >= 0 && i < mapTileUpperBound)) && (verticalWrapEnabled
			      || (j >= 0 && j < mapTileUpperBound))) {
		      final int tileX = MyMath.mod(i, mapTileUpperBound);
		      final int tileY = MyMath.mod(j, mapTileUpperBound);
		      final long tile = MapTileIndex.getTileIndex(mTileZoomLevel, tileX, tileY);
		      handleTile(tile, i, j);
	      }
      }
  }
  
  finaliseLoop();

}
`
now,"int mapTileUpperBound = 1 << mTileZoomLevel" only support the osm style map, can not load the map tiles when the zoom is 0 ,but it has more than one tiles,such as the arcgis offline files.

Environment

If it's a bug, version(s) of android this affects:

All

Version of osmdroid the issue relates to:

6.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant