Skip to content

Commit

Permalink
Fix AA map density
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-osm committed Dec 8, 2024
1 parent cc7d2e8 commit 6bb3982
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions OsmAnd/src/net/osmand/plus/views/OsmandMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,14 @@ public float getOriginalTextScale() {

public float getMapDensity() {
float scale = app.getSettings().MAP_DENSITY.get();
return scale * getCarDensityScaleCoef();
return scale;// * getCarDensityScaleCoef();
}

public float getCarDensityScaleCoef() {
OsmandMapTileView mapView = app.getOsmandMap().getMapView();
if (mapView.isCarView()) {
float carViewDensity = mapView.getCarViewDensity();
float density = mapView.getDensity();
return carViewDensity / density;
return carViewDensity / 2f + 0.1f;
}
return 1f;
}
Expand Down

0 comments on commit 6bb3982

Please sign in to comment.