Skip to content

Commit

Permalink
EarthManip: increase the default zoom scale factor
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Sep 26, 2023
1 parent a182189 commit 05043ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/osgEarth/EarthManipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ EarthManipulator::configureDefaultSettings()

options.clear();
options.add( OPTION_CONTINUOUS, true );
options.add(OPTION_SCALE_Y, 5.0);

// zoom as you hold the right button:
_settings->bindMouse( ACTION_ZOOM, osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON, 0L, options );
Expand Down
10 changes: 9 additions & 1 deletion tests/viewpoints.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,13 @@
<height>614.0726152313873</height>
<srs>+proj=longlat +datum=WGS84 +no_defs </srs>
</viewpoint>

<viewpoint name="Kilo2">
<heading>-5.97814e-06</heading>
<pitch>-88.9999</pitch>
<range>4185.64m</range>
<long>-117.3492928130499</long>
<lat>33.34190250682511</lat>
<height>73.99633575323969</height>
<srs>+proj=longlat +datum=WGS84 +no_defs</srs>
</viewpoint>
</viewpoints>

0 comments on commit 05043ec

Please sign in to comment.