Restore possibility to tilt 2D globe#52
Conversation
|
@lucgirardin, I think we should control this behavior with a new property. Maybe something like |
Added a property called Allow2DPitch to worldwind.xml that controls whether pitching forward or backwards for a 2D Globe is allowed or not. The entry for this property was also added to the AVKey class to allow for easy reference. Modified the BasicViewPropertyLimits class by adding the is2DGlobe() check back as well as adding a new utility method called allow2DPitch(). This method together with the is2DGlobe() method is called to determine whether we allow the pitch to be set in the limitPitch() method. The default value for the new property is "false" to ensure that default upstream behavior is kept.
|
@lucgirardin, I added a new property called |
Description of the Change
Restore the possibility to tilt the view when in "Flat" 2D mode, effectively creating a 2.5D view.
Why Should This Be In Core?
WorldWind v. 2.0.0 and earlier always allowed to pitch the view in 2D mode, which is a useful "core" functionality. For unknown reason, WorldWind v. 2.1.0 removed this possibility.
Benefits
The pitch buttons as well a mouse gestures (Shift-drag) are functional in all view modes.
Potential Drawbacks
This alter the default behavior compared to WorldView v. 2.1.0, which removed the possibility of any tilting by hard-coding it in BasicViewPropertyLimits#limitPitch(View, Angle). However, this behavior can easily be recreated by customizing the ViewPropertyLimits with setPitchLimits(Angle.ZERO, Angle.ZERO).
Applicable Issues
Tilting Globe no longer possible #51