Files
MapLibreParticleLab/metrics/integration/render-tests/symbol-sort-key/text-expression/style.json
2023-03-25 14:46:49 +01:00

88 lines
1.8 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"height": 64,
"width": 64
}
},
"center": [0, 30],
"zoom": 1,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"color": "red",
"sort-key": 0,
"image": "bank-12"
},
"geometry": {
"type": "Point",
"coordinates": [
1,
34
]
}
},
{
"type": "Feature",
"properties": {
"color": "red",
"sort-key": 2,
"image": "bank-12"
},
"geometry": {
"type": "Point",
"coordinates": [
1,
30
]
}
},
{
"type": "Feature",
"properties": {
"color": "blue",
"sort-key": 1,
"image": "fav-campsite-18"
},
"geometry": {
"type": "Point",
"coordinates": [
-1,
32
]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "icon",
"type": "symbol",
"source": "geojson",
"layout": {
"text-allow-overlap": true,
"symbol-sort-key": ["get", "sort-key"],
"text-field": ["get", "sort-key"],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
},
"paint": {
"text-halo-width": 5,
"text-halo-color": ["get", "color"]
}
}
]
}