大佬教程收集整理的这篇文章主要介绍了android – OSMDroid非常慢地加载tile,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这种情况发生在我试用过的两款设备上,都有高速互联网连接(蜂窝和WIFI).
这似乎是一个问题,因为加载不应该那么慢
这是活动中地图的代码段:
@Override protected void onCreate( Bundle savedInstanceStatE) { super.onCreate(savedInstanceStatE); appContext = getApplicationContext(); //important! set your user agent to prevent getTing bAnned from the osm servers Configuration.geTinstance().load(appContext,PreferenceManager.getDefaultSharedPreferences(appContext)); setContentView(R.layout.navigation); mMapView = (MapView) findViewById(map); mMapView.setTilesource(TilesourceFactory.MAPNIK); mMapView.setMultiTouchControls(true); mMapView.setBuilTinZoomControls(true); // add rotation gesture mRotationGestureOverlay = new RotationGestureOverlay(this,mMapView); mRotationGestureOverlay.setEnabled(true); mMapView.setMultiTouchControls(true); mMapView.getOverlays().add(this.mRotationGestureOverlay); // Set to default LOCATIOn IMapController mapController = mMapView.getController(); mapController.setZoom(15); GeoPoint startPoint = new GeoPoint(48.8589654,2.2926013); mapController.setCenter(startPoint); }
我似乎无法找到这种缓慢负载的原因.
有没有选择使用更简单的地图?会有帮助吗?
有没有其他解决方案,我做错了什么?
谢谢.
以上是大佬教程为你收集整理的android – OSMDroid非常慢地加载tile全部内容,希望文章能够帮你解决android – OSMDroid非常慢地加载tile所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。