Android的自定义控件显示地图图块 [英] Android custom control to display map tiles

查看:313
本文介绍了Android的自定义控件显示地图图块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的服务器地图图块排序像OpenStreetMap的一个文件夹结构(OSM)使用。我需要能够显示这些瓷砖,放大/缩小,平移和旋转地图。我不会从从头开始创建一个新的控制。我见过OsmDroid,但我没有找到一个方法来设置自己的非量化的瓷砖源。

I have on my server map tiles sorted on a folder structure like OpenStreetMap (OSM) uses. I need to be able to display these tiles, zoom in/out, pan and rotate the map. I wouldn't start from the scratch to create a new control. I've seen OsmDroid but I didn't find a way to set my own non vectorized tile source.

我愿意接受任何建议。

推荐答案

我会先尝试看看其源$ C ​​$ C,以获得他们怎么做的理解。

I would first try to check out their source code to get an understanding of how they did it.

下面是链接其来源$ C ​​$ CS。为了更precise我认为,<一个href="http://$c$c.google.com/p/osmdroid/source/browse/trunk/osmdroid-android/src/org/osmdroid/views/overlay/TilesOverlay.java"相对=nofollow>这个是你要找的文件。

Here is the link to their source codes. To be more precise I think that this is the file you are looking for.

这篇关于Android的自定义控件显示地图图块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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