summaryrefslogtreecommitdiff
path: root/test/fixtures/api
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-04-16 19:01:00 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-04-17 13:40:42 +0200
commit5d769f9b6253aa9f7792c3126cffb7f390177d88 (patch)
treed6797f37a2cf889c48c947228045c6543234a559 /test/fixtures/api
parent9af3f07e5b3833f98461bbb7caccda5ff37e5d17 (diff)
downloadqtlocation-mapboxgl-5d769f9b6253aa9f7792c3126cffb7f390177d88.tar.gz
explicitly call .discard() to resize the view on static renders
- this is only a stopgap; we need to properly pass state between threads - doesn't fix changing the pixel ratio
Diffstat (limited to 'test/fixtures/api')
-rw-r--r--test/fixtures/api/1.pngbin0 -> 12529 bytes
-rw-r--r--test/fixtures/api/2.pngbin0 -> 115197 bytes
-rw-r--r--test/fixtures/api/water.json25
3 files changed, 25 insertions, 0 deletions
diff --git a/test/fixtures/api/1.png b/test/fixtures/api/1.png
new file mode 100644
index 0000000000..69e3c8ca95
--- /dev/null
+++ b/test/fixtures/api/1.png
Binary files differ
diff --git a/test/fixtures/api/2.png b/test/fixtures/api/2.png
new file mode 100644
index 0000000000..2a28c639a5
--- /dev/null
+++ b/test/fixtures/api/2.png
Binary files differ
diff --git a/test/fixtures/api/water.json b/test/fixtures/api/water.json
new file mode 100644
index 0000000000..2bcce11992
--- /dev/null
+++ b/test/fixtures/api/water.json
@@ -0,0 +1,25 @@
+{
+ "version": 7,
+ "name": "Water",
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "asset://TEST_DATA/fixtures/tiles/streets.json"
+ }
+ },
+ "layers": [{
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "red"
+ }
+ }, {
+ "id": "water",
+ "type": "fill",
+ "source": "mapbox",
+ "source-layer": "water",
+ "paint": {
+ "fill-color": "blue"
+ }
+ }]
+}