创建并显示在Android室内地图 [英] Create and display indoor map on Android

查看:445
本文介绍了创建并显示在Android室内地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,我想展示一些建筑物的内部(室内)地图,但我不知道从哪里开始:我想创建一个自定义的KML文件(它是如何可能创造它?与工具?),并在一个片段中显示。 我已经把它与外部映射工作(在MapFragment简单的GoogleMap的),所以这将是超级有放置过度的GoogleMap的KML文件,像真正的室内地图。

I'm developing an Android application and I would like to display an internal (indoor) map of some buildings, but I don't know where to begin: I want to create a custom kml file (how it's possible to create it? with which tool?) and display it in a fragment. I already have it working with external maps (simple GoogleMap in MapFragment), so it would be super to have the kml file placed 'over' the GoogleMap, like real indoor maps.

感谢

推荐答案

我的项目也即将室内地图。我想分享我的经验:

My project is also about indoor maps. I want to share my experience:

首先,我试图用谷歌地图,谷歌并不支持所有的国家和不支持我的国家。因此,我无法使用谷歌地图,虽然它可能是一个简单的方法。

First, I tried to use google map but google does not support all countries and my country is not supported. Therefore, I was not able to use google maps although it could be an easy way.

二,我试图用开放街道地图不使室内的元素。因为你为了做它失去了使用其他GIS工具,更是疯狂。

Second, I tried to use open street map which does not render indoor elements. It would be crazy because you have to use lost of other gis tools in order to do it.

最后,我想为什么我需要的地理数据。所有这些 - 谷歌,OSM - 是它具有地理数据的地理地图。所以,我不需要这个。我呈现我的地图,我用X,我的地图的JPG文件的y坐标。我添加了所有重要场所的x,y坐标这样我就可以搜索他们。它是最容易的。您还可以使用tileview库,它是那么容易。

the last, I thought why do I need geographical data. All of them - google, osm - are geographical maps which has geographical data. So I do not need this. I rendered my map and I used x,y coordinates of my map's jpg file. I added all of important place's x,y coordinate so I can search them. And it is most easy. And you can use tileview library which is so easy.

这篇关于创建并显示在Android室内地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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