Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* squashed changes to support pitch > 90 * fix merge conflicts * fix changelog screwup * fix lint and adjust build size * better naming * remove jumpToLLA (it can be made a plugin) * fix render tests by breaking camera-centric behavior * better naming * add setRoll operation * fix pitch95 render test * add pitch=90 roll=135 render test * add render test for pitch95 with terrain * test getMercatorHorizon() at high pitch * add test for recalculateZoomAndCenter without terrain * documentation * <89 -> <=89 * LLA -> LngLatAlt * fix lint * Merc -> Mercator * add public API function setCenterElevation(), and remove render test modification * don't let camera distances go negative * change the mercator horizon heuristic to be continuous, and update render tests. * function to only set elevation if center point is below horizon * update sky render tests * update changelog * revert unintended package changes. * revert unnecessarry shader change * updated maxPitch docs * fix spelling Co-authored-by: Harel M <[email protected]> * add named constant maxMercatorHorizonAngle * use roll and pitch spec definitions in sky render tests * move __setElevationIfCenterPointBelowHorizon() from Transform to Map * change mercator horizon limit from 89 to 89.25, so that horizon heuristic is unchanged below the old maximumpitch angle of 85 degrees. * update comment * fix lint * update unit tests for new horizon heuristic * revert unchanged render test results * add switch to control "centerClampedToGround" behavior * fix render tests * Update src/geo/projection/mercator_utils.ts * Apply suggestions from code review * Update src/geo/transform_interface.ts * Don't update center point if there is nothing to do (this was causing issues with mouse pitch control at high pitch) * Add an example showing center point at the top of a building and pitch > 90 * remove warnings about pitch angles > 60. * move cameraMercatorCoordinateFromCenterAndRotation() to mercator_utils * Restore old setLocationAtPoint(). This fixes unit tests but breaks `center-point` example :( * better unit test coverage and documentation for calculateCenterFromCameraLngLatAlt() * add @internal * code cleanup * Add calculateCameraOptionsFromCameraLngLatAltRotation() and unit tests * add developer guide describing center point. * move high-pitch render tests to high-pitch folder * fix build * update high pitch + terrain render test to remove setPitch() call * use transform's elevation in setLocationAtPoint() * fix jumps when using the mouse to rotate past 90 degrees pitch * further safety against numerical issues near the horizon * fix spelling * make centerClampedToGround get/set symmetric * split recalculateZoomAndCenter unit tests. * simplify center-point example * add examples for calculateCameraOptionsFromTo() and calculateCameraOptionsFromCameraLngLatAltRotation() * origPixelPerMeter -> originalPixelPerMeter * whitespace * simplify center-point example * set minZoom in example so we don't lose the map * remove unnecessary limit on _farZ * change pseudocode to Typescript * add unit tests to cover various code paths in _updateMapTransform() * update build size * Update developer-guides/center-point.md Co-authored-by: Isaac Besora Vilardaga <[email protected]> * use local variables * move "underground" check to _elevateCameraIfInsideTerrain() * fix high-pitch render tests, which were having their pitch angle modified by _elevateCameraIfInsideTerrain() * return early in case of no terrain and pitch < 90 --------- Co-authored-by: Harel M <[email protected]> Co-authored-by: Isaac Besora Vilardaga <[email protected]>
- Loading branch information