覆盖图形页面瓷片源? [英] Override MapView Tile Source?

查看:136
本文介绍了覆盖图形页面瓷片源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能重写的瓷砖源Android的图形页面显示?

Is it possible to override the source of the tiles that the Android MapView displays?

我有一些地图图像瓦片在数据库中,并且想使用谷歌地图的MapView看他们。

I have some map imagery tiles in a database, and would like to use the Google maps MapView to look at them.

另外,如果这是不可能的......没有人知道一个图形页面,做让这个呢? (OpenStreetMap的API ... MapQuest的API ...等)

Also, if this is not possible... does anyone know of a MapView that does allow this? (OpenStreetMap API... MapQuest API... etc)

我要寻找一个不依赖于GPL / LGPL的解决方案。

I am looking for a solution that does not rely on the GPL/LGPL.

推荐答案

您可以使用其中的一些库: osmdroid mapsforge 。他们都提供了接口,一些互联网地图数据库,并允许创建自己的地图提供商。

You can use some of these libraries: osmdroid, mapsforge. Both of them provides interface to some internet map databases and allows to create your own maps provider.

他们可以让你有(和处理),离线缓存,动态异步加载地图,重采样上变焦,增加覆盖等,像原来的图形页面一样。 换个好点的使用这些库的是,他们精心设计了就地取代谷歌MapView类的。

They allows you to have (and handle) your offline cache, dynamic asynchronous maps loading, resampling on zoom, adding overlays and so on, like original MapView does. Another good point of using these libraries is that they are well-designed for in-place substitution of google MapView.

另外,你可能有兴趣在谷歌的JavaScript地图API,这也让使用自定义映射源(见的这个链接)。这种方法可以用于装载地图到web视图。但在这种情况下,你仍然需要谷歌的地图API密钥和我afraids,你会仍然限制在每天25000用途。

Also you may be interested in Google's Javascript maps api, which also allows to use custom maps source (see this link). This approach can be used with loading map into your WebView. But in this case you still need Google's Maps API key and I'm afraids that you'll be still limited to 25000 usages per day.

== ==更新

现在,谷歌地图Android版(一个在谷歌播放服务)支持自定义的瓷砖,所以不再需要使用第三方库将你自己的瓷砖(如果使用符合许可协议)。

Now, Google Maps for Android (that one in Google Play Services) support custom tiles, so there is no more need to use 3rd-party libraries for applying you own tiles (if the usage meets license agreement).

这篇关于覆盖图形页面瓷片源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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