summaryrefslogtreecommitdiff
path: root/test/fixtures/styles
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-10 14:54:43 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-10 14:54:43 -0700
commita8e71bcb7b03ed9c95b65d312821e577a796a48d (patch)
tree82af5a95f126f19a6ff50fe286566983d6d62fad /test/fixtures/styles
parenta8963fcbe428663000b4b0fcc2e4de76b99a2fe0 (diff)
downloadqtlocation-mapboxgl-a8e71bcb7b03ed9c95b65d312821e577a796a48d.tar.gz
change line width and add line-width test
Diffstat (limited to 'test/fixtures/styles')
-rw-r--r--test/fixtures/styles/road-width.expected.pngbin0 -> 110023 bytes
-rw-r--r--test/fixtures/styles/road-width.info.json8
-rw-r--r--test/fixtures/styles/road-width.style.json32
3 files changed, 40 insertions, 0 deletions
diff --git a/test/fixtures/styles/road-width.expected.png b/test/fixtures/styles/road-width.expected.png
new file mode 100644
index 0000000000..0c8205ad91
--- /dev/null
+++ b/test/fixtures/styles/road-width.expected.png
Binary files differ
diff --git a/test/fixtures/styles/road-width.info.json b/test/fixtures/styles/road-width.info.json
new file mode 100644
index 0000000000..85808bb804
--- /dev/null
+++ b/test/fixtures/styles/road-width.info.json
@@ -0,0 +1,8 @@
+{
+ "zoom": 14,
+ "latitude": 52.499167,
+ "longitude": 13.418056,
+ "angle": 0,
+ "width": 512,
+ "height": 512
+}
diff --git a/test/fixtures/styles/road-width.style.json b/test/fixtures/styles/road-width.style.json
new file mode 100644
index 0000000000..469a376bca
--- /dev/null
+++ b/test/fixtures/styles/road-width.style.json
@@ -0,0 +1,32 @@
+{
+ "version": 3,
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "tiles/{z}-{x}-{y}.vector.pbf",
+ "tileSize": 512,
+ "maxZoom": 14
+ }
+ },
+ "layers": [
+ {
+ "id": "background",
+ "type": "background",
+ "style": {
+ "background-color": "white"
+ }
+ },
+ {
+ "id": "road",
+ "source": "mapbox",
+ "source-layer": "road",
+ "type": "line",
+ "style": {
+ "line-width": {
+ "fn": "stops",
+ "stops": [[13, 0], [13.999, 0], [14, 4], [14.1, 100]]
+ }
+ }
+ }
+ ]
+}