Skip to content

Commit

Permalink
Add render test for collision issue maplibre#2171
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed Mar 13, 2023
1 parent 66f0950 commit 1faa12c
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
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,69 @@
{
"version": 8,
"metadata": {
"test": {
"description": "'Carribean Sea' crosses a tile boundary, but we don't draw the tile boundary in the test because JS and Native render tile boundaries differently.",
"height": 256,
"width": 1024,
"collisionDebug": true
}
},
"center": [-73, 15],
"zoom": 4,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": ["local://tiles/mapbox.mapbox-streets-v7/{z}-{x}-{y}.mvt"]
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "line-concave",
"type": "symbol",
"source": "mapbox",
"source-layer": "marine_label",
"layout": {
"text-field": "This used to be the Carribean",
"symbol-placement": "line-center",
"text-allow-overlap": true,
"text-size": 20,
"text-offset": [0, -2],
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
"text-max-width": 0
}
},
{
"id": "line-convex",
"type": "symbol",
"source": "mapbox",
"source-layer": "marine_label",
"layout": {
"text-field": "This used to be the Carribean",
"symbol-placement": "line-center",
"text-allow-overlap": true,
"text-size": 20,
"text-offset": [0, 2],
"text-font": ["Open Sans Semibold", "Arial Unicode MS Bold"],
"text-max-width": 0
}
},
{
"id": "line",
"type": "line",
"source": "mapbox",
"source-layer": "marine_label",
"paint": {
"line-width": 1
}
}
]
}

0 comments on commit 1faa12c

Please sign in to comment.