Files
2023-03-25 14:46:49 +01:00

75 lines
1.4 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"collisionDebug": true,
"height": 256,
"width" : 256
}
},
"center": [
0,
0
],
"zoom": 12,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "translate",
"type": "symbol",
"source": "geojson",
"layout": {
"icon-image": "fav-airport-18",
"text-field": "abc",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"symbol-placement": "point",
"symbol-spacing": 20
},
"paint": {
"icon-opacity": 1,
"text-color": "hsl(0, 82%, 48%)",
"icon-translate": [
"interpolate",
["exponential", 2.0],
["zoom"],
9,
["literal", [0, 0]],
14,
["literal", [-130, -130]]
],
"text-translate": [
"interpolate",
["exponential", 1.2],
["zoom"],
9,
["literal", [0, 0]],
13,
["literal", [0, -130]]
]
}
}
]
}