Streetnames openstreetmaps在Android更具可读性 [英] Streetnames openstreetmaps more readable on Android

查看:156
本文介绍了Streetnames openstreetmaps在Android更具可读性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立一个Android应用程序使用Openstreetmaps和OsmDroid离线地图数据。在具有MDPI 320x480像素设备中的地图上看起来不错,但设备与华电国际的屏幕,480x800像素的街道名称都很小,有点难以阅读。我的地图数据,直到缩放级别18,最大的,我可以下载和Mapnik的瓷砖源使用,加载为从SD卡的zip文件。我的本地地图从布鲁塞尔(比利时)定义的区域。

I've build an Android APP with offline map data using Openstreetmaps and OsmDroid. On a device with MDPI 320x480 pixels the map looks OK, but on a device with a HDPI screen with 480x800 pixels the street names are small and a little bit harder to read them. My map data till zoom level 18, the maximum I could download and use with Mapnik tile source, is loaded as a zip-file from the SD-Card. My local maps are from a defined region of Brussels (Belgium).

这是MDPI设备具有320x480像素的屏幕截图:

A screenshot of an MDPI device with 320x480 pixels:

这是华电国际设备具有480x800像素的屏幕截图:

A screenshot of an HDPI device with 480x800 pixels:

如果你看到设备上的应用程序,这些意见MDPI地图还是不错的可读性,在华电国际地图的街道名称是较小的。

If you see these views in the app on the device the MDPI map is good readable, in the HDPI map the street names are smaller.

有没有一种方法,使街道名称也是华电国际设备上的可读性,所以用户富人的想法,他放大了一步在地图上?因为它不可能去放大级19,因为没有openstreetmaps数据吧。因此,可以方便地和小实施时间/工作有点变通解决方案,我是为我好。缩放现在由刷卡在地图上完成的。如果您还需要code,让我知道,我会后它。

Is there a way to make the street names also more readable on the HDPI device, so the user haves the idea that he zooms one step further on the map? Because it's not possible to go to zoom-level 19, because there is no openstreetmaps data for it. So a little workaround solution with easy and small implementation time/work my be OK for me. Zooming is now done by swiping on the map. If you also need the code, let me know and I'll post it.

在此先感谢。

推荐答案

Osmdroid适用于瓷砖是静态PNG图像。你不能改变的平铺图像。如果你想有更好的地图解决方案尝试MapsForge。这个应用程序/库的工作原理与地图数据和动态地呈现它们。这样你对渲染地图,你可以自定义的文本和字体和颜色更多的控制。

Osmdroid works with tiles that are static PNG images. You can not change the tile images. If you want to have a better mapping solution try MapsForge. This app/library works with maps data and renders them dynamically. This way you have more control on rendering maps and you can customize its texts and fonts and colors.

这篇关于Streetnames openstreetmaps在Android更具可读性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆