-
-
Notifications
You must be signed in to change notification settings - Fork 932
Fix image sources being clipped at -180 and 180 longitude when terrain is enabled #5989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pstaszek
wants to merge
14
commits into
maplibre:main
Choose a base branch
from
pstaszek:issue-4088-image-source-clipped-world-wrap-0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
999234c
first mostly working solution
pstaszek 990fb74
code simplification
pstaszek 492fa95
fix failing unit test
pstaszek 3a8eb45
fix tile ranges calculation + unit tests
pstaszek 2fee0b8
Merge branch 'main' of https://github.com/pstaszek/maplibre-gl-js int…
pstaszek cd283e4
remove unused props from CanonicalTileRange & improve comment
pstaszek 5d2e9e9
add render test
pstaszek a66e3d1
Merge branch 'main' of https://github.com/pstaszek/maplibre-gl-js int…
pstaszek fcc4c28
update changelog
pstaszek ca1dc07
Merge branch 'main' into issue-4088-image-source-clipped-world-wrap-0
HarelM 69f5539
fix non-boolean return
pstaszek cf2f6ae
Merge branch 'main' into issue-4088-image-source-clipped-world-wrap-0
pstaszek c6e6574
Merge branch 'main' into issue-4088-image-source-clipped-world-wrap-0
HarelM 4884e54
Merge branch 'main' into issue-4088-image-source-clipped-world-wrap-0
HarelM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Binary file added
BIN
+55 KB
test/integration/render/tests/terrain/image-exceeding-world/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions
52
test/integration/render/tests/terrain/image-exceeding-world/style.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "version": 8, | ||
| "metadata": { | ||
| "test": { | ||
| "height": 512, | ||
| "width": 512 | ||
| } | ||
| }, | ||
| "center": [90, 0], | ||
| "zoom": 0, | ||
| "pitch": 0, | ||
| "bearing": 0, | ||
| "sources": { | ||
| "repeat": { | ||
| "type": "raster", | ||
| "tiles": ["local://tiles/white-with-x.png"], | ||
| "tileSize": 256 | ||
| }, | ||
| "terrain": { | ||
| "type": "raster-dem", | ||
| "tiles": ["local://tiles/terrain/{z}-{x}-{y}.terrain.png"], | ||
| "minzoom": 7, | ||
| "maxzoom": 12, | ||
| "tileSize": 256 | ||
| }, | ||
| "image": { | ||
| "type": "image", | ||
| "coordinates": [ | ||
| [0, 40], | ||
| [210, 40], | ||
| [210, -40], | ||
| [0, -40] | ||
| ], | ||
| "url": "local://image/1.png" | ||
| } | ||
| }, | ||
| "layers": [ | ||
| {"id": "osm", "type": "raster", "source": "repeat"}, | ||
| { | ||
| "id": "image", | ||
| "type": "raster", | ||
| "source": "image", | ||
| "paint": { | ||
| "raster-fade-duration": 0 | ||
| } | ||
| } | ||
| ], | ||
| "terrain": { | ||
| "source": "terrain", | ||
| "exaggeration": 1 | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.