54 lines
1.1 KiB
JSON
54 lines
1.1 KiB
JSON
{
|
|
"version": 8,
|
|
"metadata": {
|
|
"test": {
|
|
"height": 256,
|
|
"width": 256
|
|
}
|
|
},
|
|
"center": [ 0, 0 ],
|
|
"zoom": 0,
|
|
"sources": {
|
|
"point": {
|
|
"type": "geojson",
|
|
"data": {
|
|
"type": "FeatureCollection",
|
|
"features": [
|
|
{
|
|
"type": "Feature",
|
|
"properties": {
|
|
"name": "Napoli",
|
|
"name_en": "Naples"
|
|
},
|
|
"geometry": {
|
|
"type": "Point",
|
|
"coordinates": [ 0, 0 ]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
|
|
"layers": [
|
|
{
|
|
"id": "text",
|
|
"type": "symbol",
|
|
"source": "point",
|
|
"layout": {
|
|
"text-field": ["format",
|
|
["get", "name_en"], { "font-scale": 1.5 },
|
|
"Italy", { "font-scale": 0.5} ,
|
|
"\n", {},
|
|
["get", "name"], { "font-scale": 0.5, "text-font": ["literal", [ "NotoCJK" ]] }
|
|
],
|
|
"text-font": [
|
|
"Open Sans Semibold",
|
|
"Arial Unicode MS Bold"
|
|
],
|
|
"text-size": 32
|
|
}
|
|
}
|
|
]
|
|
}
|