Skip to content

Commit

Permalink
Add pitched-collision render tests, including case of wrapped tiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed May 24, 2017
1 parent b063c38 commit 4309634
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"version": 8,
"metadata": {
"test": {
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/8967"
},
"collisionDebug": true,
"debug": true,
"width": 500,
"height": 500
}
},
"center": [
0,
0
],
"zoom": 1,
"pitch": 60,
"bearing": 90,
"sources": {
"geojson": {
"type": "geojson",
"data": "local://data/places.geojson"
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"text-field": "test test test",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions test/integration/render-tests/debug/collision-pitched/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"version": 8,
"metadata": {
"test": {
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/8967"
},
"collisionDebug": true,
"debug": true,
"width": 500,
"height": 500
}
},
"center": [
0,
0
],
"zoom": 3,
"pitch": 60,
"bearing": 90,
"sources": {
"geojson": {
"type": "geojson",
"data": "local://data/places.geojson"
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"symbol-placement": "point",
"text-field": "test test test",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

0 comments on commit 4309634

Please sign in to comment.