From 037faa97935f8ad6921ce993d904d6ac62d02f64 Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Mon, 5 Apr 2021 20:56:59 +0300 Subject: [PATCH] OSM Notes icons on low zoom levels shows wrong icons --- OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java index c4ab750fb3..f3865ad467 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java @@ -41,6 +41,7 @@ import java.net.URLConnection; import java.util.ArrayList; import java.util.List; +import static net.osmand.data.FavouritePoint.DEFAULT_UI_ICON_ID; import static net.osmand.plus.osmedit.OsmBugsUtil.*; public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider { @@ -130,7 +131,8 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider backgroundColorRes = R.color.osm_bug_resolved_icon_color; } PointImageDrawable pointImageDrawable = PointImageDrawable.getOrCreate(activity, - ContextCompat.getColor(activity, backgroundColorRes), true); + ContextCompat.getColor(activity, backgroundColorRes), true, + false, DEFAULT_UI_ICON_ID, BackgroundType.COMMENT); pointImageDrawable.drawSmallPoint(canvas, x, y, textScale); } else { fullObjects.add(o);