File tree Expand file tree Collapse file tree
lib-compose/src/main/java/com/what3words/components/compose/maps/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import android.graphics.Canvas
66import android.graphics.Matrix
77import android.graphics.Paint
88import android.util.Log
9+ import androidx.compose.ui.graphics.Color
910import androidx.compose.ui.graphics.toArgb
1011import androidx.core.graphics.PathParser
1112import com.what3words.components.compose.maps.models.W3WMarkerColor
@@ -23,6 +24,8 @@ fun getMarkerBitmap(
2324 DrawPath (context.getString(R .string.path_marker_background),
2425 Paint ().apply {
2526 color = colorMarker.background.toArgb()
27+ // Draw shadow with radius 4dp = 4 * density
28+ setShadowLayer(4 * density, 0f , 0f , Color (0x29000000 ).toArgb())
2629 }
2730 ),
2831 DrawPath (context.getString(R .string.path_marker_slashes),
@@ -61,7 +64,6 @@ fun getFillGridMarkerBitmap(
6164 size,
6265 scale
6366 )
64-
6567}
6668
6769fun getPinBitmap (
You can’t perform that action at this time.
0 commit comments