Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android google maps custom tiles

I'd like to build an app using google maps and I'd love to have some kind of custom tiles. As I've found nothing on the web, I'd like to know if there is any way to do that on Android?

I found that library on open street map: http://code.google.com/p/osmdroid/ But I'd prefer using google maps.

like image 878
Romain Piel Avatar asked May 20 '26 14:05

Romain Piel


2 Answers

Just create your own TileOverlay and TileProvider to return tiles to the Maps API. Then call gmap.setMapType(GoogleMap.MAP_TYPE_NONE) to disable Google's tiles.

like image 59
Brian White Avatar answered May 22 '26 06:05

Brian White


There is no support for custom tile sets with the Google Maps SDK Add-on for Android, sorry.

UPDATE

Maps V2 -- introduced well over a year after this question was asked and this answer was posted -- offers a TileProvider facility that apparently handles this.

like image 43
CommonsWare Avatar answered May 22 '26 06:05

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!