Skip to content

Commit

Permalink
[render tests][tile mode] Add `icon-text-fit/text-variable-anchor-til…
Browse files Browse the repository at this point in the history
…e-map-mode` test
  • Loading branch information
pozdnyakov committed Apr 8, 2020
1 parent 8c7c883 commit d9272f8
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ignores.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"render-tests/text-size/zero": "https://github.com/mapbox/mapbox-gl-js/issues/9161",
"render-tests/text-variable-anchor/left-top-right-bottom-offset-tile-map-mode": "skip - mapbox-gl-js does not support tile-mode",
"render-tests/tile-mode/streets-v11": "skip - mapbox-gl-js does not support tile-mode",
"render-tests/within/paint-line": "https://github.com/mapbox/mapbox-gl-js/issues/7023"
"render-tests/within/paint-line": "https://github.com/mapbox/mapbox-gl-js/issues/7023",
"render-tests/icon-text-fit/text-variable-anchor-tile-map-mode": "skip - mapbox-gl-js does not support tile-mode"
}
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,60 @@
{
"version": 8,
"metadata": {
"test": {
"allowed": 0.0005,
"mapMode": "tile",
"debug": true
}
},
"center": [
13.417,
52.502
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"sprite": "local://sprites/icon-text-fit",
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "road",
"type": "symbol",
"source": "mapbox",
"source-layer": "road_label",
"layout": {
"text-variable-anchor": ["left", "right", "bottom", "top"],
"text-field": "{name}",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"icon-image": "label",
"icon-text-fit": "both",
"icon-text-fit-padding": [
5,
10,
5,
10
]
},
"paint": {
"icon-opacity": 1
}
}
]
}

0 comments on commit d9272f8

Please sign in to comment.