Merge pull request #11352 from osmandapp/OSM-Notes-icons

OSM Notes icons on low zoom levels shows wrong icons
This commit is contained in:
Vitaliy 2021-04-05 21:42:01 +03:00 committed by GitHub
commit b5d5772428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);