Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e895d25a authored by Fynn Godau's avatar Fynn Godau
Browse files

Circle stroke outline in lite mode

parent 78d7045d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -286,8 +286,14 @@ class LiteGoogleMapImpl(context: Context, var options: GoogleMapOptions) : Abstr
            styleBuilder.withLayer(LineLayer("l${circle.id}s", "${circle.id}s").withProperties(
                PropertyFactory.lineWidth(circle.strokeWidth),
                PropertyFactory.lineColor(circle.strokeColor),
                PropertyFactory.lineCap(Property.LINE_CAP_ROUND)
            )).withSource(GeoJsonSource("${circle.id}s", circle.line.annotationOptions.geometry))
                PropertyFactory.lineCap(Property.LINE_CAP_ROUND),
            ).apply {
                circle.strokePattern?.let {
                    val name = it.getName(circle.strokeColor, circle.strokeWidth)
                    withProperties(PropertyFactory.linePattern(name))
                    styleBuilder.withImage(name, it.makeBitmap(circle.strokeColor, circle.strokeWidth))
                }
            }).withSource(GeoJsonSource("${circle.id}s", circle.line.annotationOptions.geometry))
        }

        // Add markers