Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - offline, non-vector based, custom maps

For an application I am working on, I need to display custom raster image tiles (not vector based, probably from satellite imagery), and I need to do so offline. I would like to use the MapView, but I cannot see a way to tell it to use custom, offline map tiles instead of pulling down data from google's servers.

I've seen a few alternatives, but none seem appropriate to my need

MapDroyd Seems to only support vector-based maps. mapdroyd.com/

OSMDroid Appears to use Open Street Maps; I don't see any documentation anywhere stating that you can use custom map tiles. code.google.com/p/osmdroid/

There was a third alternative, but my post got eaten and I can't find it in my history.

Am I going to have to bite the bullet and 'roll my own'?

like image 965
I82Much Avatar asked Sep 26 '09 21:09

I82Much


2 Answers

I believe that OpenLayers has the functionality you require, but I don't know whether it runs under Android.

In particular, see this OpenLayers wiki page about how to use your own custom tiles.

like image 122
Mike Williams Avatar answered Sep 24 '22 09:09

Mike Williams


Am I going to have to bite the bullet and 'roll my own'?

Ummm, how do you like the taste of lead? ;-)

Seriously, Google Maps is closed source, and I know of no API to change up the map tiles. I'd be shocked if there is one.

What you might do is try to team up with OSMDroid to make a more generic MapDroid that has pluggable tile sources.

The only other mapping solution I know of for Android, besides the ones you list, is the one from Ericsson Labs, and that is both closed-source and vector, which probably makes it useless for you.

like image 37
CommonsWare Avatar answered Sep 25 '22 09:09

CommonsWare