哪里可以找到osmdroid v4.0 android api代码示例?

时间:2013-12-31 12:43:29

标签: android api maps osmdroid

如何浏览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);

1 个答案:

答案 0 :(得分:2)

你试过osmdroid homepage吗?维基有很多信息。或者osmdroid遵循的Google API v1 documentation怎么样?您是否看过osmdroid example project,它清楚地展示了如何在各种场景中使用osmdroid?你试过Google吗?

相关问题