Merge pull request #567 from Gustl22/gdx_poi3d

vtm-playground: fix scale of trees in higher zoom levels (GDX)
This commit is contained in:
Emux 2018-08-25 13:57:21 +03:00 committed by GitHub
commit 278ef523b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ public class Poi3DLayer extends Layer implements Map.UpdateListener {
return;
// scale aka tree height
float scale = (float) (1f / (1 << (17 - zoom))) * 8;
float scale = (float) (1f / Math.pow(2, (17 - zoom))) * 8;
double tileX = (pos.x * (Tile.SIZE << zoom));
double tileY = (pos.y * (Tile.SIZE << zoom));