Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Custom offline map using an image

I'm trying to build an app that can display a map using an image stored inside the app, with most of the functionality of Google Maps but using this custom image and not having to connect in order to fetch the map tiles. The main thing I am looking for is a way of displaying an image in which the user can pinch to zoom, drag to move and click on overlays. I will also try to add overlays to the map based on lat/long coordinates and display the user's location, but this shouldn't be too hard since I can define one lat/long point on the map and calculate all others from that one. Does anyone know of anything I can use for displaying such a map?

like image 876
benwad Avatar asked Jun 28 '11 15:06

benwad


People also ask

Can Google Maps work without data?

Use offline mapsIf your internet connection is slow or absent, your offline maps will guide you to your destination as long as the entire route is within the offline map. Tip: Transit, bicycling, or walking directions are unavailable offline.

Can you save a route on Google Maps offline?

Android: Download Google Maps Routes offline on an SD card After you download an area, use the Google Maps app just like you normally would. If your Internet connection is slow or absent, you'll see a lightning bolt and Google Maps will use your offline areas to give you directions.


1 Answers

You can have a look into osmdroid it´s a library that allows you to do exactly what you want using map from OpenStreetMap.

We are using it to have features like in "Google Map" but being offline with images loaded on an SDCard. You can use tools like Mobac to create the offline atlases.

I'm just not sure if you will be able to add overlays to the map...

like image 169
Guillaume Barré Avatar answered Oct 20 '22 03:10

Guillaume Barré