mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
478 stars 134 forks source link

Add more Image Types (other than Bitmap) #2425

Open anox1337 opened 4 months ago

anox1337 commented 4 months ago

New Feature

I have a RasterLayer with an ImageSource. ImagesSource gets updated via: updateimage This function takes a Bitmap or an Image (which is in itself a Bitmap) It would be nice if we could also add other types (e.g. PNG) to the ImageSource

Why

A common case where this would be useful is when we want to show external images as a quad on the map. These external images are almost never Bitmaps but most of the time base64 encoded PNGs. So the current workflow is:

I would really like to avoid converting images from one common type to another.