Skip to content

Commit

Permalink
Add text-variable-anchor/text-allow-overlap render test
Browse files Browse the repository at this point in the history
  • Loading branch information
pozdnyakov committed Aug 13, 2019
1 parent 0467fca commit b864b06
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"version": 8,
"metadata": {
"test": {
"height": 256
"height": 256,
"allowed": 0.003
}
},
"center": [
Expand Down
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,77 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256,
"width": 256
}
},
"center": [ 0, 0 ],
"zoom": 0,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "x",
"text-size": 20,
"text-justify": "auto",
"text-allow-overlap": true,
"text-variable-anchor": ["left", "right", "top", "bottom"],
"text-radial-offset": 0.7,
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
},
{
"id": "anchor",
"type": "circle",
"source": "point",
"paint" :{
"circle-radius": 2
}
}
]
}

0 comments on commit b864b06

Please sign in to comment.