use of net.osmand.plus.views.PointImageDrawable in project Osmand by osmandapp.
the class FavouritesLayer method drawBigPoint.
private void drawBigPoint(Canvas canvas, FavouritePoint favoritePoint, float x, float y, @Nullable MapMarker marker, float textScale) {
PointImageDrawable pointImageDrawable;
boolean history = false;
if (marker != null) {
pointImageDrawable = PointImageDrawable.getOrCreateSyncedIcon(view.getContext(), favouritesHelper.getColorWithCategory(favoritePoint, defaultColor), favoritePoint);
history = marker.history;
} else {
pointImageDrawable = PointImageDrawable.getFromFavorite(view.getContext(), favouritesHelper.getColorWithCategory(favoritePoint, defaultColor), true, favoritePoint);
}
pointImageDrawable.drawPoint(canvas, x, y, textScale, history);
}
Aggregations