This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
[core, node] Support axonometric rendering - #10064
Merged
Merged
Conversation
kkaefer
approved these changes
Sep 26, 2017
lbud
force-pushed
the
axonometric
branch
3 times, most recently
from
October 13, 2017 21:20
e54af76 to
2b4791f
Compare
lbud
pushed a commit
to mapbox/mapbox-gl-js
that referenced
this pull request
Oct 14, 2017
Currently only in native: mapbox/mapbox-gl-native#10064
VictorHom
pushed a commit
to VictorHom/mapbox-gl-js
that referenced
this pull request
Oct 27, 2017
Currently only in native: mapbox/mapbox-gl-native#10064
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
void Map::setAxonometric(bool)bool Map::getAxonometric() constvoid Map::setXSkew(double)double Map::getXSkew() constvoid Map::setYSkew(double)double Map::getYSkew() constaxonometric: booleanskew: [number, number]Presently the default for

skewifaxonometric = trueandskewis unspecified is [0, 1]. This is what lower Manhattan looks like with [0, 1]:Here is a quick demo where you can tweak the skew. @nickidlugash — do you have any thoughts on what a reasonable default should be? [0, 0] feels like the type of neutral we usually use, but may lead people to think it's broken. Regardless, this default doesn't have to be what we use in api-gl for fallback maps.
Locally I ran a render-test run applying
axonometric: trueto all tests to verify that there are no unintended consequences/layer types using the perspective projection matrix in unexpected ways. I suppose theoretically we could add a new CI run to verify that, but it doesn't seem necessary and our CI infrastructure is heavy enough as it is…