-
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.
Add render test icon-size/property-function-sdf
- Loading branch information
Anand Thakker
committed
Mar 27, 2017
1 parent
5802621
commit 2a10066
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+658 Bytes
test/integration/render-tests/icon-size/property-function-sdf/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-sdf/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, | ||
1 | ||
], | ||
[ | ||
10, | ||
2 | ||
] | ||
] | ||
}, | ||
"icon-image": "dot.sdf" | ||
}, | ||
"paint": { | ||
"icon-color": "red" | ||
} | ||
} | ||
] | ||
} |