Skip to content

Commit

Permalink
Add render test icon-size/property-function-sdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Thakker committed Mar 27, 2017
1 parent 5802621 commit 2a10066
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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"
}
}
]
}

0 comments on commit 2a10066

Please sign in to comment.