mapbox-plugins-android icon indicating copy to clipboard operation
mapbox-plugins-android copied to clipboard

Support for size of icons from sprite - Android

Open oFFca opened this issue 6 years ago • 0 comments

Hi, We use custom images for as "icon-image" property in SymbolLayer on Android. We want to support different dpi. For now, we create a few images for each dimension i.e 24px, 48xp, 72px etc. Base on device dpi we take proper image and add it into style via style.addImage(bitmapId, drawable) We wonder if there is a better approach. I check sprite but I don't see the option to add it from code. We also have to work in offline mode. Should we create each sprite file for each dimension and change style.json file or there is a better way to do it?

oFFca avatar Dec 04 '19 11:12 oFFca