其搭载Android 4.4版本(奇巧)与bingmap问题奇巧、版本、问题、Android

2023-09-06 09:13:55 作者:盛装出席只为错过你

I M在我的应用程序中使用bingmap和它做工精细,直到软糖版本。当我的目标设定为4.4,必应地图只是加载大陆独自没有指向的当前位置。

i m using bingmap in my app and its working fine till jellybean version. When i set the target to 4.4, the bing map is just loading the continents alone and not pointing the current location.

在调试时,发现该地图加载事件处理程序回调是没有得到调用。

On Debugging, found out that the map loaded event handler callback is not getting called.

下面是maploadedlistener的code片段。

Below is the code snippet for maploadedlistener.

       //Add a map loaded event handler
     bingMapsView.setMapLoadedListener(new MapLoadedListener() {
        public void onAvailableChecked() {
            mIsMapReady = true;
            mHandler.post(new Runnable() {

                @Override
                public void run() {
                    _gpsLayer = new EntityLayer(Constants.DataLayers.GPS);
                    bingMapsView.getLayerManager().addLayer(_gpsLayer);
                    updateGPSPin();
                }
            });
        }
    });

有没有人遇到同样的问题,与Android 4.4?还请大家提出了一些补救措施。

Has anyone faced the same issue with android 4.4? ALso please suggest some remedy.

推荐答案

我的临时解决方案现在是先隐藏地图和完成加载后显示,我也锁定触摸功能,而变焦。

My temporary solution now is hide the map first and show after finish loading and I also lock the touch function while zooming.