{ "constants": { "@main-font": ["noto-mix","noto-cjk"], "@italic-font": ["noto-italic","noto-mix","noto-cjk"], "@bold-font": ["noto-bold","noto-mix","noto-cjk"], "@base-color": [255,255,255,255], "@base-color2": [0,0,0,255], "@base-stick": [70,0,2,0,0,0,100], "@name-solver": {"if":[["has","$name"],{"if":[["any",["!has","$name:en"],["==",{"has-latin":"$name"},true]],"{$name}","{$name}\n{$name:en}"]},""]}, "@z4": 5387767, "@z5": 2693883, "@z6": 1346940, "@z7": 673469, "@z8": 336734, "@z9": 168366, "@z10": 84183, "@z11": 42090, "@z12": 21044, "@z13": 10521, "@z14": 5259, "@z15": 2629, "@z16": 1313, "@z17": 656, "@z18": 328, "@dummy-line": 0 }, "fonts": { "noto-bold": "//mapserver-3d.mapy.cz/fonts/noto-bold/1.0.0/noto-b.fnt", "noto-italic": "//mapserver-3d.mapy.cz/fonts/noto-italic/1.0.0/noto-i.fnt", "noto-mix": "//mapserver-3d.mapy.cz/fonts/noto-extended/1.0.0/noto.fnt", "noto-cjk": "//mapserver-3d.mapy.cz/fonts/noto-cjk/1.0.0/noto.fnt", "#default": "//mapserver-3d.mapy.cz/fonts/noto-basic/1.0.0/noto.fnt" }, "layers": { "country-boundaries": { "filter": ["all",["==","#group","country-boundaries"]], "line": true, "line-flat": false, "line-width": 4, "line-color": [255,255,255,128], "zbuffer-offset": [-0.01,0,0] }, "state-boundaries": { "filter": ["all",["==","#group","state-boundaries"]], "line": true, "line-flat": false, "line-width": 4, "line-color": [255,255,255,64], "zbuffer-offset": [-0.01,0,0] }, "country-labels": { "filter": ["all",["==","#group","country-labels"]], "visibility-switch": [["@z7",null],["@z6","country-labels-z6"],["@z5","country-labels-z5"],["@z4","country-labels-z4"]], "culling": 84, "zbuffer-offset": [-0.15,0,0], "hysteresis": [1500,1500,"@name-solver",true] }, "country-labels-z4": { "filter": ["skip"], "&rank": {"str2num": {"str2num":"$rank"} }, "importance-source": {"logScale": ["&rank", 5, 90, 100]}, "importance-weight": 1, "&text": {"uppercase":{"if":[["==","@name-solver","Schweiz/Suisse/Svizzera/Svizra"],"Switzerland",{"if":[["==","@name-solver","Belgiƫ - Belgique - Belgien"],"Belgiƫ","{@name-solver}"]}]}}, "label": true, "label-font": "@main-font", "label-source": "&text", "label-color": "@base-color", "label-color2": "@base-color2", "label-stick": "@base-stick", "label-size": 14, "label-spacing": 1, "label-line-height": 0.8, "label-offset": [0,-8], "zbuffer-offset": [-0.15,0,0] }, "country-labels-z5": { "inherit": "country-labels-z4", "label-font": "@bold-font", "label-size": 18 }, "country-labels-z6": { "inherit": "country-labels-z4", "label-font": "@bold-font", "label-size": {"linear2":["$rank",[[1,22],[3,19],[4,15]]]} }, "towns-labels": { "filter": ["all",["==","#group","towns-labels"]], "visibility-switch": [["@z15","towns-labels-z15"],["@z14","towns-labels-z14"],["@z13","towns-labels-z13"],["@z12","towns-labels-z12"],["@z11","towns-labels-z11"],["@z10","towns-labels-z10"],["@z9","towns-labels-z9"],["@z8","towns-labels-z8"],["@z7","towns-labels-z7"],["@z6","towns-labels-z6"],["@z5","towns-labels-z5"]], "culling": 84, "zbuffer-offset": [-0.15,0,0] }, "towns-labels-z5": { "filter": ["skip"], "&population": {"str2num": {"if":[["has","$population"],"$population",1]} }, "&rank": {"clamp":[{"if":[["has","$population"],{"sub":[42,{"add":["&class",{"div":[{"log":{"str2num":"$population"}},{"log":1.5}]}]}]},30]},0,30]}, "&class": {"if":[["==","$place","capital"],4,{"if":[["==","$place","city"],3,{"if":[["==","$place","town"],2,{"if":[["==","$place","village"],1,0]}]}]}]}, "importance-source": {"logScale": ["&population", 24183000, 10, 90]}, "importance-weight": 1, "&name": "@name-solver", "&text": "&name", "&font": "@main-font", "&capital": {"if":[["==","$place","capital"],true,false]}, "&size": 15, "label": true, "label-offset": [0,0], "label-color": "@base-color", "label-color2": "@base-color2", "label-stick": "@base-stick", "label-no-overlap": true, "label-source": "&text", "label-font": "&font", "label-size": "&size", "label-outline": {"linear2":["&size",[[14,[0.27,0.75,2.2,2.2]],[50,[0.52,0.75,2.2,2.2]]]]}, "zbuffer-offset": [-0.15,0,0] }, "towns-labels-z6": { "inherit": "towns-labels-z5", "&text": {"if":[["==","&capital",true],{"uppercase":"&name"},"&name"]}, "label-size": 15, "label-outline": [0.27,0.75,2.2,2.2] }, "towns-labels-z7": { "inherit": "towns-labels-z5", "&text": {"if":[["==","&capital",true],{"uppercase":"&name"},"&name"]}, "&size": {"if":[["==","&capital",true],21,{"linear2":["&rank",[[7,19],[18,14]]]}]} }, "towns-labels-z8": { "inherit": "towns-labels-z5", "&text": {"if":[["==","&capital",true],{"uppercase":"&name"},"&name"]}, "&font": {"if":[["==","&capital",true],"@bold-font","@main-font"]}, "&size": {"if":[["==","&capital",true],25,{"linear2":["&rank",[[7,21],[18,14]]]}]} }, "towns-labels-z9": { "inherit": "towns-labels-z5", "&text": {"if":[["==","&capital",true],{"uppercase":"&name"},"&name"]}, "&font": {"if":[["<=","&rank",11],"@bold-font","@main-font"]}, "&size": {"if":[["==","&capital",true],30,{"linear2":["&rank",[[7,25],[18,14]]]}]} }, "towns-labels-z10": { "inherit": "towns-labels-z5", "&text": {"if":[["==","&capital",true],{"uppercase":"&name"},"&name"]}, "&font": {"if":[["<=","&rank",11],"@bold-font","@main-font"]}, "&size": {"if":[["==","&capital",true],30,{"linear2":["&rank",[[7,25],[18,18]]]}]} }, "towns-labels-z11": { "inherit": "towns-labels-z5", "&text": {"if":[["<=","&rank",11],{"uppercase":"&name"},"&name"]}, "&font": {"if":[["<=","&rank",20],"@bold-font","@main-font"]}, "&size": {"if":[["==","&capital",true],50,{"linear2":["&rank",[[7,38],[13,33],[20,22],[30,12]]]}]} }, "towns-labels-z12": { "inherit": "towns-labels-z5", "&text": {"if":[["<=","&rank",13],{"uppercase":"&name"},"&name"]}, "&font": {"if":[["<=","&rank",23],"@bold-font","@main-font"]}, "&size": {"if":[["==","&capital",true],50,{"linear2":["&rank",[[7,38],[13,32],[20,31],[30,12]]]}]} }, "towns-labels-z13": { "inherit": "towns-labels-z5", "&text": {"if":[["<=","&rank",18],{"uppercase":"&name"},"&name"]}, "&font": {"if":[["<=","&rank",23],"@bold-font","@main-font"]}, "&size": {"if":[["==","&capital",true],50,{"linear2":["&rank",[[7,38],[13,32],[20,31],[30,16]]]}]} }, "towns-labels-z14": { "inherit": "towns-labels-z5", "&text": {"if":[["<=","&rank",27],{"uppercase":"&name"},"&name"]}, "&font": {"if":[["<=","&rank",23],"@bold-font","@main-font"]}, "&size": {"if":[["==","&capital",true],50,{"linear2":["&rank",[[7,38],[13,32],[20,31],[30,18]]]}]} }, "towns-labels-z15": { "inherit": "towns-labels-z5", "&text": {"if":[["<=","&rank",29],{"uppercase":"&name"},"&name"]}, "&font": "@main-font", "&size": {"if":[["==","&capital",true],38,{"linear2":["&rank",[[7,28],[13,28],[20,28],[30,18]]]}]} }, "roads-major-label": { "filter": ["all",["in","#group","streets","streets-csr","streets-sk"],["in","$highway","primary","highway","trunk"]], "visible": {"discrete":[[15,false],[16,true]]}, "line-label": true, "line-label-size": 24, "line-label-color": "@base-color", "line-label-color2": "@base-color2", "line-label-font": "@main-font", "line-label-type": "screen-flat", "line-label-no-overlap-margin": 2, "zbuffer-offset": [-11,-50,-50], "culling": 82, "hysteresis": [1500,1500,"{$name}-{#lod}-{#ix}-{#iy}",true] }, "roads-minor-label": { "filter": ["all",["in","#group","streets","streets-csr","streets-sk","square-labels","square-labels-csr"]], "visible": {"discrete":[[15,false],[16,true]]}, "line-label": true, "line-label-size": 24, "line-label-color": "@base-color", "line-label-color2": "@base-color2", "line-label-font": "@main-font", "line-label-type": "screen-flat", "line-label-no-overlap-margin": 2, "zbuffer-offset": [-11,-50,-50], "culling": 82, "hysteresis": [1500,1500,"{$name}-{#lod}-{#ix}-{#iy}",true] }, "peaks": { "filter": ["all",["==","#group","peaks"],["has","$name"],["!=","$name",""]], "&ele-solver": "{{'round': {'str2num':'$ele'}}} m", "&osmid": {"if":[["has","$osm_id"],"$osm_id",""]}, "&id-solver": "{&osmid} {&ele-solver} {@name-solver}", "&prominence": {"add":[{"if":[["has","$ele"],{"mul":[0.0001,{"str2num":"$ele"}]},0]},{"if":[["has","$prominence"],{"mul":[0.3048,{"str2num":"$prominence"}]},0]}]}, "&prominence2": {"if":[["has","$prominence"],{"mul":[0.3048,{"str2num":"$prominence"}]},0]}, "&peak-rank": {"discrete2":["&prominence2",[[1,5],[2,4],[162,4],[164,3],[324,3],[326,2],[749,2],[751,1],[1499,1],[1501,0]]]}, "&text": {"if":[["has","$ele"],"{@name-solver}\n{&ele-solver}","{@name-solver}"]}, "visible": true, "importance-source": {"logScale": ["&prominence", 8848.8848, 10, 84]}, "importance-weight": 1, "label": true, "label-color2": "@base-color2", "label-color": {"linear2":["&peak-rank",[[1,[255,233,0,255]],[5,[230,230,230,255]]]]}, "label-stick": {"linear2":["&peak-rank",[[1,[70,5,2,255,233,0,128]],[5,[70,5,2,230,230,230,128]]]]}, "label-size": {"discrete2":["&peak-rank",[[0,19],[1,18],[2,17],[3,16],[4,15],[5,14]]]}, "label-offset": [0,0], "label-source": "&text", "label-font": "@italic-font", "label-no-overlap": true, "zbuffer-offset": [-0.25,0,0], "culling": 100, "hysteresis": [1500,1500,"&id-solver",true] } } }