OsmDroid setCenter以错误的位置为中心

Cos*_*kin 1 android openstreetmap osmdroid

我使用OSMDROID 4.2并致电

getController().setCenter(lat, long);
Run Code Online (Sandbox Code Playgroud)

它在OSMDROID 3.0.4中运行良好,但在新版本中,我看到中心点实际上不在屏幕的中心,而是在左上角.
知道如何解决这个问题吗?
谢谢

Bla*_*ght 5

有一个错误显然已经在master中修复,但还没有发布:https://github.com/osmdroid/osmdroid/issues/22我想这会影响你.

由于我发现4.2非常错,我建议你使用4.1直到有新版本:https://github.com/osmdroid/osmdroid/releases/tag/osmdroid-parent-4.1

编辑

osmdroid 4.3已经发布,试一试.