Skip to content

Commit

Permalink
add render tests for symbol-avoid-edges
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Jan 20, 2016
1 parent 0fea16f commit bc0272c
Show file tree
Hide file tree
Showing 8 changed files with 196 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.
48 changes: 48 additions & 0 deletions render-tests/symbol-avoid-edges/default/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.vector.pbf"
]
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "map-line",
"type": "symbol",
"source": "mapbox",
"source-layer": "road",
"layout": {
"symbol-placement": "line",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "restaurant-12",
"icon-rotation-alignment": "map"
},
"paint": {
"icon-opacity": 1
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions render-tests/symbol-avoid-edges/rotated-false/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"bearing": 45,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.vector.pbf"
]
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "map-line",
"type": "symbol",
"source": "mapbox",
"source-layer": "road",
"layout": {
"symbol-placement": "line",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "restaurant-12",
"icon-rotation-alignment": "map"
},
"paint": {
"icon-opacity": 1
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions render-tests/symbol-avoid-edges/rotated/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"bearing": 45,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.vector.pbf"
]
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "map-line",
"type": "symbol",
"source": "mapbox",
"source-layer": "road",
"layout": {
"symbol-avoid-edges": true,
"symbol-placement": "line",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "restaurant-12",
"icon-rotation-alignment": "map"
},
"paint": {
"icon-opacity": 1
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions render-tests/symbol-avoid-edges/true/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.vector.pbf"
]
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "map-line",
"type": "symbol",
"source": "mapbox",
"source-layer": "road",
"layout": {
"symbol-avoid-edges": true,
"symbol-placement": "line",
"icon-allow-overlap": true,
"icon-ignore-placement": true,
"icon-image": "restaurant-12",
"icon-rotation-alignment": "map"
},
"paint": {
"icon-opacity": 1
}
}
]
}

0 comments on commit bc0272c

Please sign in to comment.