use SimpleFastPointOverlay for the track overlay -> ANTI_ALIAS_FLAG for waypoints (see #96)

This commit is contained in:
y20k 2021-03-15 18:09:47 +01:00
parent 1c70fe1b5e
commit 7ad12a2670
No known key found for this signature in database
GPG key ID: 824D4259F41FAFF6

View file

@ -112,6 +112,7 @@ class MapOverlayHelper (private var markerListener: MarkerListener) {
val style: Paint = Paint() val style: Paint = Paint()
style.style = Paint.Style.FILL style.style = Paint.Style.FILL
style.color = color style.color = color
style.flags = Paint.ANTI_ALIAS_FLAG
val scalingFactor: Float = UiHelper.getDensityScalingFactor(context) val scalingFactor: Float = UiHelper.getDensityScalingFactor(context)
val overlayOptions: SimpleFastPointOverlayOptions = SimpleFastPointOverlayOptions.getDefaultStyle() val overlayOptions: SimpleFastPointOverlayOptions = SimpleFastPointOverlayOptions.getDefaultStyle()
.setAlgorithm(SimpleFastPointOverlayOptions.RenderingAlgorithm.MAXIMUM_OPTIMIZATION) .setAlgorithm(SimpleFastPointOverlayOptions.RenderingAlgorithm.MAXIMUM_OPTIMIZATION)