在libgdx中使用Maps API和地理位置 [英] Using Maps API and Geolocation in libgdx
本文介绍了在libgdx中使用Maps API和地理位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有某种方法可以嵌入或实现地理定位(通过GPS或其他方法),并在使用libgdx的应用程序中使用Google Maps或OSM中的地图? 我找不到与此相关的API或文档,无法使用现实世界地图和增强现实来实现应用程序.
Is there a way to embed or implement somehow Geolocation (via GPS or whatever method) and using maps from Google Maps or OSM in applications using libgdx? I can't find APIs or documentation regarding this, to implement an application using real world maps and Augmented Reality.
推荐答案
我能够在libgdx上使用Google Maps V2 Api.您可以使用标记,获取位置并将其显示在Scene2d标签中,也可以显示或隐藏地图.
I was able to use Google Maps V2 Api with libgdx. You can use Markers, get Location and display it in a Scene2d Label, also you can show or hide the map.
我写了示例代码 Github
这篇关于在libgdx中使用Maps API和地理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文