forked from mapbox/mapbox-gl-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that symbols in adjacent tiles are included in query results.
Tests issue mapbox#5475.
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
test/integration/query-tests/symbol/tile-boundary/expected.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,13 @@ | ||
[ | ||
{ | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
2.999267578125, | ||
2.9978987411030573 | ||
] | ||
}, | ||
"type": "Feature", | ||
"properties": {} | ||
} | ||
] |
61 changes: 61 additions & 0 deletions
61
test/integration/query-tests/symbol/tile-boundary/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,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" | ||
] | ||
} | ||
} | ||
] | ||
} |