p-lr / MapCompose

A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.
Apache License 2.0
224 stars 20 forks source link

Is it possible to use GeoJSON and Vector tiles? #72

Closed thegrxp closed 2 years ago

thegrxp commented 2 years ago

Thank you for your amazing work!

p-lr commented 2 years ago

For GeoJSON, your implementation of TileStreamProvider can fetch the relevant tile in a geoJSON file. All you need is a library or custom code to deal with that kind of file.

Regarding vector tiles, you need a renderer to convert a vector tile into an image. The TileStreamProvider is expected to return a InputStream of an image. Again, you will need a library for that.

thegrxp commented 2 years ago

Ok nice, thank you for the info