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.
[tests][tile mode] Add left-top-right-buttom-offset-tile-map-mode test
- Loading branch information
1 parent
9be0bfb
commit 45804e8
Showing
3 changed files
with
63 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
+147 KB
...ts/text-variable-anchor/left-top-right-buttom-offset-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.
61 changes: 61 additions & 0 deletions
61
...n/render-tests/text-variable-anchor/left-top-right-buttom-offset-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,61 @@ | ||
{ | ||
"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": "{name}", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"icon-image": "bank-12", | ||
"text-justify": "auto", | ||
"text-radial-offset": 0.7, | ||
"text-variable-anchor": [ | ||
"left", | ||
"top", | ||
"right", | ||
"bottom" | ||
] | ||
} | ||
}] | ||
} |