Standalone TileProvider vector that extends google api v2 map in android

I know that there are some Android map libraries that can display based on vector tiles from OSM (* .map, etc.). But I did not find a single library that has only the ability to graphically visualize vector tiles and returns it as a TileProvider to Google maps api v2 for Android.

For offline bitmap fragments: I know how to do this for bitmap fragments (osmdroid jpg files). Good and working example: TileProvider using local fragments .

Does anyone know where to find this for vector tiles?

Regards, Toni

+8
android vector maps google-maps google-maps-android-api-2
source share
1 answer

If you can find a library for rendering vector fragments or enough documentation about the format to create your own rendering, it's pretty easy to turn it into a TileProvider . Tile#data must be a compressed image in one of the supported image formats . If you have Bitmap , use Bitmap#compress(...) to write data to ByteArrayOutputStream , then use ByteArrayOutputStream#toByteArray() to get data for Tile .

+1
source share

All Articles