Skip to content

Commit

Permalink
reduce maximal map pitch to 50 degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
rinigus committed Jun 7, 2020
1 parent c3fc574 commit 72cd029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qml/Map.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ MapboxMap {
metersPerPixelTolerance: Math.max(0.001, metersPerPixel*0.01) // 1 percent from the current value
pitch: {
if (app.mode === modes.explore || app.mode === modes.exploreRoute || format === "raster" || !map.autoRotate || !app.conf.tiltWhenNavigating) return 0;
if (app.mode === modes.navigate) return 60;
if (app.mode === modes.followMe) return 60;
if (app.mode === modes.navigate) return 50;
if (app.mode === modes.followMe) return 50;
return 0; // should never get here
}
pixelRatio: styler.themePixelRatio * 1.5
Expand Down

0 comments on commit 72cd029

Please sign in to comment.