-
-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setVerticalFieldOfView() to public API (#4914)
* add setFOV to public API * setFov -> setVerticalFieldOfView * update changelog * add default value comments * fix last commit * add unit tests * update build size --------- Co-authored-by: Harel M <[email protected]>
- Loading branch information
1 parent
09758d9
commit d3f2bca
Showing
13 changed files
with
175 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/integration/render/tests/field-of-view/default/style.json
This file contains 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,25 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 512, | ||
"width": 512 | ||
} | ||
}, | ||
"center": [35.372566, 31.556437], | ||
"zoom": 16.25, | ||
"pitch": 30, | ||
"bearing": 22.5, | ||
"sources": { | ||
"repeat": { | ||
"type": "raster", | ||
"tiles": ["local://tiles/white-with-x.png"], | ||
"minzoom": 0, | ||
"maxzoom": 22, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{"id": "repeat", "type": "raster", "source": "repeat"} | ||
] | ||
} |
Binary file added
BIN
+51.1 KB
test/integration/render/tests/field-of-view/field-of-view-10/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions
29
test/integration/render/tests/field-of-view/field-of-view-10/style.json
This file contains 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,29 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 512, | ||
"width": 512, | ||
"operations": [ | ||
["setVerticalFieldOfView", 10], | ||
["wait"] | ||
] | ||
} | ||
}, | ||
"center": [35.372566, 31.556437], | ||
"zoom": 16.25, | ||
"pitch": 30, | ||
"bearing": 22.5, | ||
"sources": { | ||
"repeat": { | ||
"type": "raster", | ||
"tiles": ["local://tiles/white-with-x.png"], | ||
"minzoom": 0, | ||
"maxzoom": 22, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{"id": "repeat", "type": "raster", "source": "repeat"} | ||
] | ||
} |
Binary file added
BIN
+65.5 KB
test/integration/render/tests/field-of-view/field-of-view-150/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions
29
test/integration/render/tests/field-of-view/field-of-view-150/style.json
This file contains 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,29 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 512, | ||
"width": 512, | ||
"operations": [ | ||
["setVerticalFieldOfView", 150], | ||
["wait"] | ||
] | ||
} | ||
}, | ||
"center": [35.372566, 31.556437], | ||
"zoom": 16.25, | ||
"pitch": 30, | ||
"bearing": 22.5, | ||
"sources": { | ||
"repeat": { | ||
"type": "raster", | ||
"tiles": ["local://tiles/white-with-x.png"], | ||
"minzoom": 0, | ||
"maxzoom": 22, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{"id": "repeat", "type": "raster", "source": "repeat"} | ||
] | ||
} |
Binary file added
BIN
+63 KB
test/integration/render/tests/field-of-view/field-of-view-90/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions
29
test/integration/render/tests/field-of-view/field-of-view-90/style.json
This file contains 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,29 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 512, | ||
"width": 512, | ||
"operations": [ | ||
["setVerticalFieldOfView", 90], | ||
["wait"] | ||
] | ||
} | ||
}, | ||
"center": [35.372566, 31.556437], | ||
"zoom": 16.25, | ||
"pitch": 30, | ||
"bearing": 22.5, | ||
"sources": { | ||
"repeat": { | ||
"type": "raster", | ||
"tiles": ["local://tiles/white-with-x.png"], | ||
"minzoom": 0, | ||
"maxzoom": 22, | ||
"tileSize": 256 | ||
} | ||
}, | ||
"layers": [ | ||
{"id": "repeat", "type": "raster", "source": "repeat"} | ||
] | ||
} |