Skip to content

Commit

Permalink
Test that symbols in adjacent tiles are included in query results.
Browse files Browse the repository at this point in the history
Tests issue #5475.
  • Loading branch information
ChrisLoer committed Apr 12, 2018
1 parent 04f2ba5 commit 468c78d
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/integration/query-tests/symbol/tile-boundary/expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"geometry": {
"type": "Point",
"coordinates": [
2.999267578125,
2.9978987411030573
]
},
"type": "Feature",
"properties": {}
}
]
61 changes: 61 additions & 0 deletions test/integration/query-tests/symbol/tile-boundary/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"version": 8,
"metadata": {
"test": {
"debug": true,
"height": 128,
"width": 256,
"queryGeometry": [
[
0,
0
],
[
100,
128
]
]
}
},
"center": [
0,
0
],
"zoom": 3,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
3,
3
]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "This Label Bleeds Over Tile Boundaries",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
}
]
}

0 comments on commit 468c78d

Please sign in to comment.