我在哪里可以找到osmdroid V4.0 Android的API code的例子吗? [英] Where can I find osmdroid v4.0 android api code examples?
本文介绍了我在哪里可以找到osmdroid V4.0 Android的API code的例子吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何探索osmdroid V4.0 Android的API?
code
//的MapView
图形页面=(图形页面)findViewById(R.id.mapview);
mapView.setTileSource(TileSourceFactory.MAPNIK);
mapView.setBuiltInZoomControls(真);
mapController = mapView.getController();
mapController.setZoom(15);
GeoPoint的gpoint =新的GeoPoint(51.51197,-0.1228);
mapController.setCenter(gpoint);
解决方案
你有没有试过 osmdroid主页? wiki有大量的信息在里面。或者怎么样的谷歌API V1文档这就是osmdroid如下。你已经采取了看 osmdroid示例项目这清楚地说明了如何使用osmdroid在不同的情况?您是否尝试过谷歌?
How do I explore the osmdroid v4.0 android API?
Code
// 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);
解决方案
Have you tried the osmdroid homepage? The wiki has a lot of information in there. Or how about the Google API v1 documentation which is what osmdroid follows. Have you taken a look at the osmdroid example project which clearly shows how to use osmdroid in various scenarios? Have you tried Google?
这篇关于我在哪里可以找到osmdroid V4.0 Android的API code的例子吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文