Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android mapview custom tile

I need to add a custom base layer to to my map view. My understanding is that the map tiles are exactly the same as the google tiles. They are static files served up in the following format: http:///tilecache///.png

For example, the http:///tilecache/6/16/26.png is the gulf coast between florida alabama and mississippi.

How do I create an overlay with the tiles?

like image 918
Bryan Kemp Avatar asked Oct 24 '22 08:10

Bryan Kemp


1 Answers

osmdroid (as recommended above) is cool but quite huge. Some time ago I decided to use http://sourceforge.net/projects/libwlocate/ instead - it contains functionalities for showing/scrolling/zooming maps like osmdroid but you can choose to use OSM, Google Maps or Google satellite view.

An example how to use it can be found in http://libwlocate.git.sourceforge.net/git/gitweb.cgi?p=libwlocate/libwlocate;a=blob;f=master/android/LocDemo/src/com/vwp/locdemo/LocDemo.java;h=5e2134fb7d197258f5f4f6f9021d2fa9ad9f2d9a;hb=HEAD

like image 175
Elmi Avatar answered Oct 29 '22 20:10

Elmi