summaryrefslogtreecommitdiff
path: root/test/fixtures/styles
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-15 18:08:14 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-15 18:08:14 -0700
commit682eaec87cff73e7a2c547fddea889d478e7d29d (patch)
tree897ad86c4fc50279a178d95749ab2dca2298fe25 /test/fixtures/styles
parent7810548409ee573b2d939dbed840414e09abc01e (diff)
downloadqtlocation-mapboxgl-682eaec87cff73e7a2c547fddea889d478e7d29d.tar.gz
add icon render test
Diffstat (limited to 'test/fixtures/styles')
-rw-r--r--test/fixtures/styles/icons.info.json18
-rw-r--r--test/fixtures/styles/icons.style.json33
-rw-r--r--test/fixtures/styles/icons/default.expected.pngbin0 -> 6538 bytes
3 files changed, 51 insertions, 0 deletions
diff --git a/test/fixtures/styles/icons.info.json b/test/fixtures/styles/icons.info.json
new file mode 100644
index 0000000000..e116913aa4
--- /dev/null
+++ b/test/fixtures/styles/icons.info.json
@@ -0,0 +1,18 @@
+{
+ "default": {
+ "zoom": 14,
+ "center": [52.499167, 13.418056],
+ "height": 256,
+ "log": [
+ [1, "INFO", "HttpRequest", 200, "sprites/outdoors.json"],
+ [1, "INFO", "HttpRequest", 200, "sprites/outdoors.png"],
+ [1, "INFO", "HttpRequest", 200, "tiles/14-8803-5375.vector.pbf"],
+ [1, "INFO", "HttpRequest", 200, "tiles/14-8802-5375.vector.pbf"],
+ [1, "INFO", "HttpRequest", 200, "tiles/14-8803-5374.vector.pbf"],
+ [1, "INFO", "HttpRequest", 200, "tiles/14-8802-5374.vector.pbf"],
+ [6, "INFO", "HttpRequest"],
+
+ [1, "INFO", "Sprite", "loaded sprites/outdoors"]
+ ]
+ }
+}
diff --git a/test/fixtures/styles/icons.style.json b/test/fixtures/styles/icons.style.json
new file mode 100644
index 0000000000..46adfbd408
--- /dev/null
+++ b/test/fixtures/styles/icons.style.json
@@ -0,0 +1,33 @@
+{
+ "version": 3,
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "tiles/{z}-{x}-{y}.vector.pbf",
+ "tileSize": 512,
+ "maxZoom": 14
+ }
+ },
+ "sprite": "sprites/outdoors",
+ "layers": [
+ {
+ "id": "background",
+ "type": "background",
+ "style": {
+ "background-color": "green"
+ }
+ },
+ {
+ "id": "poi",
+ "source": "mapbox",
+ "source-layer": "poi_label",
+ "type": "icon",
+ "filter": { "maki": "restaurant" },
+ "render": {
+ "icon-image": "{maki}-12",
+ "icon-size": 12,
+ "icon-allow-overlap": true
+ }
+ }
+ ]
+}
diff --git a/test/fixtures/styles/icons/default.expected.png b/test/fixtures/styles/icons/default.expected.png
new file mode 100644
index 0000000000..17e3252c88
--- /dev/null
+++ b/test/fixtures/styles/icons/default.expected.png
Binary files differ