Android 自定义瓦片地图
我正在开发一个项目,该项目需要显示建筑物的自定义图块地图,以及将多达数百个“点”绘制为建筑物内的对象,所有这些都在一个或多个移动平台(从 Android 开始)上进行。
我想到了两种方法来解决这个问题。一种是使用 osmdroid 或 Mapsforge 来显示可缩放的平铺地图。然而,我遇到的一个问题是,我无法找到能够自动将单个图像分割成正确的平铺格式的软件。 MapTiler 工作得相当好,除了我的 Y 轴图块都是颠倒的。
第二种是将整个图像显示为图像视图,然后编写代码以在图像视图滚动时在地图上显示兴趣点。但是,我不太确定如何在图像视图中已显示的图像之上绘制未定义数量的图像。
有谁有任何想法或者他们能够指出我正确的方向吗?
I'm working on a project that requires a custom tile map of a building to be displayed along with up to several hundred "points" to be plotted as objects within the building, all on one or more mobile platforms (Android to start).
There were two ways I thought of to tackle this issue. One was to use osmdroid or mapsforge to display a zoom-able tile map. One issue I've had with this, however, is that I haven't been able to locate the software to automatically split up the single image into the correct tile format. MapTiler has worked fairly well, except my Y axis tiles are all upside down.
The second was to display the entire image as an imageview, and then write the code to display the points of interest on the map as the image view is scrolled around. However, I'm not quite sure how I would go about drawing an undefined amount of images on top of an image already displayed in an image view.
Does anyone have any ideas or might they be able to point me in the correct direction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 http://code.google.com/p/gheat/ 并将您的 Android 应用程序中来自服务器的图块。
You can use http://code.google.com/p/gheat/ and put the tiles from your server in your android app.