diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-15 18:08:14 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-15 18:08:14 -0700 |
commit | 682eaec87cff73e7a2c547fddea889d478e7d29d (patch) | |
tree | 897ad86c4fc50279a178d95749ab2dca2298fe25 /test/fixtures/styles | |
parent | 7810548409ee573b2d939dbed840414e09abc01e (diff) | |
download | qtlocation-mapboxgl-682eaec87cff73e7a2c547fddea889d478e7d29d.tar.gz |
add icon render test
Diffstat (limited to 'test/fixtures/styles')
-rw-r--r-- | test/fixtures/styles/icons.info.json | 18 | ||||
-rw-r--r-- | test/fixtures/styles/icons.style.json | 33 | ||||
-rw-r--r-- | test/fixtures/styles/icons/default.expected.png | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000000..17e3252c88 --- /dev/null +++ b/test/fixtures/styles/icons/default.expected.png |