我有这样的代码谷歌地图的LatLngBounds偏移
LatLngBounds.Builder builder = new LatLngBounds.Builder();
builder.include(mainLocation);
builder.include(userLocation);
LatLngBounds bounds = builder.build();
CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, 0);
mMap.animateCamera(cu);
而且这个作品它显示了边界,但我想显示在屏幕的上半部分范围(有没有把偏移Y的方式?)。
(希望这幅画能更好地解释事情)
我假设你需要显示纬度/经度在屏幕的不同位置,对不对? 0.o –
@FrancisRodrigues是的,你是对的。 – MePo