如何浏览osmdroid v4.0 android API?
代码
// MapView
mapView = (MapView) findViewById(R.id.mapview);
mapView.setTileSource(TileSourceFactory.MAPNIK);
mapView.setBuiltInZoomControls(true);
mapController = mapView.getController();
mapController.setZoom(15);
GeoPoint gpoint = new GeoPoint(51.51197, -0.1228);
mapController.setCenter(gpoint);
答案 0 :(得分:2)
你试过osmdroid homepage吗?维基有很多信息。或者osmdroid遵循的Google API v1 documentation怎么样?您是否看过osmdroid example project,它清楚地展示了如何在各种场景中使用osmdroid?你试过Google吗?