Skip to content

Commit

Permalink
Fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanPyrohivskyi committed May 23, 2022
1 parent d2f4789 commit 526ce75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
//OpenGL
private OsmBugsTileProvider osmBugsTileProvider;
private float textScale = 1f;
private boolean showClosed = false;
private boolean showClosed = false;

public OsmBugsLayer(@NonNull Context context, @NonNull OsmEditingPlugin plugin, int baseOrder) {
super(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,14 @@ private int getRadiusPoi(RotatedTileBox tb){

@Override
public void onPrepareBufferImage(Canvas canvas, RotatedTileBox tb, DrawSettings settings) {
if (!mapsInitialized) {
return;
}
List<TransportStop> objects = null;
boolean nightMode = settings.isNightMode();
OsmandApplication app = getApplication();
MapRendererView mapRenderer = getMapRenderer();
hasMapRenderer();
if (mapRenderer != null) {
if (!mapsInitialized) {
return;
}
float textScale = getTextScale();
int stopRouteDist = stopRoute != null ? stopRoute.distance : 0;
TransportStopType stopRouteType = stopRoute != null ? stopRoute.type : null;
Expand Down Expand Up @@ -422,7 +421,7 @@ private void initTransportRouteCollections() {
List<TransportStop> transportStops = stopRoute.route.getForwardStops();
String transportRouteType = stopRoute.route.getType();
if (transportStops.size() > 0) {
int baseOrder = getBaseOrder() + 1;
int baseOrder = getBaseOrder() - 1;
mapMarkersCollection = new MapMarkersCollection();
for (TransportStop ts : transportStops) {
StopsCollectionPoint collectionPoint =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public String getCaption() {
}

public OsmBugsTileProvider(@NonNull Context context, OsmandMapLayer.MapLayerData<List<OsmBugsLayer.OpenStreetNote>> layerData,
int baseOrder, boolean showClosed, int minZoom, float textScale) {
int baseOrder, boolean showClosed, int minZoom, float textScale) {
this.ctx = context;
this.layerData = layerData;
this.baseOrder = baseOrder;
Expand Down

0 comments on commit 526ce75

Please sign in to comment.