tripkit-android / com.skedgo.tripkit.ui.map / MapMarkerUtils / createTransparentSquaredIcon

createTransparentSquaredIcon

static fun createTransparentSquaredIcon(@NonNull res: Resources, @DimenRes sizeResId:Int): BitmapDescriptor!

This replaces the old solution that use a transparent bitmap contained in the drawable/ folder. The advantage is that, this creates a bitmap that looks more consistent over various DPIs.