动画时Android MapView无法加载图块?

问题描述

与这里的问题有关: android google maps not loading the map when using GoogleMap.AnimateCamera() 我已经用我的MapView实现了我自己的“跟随我”模式(因为我看不到内置的一种),该模式是使用以下代码进行设置的(为清楚起见,已删除错误检查):

LocationManager service = (LocationManager)getActivity().getSystemService(Context.LOCATION_SERVICE);
service.requestLocationUpdates(LocationManager.GPS_PROVIDER,500,(float).5,locationListener);

我的locationListener是:

private final LocationListener locationListener = new LocationListener() {
    [..]
    @Override
    public void onLocationChanged(Location location) {
        // Only recenter if the user has the option enabled!
        mMap.animateCamera(
            CameraUpdateFactory.newLatLngZoom(
                new LatLng(location.getLatitude(),location.getLongitude()),15)
        );
    }
}

因此,直到我停下来,这些瓦片-我的自定义TileOverlay和Google自己的认瓦片似乎都没有加载。 (从字面上看-停止移动。)一旦地图停止,所有可见的图块都将加载。

有没有办法-或者我做错了什么-在地图移动时加载瓦片?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)