2015-10-03 84 views
0

我使用下面的代码目前呈现在osmdroid我的地图:如何增加街道名称的大小/可读性?

的问题是,我跑在GS6边缘的应用程序,这是完全无法读取街道名称:http://img.ctrlv.in/img/15/10/03/560f4427e54c9.png

是否有可能增加街道名称的大小,甚至增加缩放? (目前设置为100)

public View onCreateView(LayoutInflater inflater, ViewGroup container, 
         Bundle savedInstanceState) { 
    getActivity().setTitle(FRAGMENT_NAME); 
    // Inflate the layout for this fragment 
    View view = inflater.inflate(R.layout.fragment_map_view, container, false); 


    mMapView = (MapView) view.findViewById(R.id.mapview); 
    mMapView.setTileSource(TileSourceFactory.DEFAULT_TILE_SOURCE); 
    mMapView.setMultiTouchControls(true); 

    mMapController = (MapController) mMapView.getController(); 
    mMapController.setZoom(100); 

    GeoPoint gPt = new GeoPoint(-23.5784,-46.4078); 
    mMapController.setCenter(gPt); 

    return view; 

回答

0

您正在使用Mapnik(又名OSM)地图图块,它是光栅图形。使其更大(我知道)的唯一方法是a)使用不同的tile源(尝试bing),或者b)尝试使用osmbonuspack + mapsforge(它可以实时渲染OSM切片,从而可以控制字体大小)。

相关问题