-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
text-variable-anchor/all-anchors-tile-map-mode
render test
- Loading branch information
1 parent
5f03976
commit 5744579
Showing
3 changed files
with
67 additions
and
1 deletion.
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
Binary file added
BIN
+21.3 KB
...ration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions
65
test/integration/render-tests/text-variable-anchor/all-anchors-tile-map-mode/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,65 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"debug": true, | ||
"mapMode": "tile", | ||
"height": 256 | ||
} | ||
}, | ||
"center": [ | ||
13.418056, | ||
52.499167 | ||
], | ||
"zoom": 14, | ||
"sources": { | ||
"mapbox": { | ||
"type": "vector", | ||
"maxzoom": 14, | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.mvt" | ||
] | ||
} | ||
}, | ||
"sprite": "local://sprites/sprite", | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "white" | ||
} | ||
}, | ||
{ | ||
"id": "top", | ||
"type": "symbol", | ||
"source": "mapbox", | ||
"source-layer": "poi_label", | ||
"filter": [ | ||
"==", | ||
"maki", | ||
"restaurant" | ||
], | ||
"layout": { | ||
"text-field": "Test Test Test", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-max-width": 5, | ||
"text-justify": "auto", | ||
"text-variable-anchor": [ | ||
"center", | ||
"top", | ||
"bottom", | ||
"left", | ||
"right", | ||
"top-left", | ||
"top-right", | ||
"bottom-left", | ||
"bottom-right" | ||
] | ||
} | ||
}] | ||
} |