-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anand Thakker
committed
Mar 27, 2017
1 parent
2a10066
commit ae60c28
Showing
7 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.46 KB
test/integration/render-tests/icon-size/property-function-plain/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions
66
test/integration/render-tests/icon-size/property-function-plain/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 0 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ -10, 0 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 5 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
10, | ||
0 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"sprite": "local://sprites/sprite", | ||
"layers": [ | ||
{ | ||
"id": "symbol", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"icon-size": { | ||
"property": "x", | ||
"stops": [ | ||
[ | ||
0, | ||
0.5 | ||
], | ||
[ | ||
10, | ||
1.5 | ||
] | ||
] | ||
}, | ||
"icon-image": "restaurant-12" | ||
}, | ||
"paint": { | ||
"icon-color": "red" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+1.97 KB
...tegration/render-tests/text-size/composite-function-line-placement/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions
62
...integration/render-tests/text-size/composite-function-line-placement/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"zoom": 2.75, | ||
"center": [-20, -10], | ||
"sources": { | ||
"geojson": { | ||
"type":"geojson", | ||
"data":{ | ||
"type":"FeatureCollection", | ||
"features": [{ | ||
"type":"Feature", | ||
"properties":{"x":0}, | ||
"geometry":{ | ||
"type":"LineString","coordinates":[ | ||
[-10,-1], [-20,-10], [-30,-1], [-40,-10]] | ||
} | ||
}] | ||
} | ||
} | ||
}, | ||
"layers":[ | ||
{ | ||
"id": "symbol-camera", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"symbol-placement": "line", | ||
"symbol-spacing": 1, | ||
"text-anchor": "left", | ||
"text-allow-overlap": true, | ||
"text-ignore-placement": true, | ||
"text-max-angle": 180, | ||
"text-field": "abcdefghijklmnopqrstuvwxyz", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-size": { | ||
"property": "x", | ||
"stops": [ | ||
[ {"value": 0, "zoom": 0}, 2 ], | ||
[ {"value": 0, "zoom": 1}, 4 ], | ||
[ {"value": 0, "zoom": 2}, 6 ], | ||
[ {"value": 0, "zoom": 3}, 12 ], | ||
[ {"value": 0, "zoom": 10}, 12 ] | ||
] | ||
} | ||
}, | ||
"paint": { | ||
"text-color": "red", | ||
"text-opacity": 0.5 | ||
} | ||
} | ||
], | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf" | ||
} |
Binary file added
BIN
+507 Bytes
test/integration/render-tests/text-size/composite-function/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions
63
test/integration/render-tests/text-size/composite-function/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"zoom": 0.5, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 0 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ -10, 0 ] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { "x": 5 }, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
10, | ||
0 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "symbol", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"text-field": "A", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-size": { | ||
"property": "x", | ||
"stops": [ | ||
[ {"value": 0, "zoom": 0}, 10 ], | ||
[ {"value": 10, "zoom": 0}, 20 ], | ||
[ {"value": 0, "zoom": 1}, 14 ], | ||
[ {"value": 10, "zoom": 1}, 28 ] | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
Binary file modified
BIN
-261 Bytes
(66%)
test/integration/render-tests/text-size/property-function/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.