summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-01-07 18:51:19 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-01-15 17:04:08 +0100
commita88e58ef3a90225fcfafca1efab996de6a827b72 (patch)
tree925d68e81c26b918b3c6aa4c31f4e33ce50fbb82 /test/fixtures
parent32a2359e86bc86221682f1afa057b62f0f0be8c2 (diff)
downloadqtlocation-mapboxgl-a88e58ef3a90225fcfafca1efab996de6a827b72.tar.gz
[core] use stale glyphs
Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/stale/glyph.pbfbin0 -> 74722 bytes
-rw-r--r--test/fixtures/stale/stale_style_and_glyphs/expected.pngbin0 -> 36120 bytes
-rw-r--r--test/fixtures/stale/style_and_glyphs.json39
3 files changed, 39 insertions, 0 deletions
diff --git a/test/fixtures/stale/glyph.pbf b/test/fixtures/stale/glyph.pbf
new file mode 100644
index 0000000000..0d160f7898
--- /dev/null
+++ b/test/fixtures/stale/glyph.pbf
Binary files differ
diff --git a/test/fixtures/stale/stale_style_and_glyphs/expected.png b/test/fixtures/stale/stale_style_and_glyphs/expected.png
new file mode 100644
index 0000000000..d8dbda1092
--- /dev/null
+++ b/test/fixtures/stale/stale_style_and_glyphs/expected.png
Binary files differ
diff --git a/test/fixtures/stale/style_and_glyphs.json b/test/fixtures/stale/style_and_glyphs.json
new file mode 100644
index 0000000000..adf91705fb
--- /dev/null
+++ b/test/fixtures/stale/style_and_glyphs.json
@@ -0,0 +1,39 @@
+{
+ "version": 8,
+ "name": "Water",
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "asset://test/fixtures/stale/streets.json"
+ }
+ },
+ "glyphs": "http://127.0.0.1:3000/stale/{fontstack}/{range}.pbf",
+ "layers": [{
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "red"
+ }
+ }, {
+ "id": "water",
+ "type": "fill",
+ "source": "mapbox",
+ "source-layer": "water",
+ "paint": {
+ "fill-color": "blue"
+ }
+ }, {
+ "id": "admin",
+ "type": "symbol",
+ "source": "mapbox",
+ "source-layer": "admin",
+ "layout": {
+ "text-field": "Text"
+ },
+ "paint": {
+ "text-color": "black",
+ "text-halo-color": "white",
+ "text-halo-width": 2
+ }
+ }]
+}