我从:' osmdroid-android-4.3 + osmbonuspack_v5.1 '更新到' osmdroid-android-5.1 + osmbonuspack_v5.7 '
我还导入了“ osmdroid-third-party-5.1.jar ”
然后查看了OsmNavigator的源码,发现mapView的创建方式和老版本的OsmDroid不同:
//map = (MapView) findViewById(R.id.map);
GenericMapView genericMap = (GenericMapView) findViewById(R.id.map);
MapTileProviderBasic bitmapProvider = new MapTileProviderBasic(getApplicationContext());
genericMap.setTileProvider(bitmapProvider);
map = genericMap.getMapView();
错误:无法将 GenericMapView 解析为类型
我不能这样做:import org.osmdroid.bonuspack.mapsforge.GenericMapView;
问题:我在哪里可以找到包裹:org.osmdroid.bonuspack.mapsforge.GenericMapView;
?