Merge pull request #11352 from osmandapp/OSM-Notes-icons
OSM Notes icons on low zoom levels shows wrong icons
This commit is contained in:
commit
b5d5772428
1 changed files with 3 additions and 1 deletions
|
@ -41,6 +41,7 @@ import java.net.URLConnection;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import static net.osmand.data.FavouritePoint.DEFAULT_UI_ICON_ID;
|
||||||
import static net.osmand.plus.osmedit.OsmBugsUtil.*;
|
import static net.osmand.plus.osmedit.OsmBugsUtil.*;
|
||||||
|
|
||||||
public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider {
|
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;
|
backgroundColorRes = R.color.osm_bug_resolved_icon_color;
|
||||||
}
|
}
|
||||||
PointImageDrawable pointImageDrawable = PointImageDrawable.getOrCreate(activity,
|
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);
|
pointImageDrawable.drawSmallPoint(canvas, x, y, textScale);
|
||||||
} else {
|
} else {
|
||||||
fullObjects.add(o);
|
fullObjects.add(o);
|
||||||
|
|
Loading…
Reference in a new issue