Skip to content

Commit

Permalink
Minimize circle render tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jan 3, 2018
1 parent 2f16075 commit 0875f0c
Show file tree
Hide file tree
Showing 82 changed files with 1,051 additions and 800 deletions.
Binary file modified test/integration/render-tests/circle-blur/default/expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 37 additions & 25 deletions test/integration/render-tests/circle-blur/default/style.json
Expand Up @@ -2,40 +2,52 @@
"version": 8,
"metadata": {
"test": {
"height": 256
"width": 64,
"height": 64
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
},
"geometry": {
"type": "Point",
"coordinates": [
-10,
0
]
}
},
{
"type": "Feature",
"properties": {
},
"geometry": {
"type": "Point",
"coordinates": [
10,
0
]
}
}
]
}
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "poi_label",
"id": "circle",
"type": "circle",
"source": "mapbox",
"source-layer": "poi_label",
"source": "geojson",
"paint": {
"circle-radius": 5,
"circle-color": "#000"
"circle-radius": 10
}
}
]
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 41 additions & 29 deletions test/integration/render-tests/circle-blur/function/style.json
Expand Up @@ -2,52 +2,64 @@
"version": 8,
"metadata": {
"test": {
"height": 256
"width": 64,
"height": 64
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
},
"geometry": {
"type": "Point",
"coordinates": [
-10,
0
]
}
},
{
"type": "Feature",
"properties": {
},
"geometry": {
"type": "Point",
"coordinates": [
10,
0
]
}
}
]
}
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "poi_label",
"id": "circle",
"type": "circle",
"source": "mapbox",
"source-layer": "poi_label",
"source": "geojson",
"paint": {
"circle-radius": 5,
"circle-color": "#000",
"circle-radius": 10,
"circle-blur": {
"stops": [
[
16,
15
0,
0.1
],
[
17,
20
1,
0.4
]
]
}
}
}
]
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/integration/render-tests/circle-blur/literal/expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 37 additions & 25 deletions test/integration/render-tests/circle-blur/literal/style.json
Expand Up @@ -2,40 +2,52 @@
"version": 8,
"metadata": {
"test": {
"height": 256
"width": 64,
"height": 64
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
},
"geometry": {
"type": "Point",
"coordinates": [
-10,
0
]
}
},
{
"type": "Feature",
"properties": {
},
"geometry": {
"type": "Point",
"coordinates": [
10,
0
]
}
}
]
}
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "poi_label",
"id": "circle",
"type": "circle",
"source": "mapbox",
"source-layer": "poi_label",
"source": "geojson",
"paint": {
"circle-radius": 5,
"circle-color": "#000",
"circle-blur": 5
"circle-radius": 10,
"circle-blur": 0.5
}
}
]
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -2,49 +2,56 @@
"version": 8,
"metadata": {
"test": {
"height": 256
"width": 64,
"height": 64
}
},
"center": [
13.418056,
52.499167
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"blur": 0.1
},
"geometry": {
"type": "Point",
"coordinates": [
-10,
0
]
}
},
{
"type": "Feature",
"properties": {
"blur": 0.9
},
"geometry": {
"type": "Point",
"coordinates": [
10,
0
]
}
}
]
}
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "poi_label",
"id": "circle",
"type": "circle",
"source": "mapbox",
"source-layer": "poi_label",
"source": "geojson",
"paint": {
"circle-radius": 10,
"circle-blur": {
"stops": [
[
0,
0
],
[
50,
10
]
],
"property": "localrank"
"type": "identity",
"property": "blur"
}
}
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0875f0c

Please sign in to comment.