Files
MapLibreParticleLab/metrics/integration/render-tests/icon-size/property-function-plain/style.json
2023-03-25 14:46:49 +01:00

67 lines
1.2 KiB
JSON

{
"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"
}
}
]
}