问题
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.
回答1:
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.
I wrote example code Github
回答2:
Better late than never?
I have started to implement such an extension for Libgd with open street maps. It does currently load, cache and render the map tiles. You are also able to zoom, and pan the map. In future updates searching for geo locations will also be possible.
Github: https://github.com/aspic/libgdx-maps
来源:https://stackoverflow.com/questions/16145254/using-maps-api-and-geolocation-in-libgdx