Skip to content

fix transform for perspective views - #1114

Merged
ansis merged 7 commits into
masterfrom
fix-perspective-transform
Mar 20, 2015
Merged

fix transform for perspective views#1114
ansis merged 7 commits into
masterfrom
fix-perspective-transform

Conversation

@ansis

@ansis ansis commented Mar 20, 2015

Copy link
Copy Markdown
Contributor

fixes #1088
fixes #1053
fixes #917

Transform now uses the projection matrix to do conversions to and from points.

ansis added 7 commits March 19, 2015 14:02
Adds a mock container so that transform.size is not 0.

When the transform has a size, `setBearingAround` results are
constrianed so that the map fits the view.

This adds two new tests for the constrained case, and modifies the reset
so that they test unconstrained rotation.
It turns out that there was a wrong 1px z translation later on.
pointCoordinate and coordinatePoint now use the position matrices so
that they are identical to the rendered positions. This makes them work
in perspective view.

Some test values are now rounded 10 decimal points to allow for slight
differences.
zooming and panning in perspective view.

fixes #917
@ansis ansis changed the title Fix perspective transform fix transform for perspective views Mar 20, 2015
ansis added a commit that referenced this pull request Mar 20, 2015
@ansis
ansis merged commit 38cfc79 into master Mar 20, 2015
@ansis
ansis deleted the fix-perspective-transform branch March 20, 2015 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

map.featuresAt returns an empty array fix pointLocation and locationPoint for perspective view Make cursor the center of zoom in tilted maps

1 participant