开发者

Android google maps custom tiles

开发者 https://www.devze.com 2023-04-03 02:08 出处:网络
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'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 开发者_如何学Cmap: http://code.google.com/p/osmdroid/ But I'd prefer using google maps.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消