2026-04-14-1

This commit is contained in:
Hamza-Ayed
2026-04-14 03:03:35 +03:00
parent b36e197e09
commit 581eda1ea8
15 changed files with 102069 additions and 304 deletions
+86 -164
View File
@@ -919,6 +919,35 @@
]
}
},
{
"id": "road-direction-arrows",
"type": "symbol",
"source": "local-osm-lines",
"source-layer": "planet_osm_line",
"minzoom": 15,
"filter": [
"all",
["in", "highway", "motorway", "trunk", "primary", "secondary", "tertiary", "residential", "unclassified", "living_street"],
["==", "oneway", "yes"]
],
"layout": {
"symbol-placement": "line",
"symbol-spacing": 80,
"text-field": "▸",
"text-font": ["Noto Sans Regular"],
"text-size": ["interpolate", ["linear"], ["zoom"], 15, 12, 18, 18],
"text-keep-upright": false,
"text-rotation-alignment": "map",
"text-allow-overlap": true,
"text-ignore-placement": true,
"text-padding": 0
},
"paint": {
"text-color": ["interpolate", ["linear"], ["zoom"], 15, "rgba(100,116,139,0.4)", 18, "rgba(100,116,139,0.7)"],
"text-halo-color": "rgba(255,255,255,0.3)",
"text-halo-width": 0.5
}
},
{
"id": "building-fill-flat",
"type": "fill",
@@ -938,120 +967,43 @@
{
"id": "building-3d",
"type": "fill-extrusion",
"source": "local-osm-polygons",
"source-layer": "planet_osm_polygon",
"source": "overture_buildings",
"source-layer": "overture_building",
"minzoom": 14,
"layout": {
"visibility": "none"
"visibility": "visible"
},
"filter": [
"has",
"building"
],
"paint": {
"fill-extrusion-color": [
"match",
[
"get",
"building"
],
"commercial",
"#DDD5C5",
"retail",
"#E5D8C8",
"industrial",
"#D2D8E0",
"church",
"#DDD4EE",
"mosque",
"#CCE4D0",
"hospital",
"#EDD8D8",
"school",
"#E0E6CC",
"university",
"#D8E0C8",
"hotel",
"#D8DCF0",
"apartments",
"#E0DCD4",
"#DDD8D2"
],
"fill-extrusion-color": "#DDD8D0",
"fill-extrusion-height": [
"interpolate",
[
"linear"
],
[
"zoom"
],
["linear"],
["zoom"],
14,
[
"*",
[
"coalesce",
[
"to-number",
[
"get",
"building:levels"
],
null
],
3
],
["coalesce", ["to-number", ["get", "num_floors"], null], 3],
2.5
],
17,
[
"coalesce",
[
"to-number",
[
"get",
"height"
],
null
],
["to-number", ["get", "height"], null],
[
"*",
[
"to-number",
[
"get",
"building:levels"
],
3
],
["coalesce", ["to-number", ["get", "num_floors"], null], 3],
3.5
],
12
]
],
"fill-extrusion-base": [
"coalesce",
[
"to-number",
[
"get",
"min_height"
],
null
],
0
],
"fill-extrusion-base": 0,
"fill-extrusion-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
14,
0.6,
16,
0.88
["linear"],
["zoom"],
14, 0.55,
16, 0.85
],
"fill-extrusion-vertical-gradient": true
}
@@ -1222,33 +1174,28 @@
"unclassified",
"living_street"
],
"minzoom": 16,
"minzoom": 15,
"layout": {
"text-field": [
"coalesce",
[
"get",
"name:ar"
],
[
"get",
"name"
],
["get", "name:ar"],
["get", "name"],
""
],
"text-font": [
"Noto Sans Regular"
],
"text-size": 11,
"text-font": ["Noto Sans Regular"],
"text-size": ["interpolate", ["linear"], ["zoom"], 15, 10, 18, 13],
"symbol-placement": "line",
"text-letter-spacing": 0.04,
"text-padding": 4,
"text-allow-overlap": false
"text-letter-spacing": 0.05,
"text-padding": 15,
"symbol-spacing": 300,
"text-max-angle": 30,
"text-allow-overlap": false,
"text-ignore-placement": false
},
"paint": {
"text-color": "#4A5568",
"text-halo-color": "rgba(255,255,255,0.85)",
"text-halo-width": 1.5
"text-halo-color": "rgba(255,255,255,0.92)",
"text-halo-width": 1.8
}
},
{
@@ -1265,45 +1212,28 @@
"motorway",
"trunk"
],
"minzoom": 13,
"minzoom": 12,
"layout": {
"text-field": [
"coalesce",
[
"get",
"name:ar"
],
[
"get",
"name"
],
["get", "name:ar"],
["get", "name"],
""
],
"text-font": [
"Noto Sans Regular"
],
"text-size": [
"interpolate",
[
"linear"
],
[
"zoom"
],
13,
11,
16,
14
],
"text-font": ["Noto Sans Bold"],
"text-size": ["interpolate", ["linear"], ["zoom"], 12, 10, 14, 13, 18, 16],
"symbol-placement": "line",
"text-letter-spacing": 0.05,
"text-padding": 5,
"text-allow-overlap": false
"text-letter-spacing": 0.06,
"text-padding": 20,
"symbol-spacing": 350,
"text-max-angle": 25,
"text-allow-overlap": false,
"text-ignore-placement": false
},
"paint": {
"text-color": "#2D3748",
"text-halo-color": "rgba(255,255,255,0.9)",
"text-halo-width": 2
"text-color": "#1A2332",
"text-halo-color": "rgba(255,255,255,0.95)",
"text-halo-width": 2.5
}
},
{
@@ -1929,14 +1859,11 @@
"type": "fill",
"source": "overture_buildings",
"source-layer": "overture_building",
"minzoom": 14,
"layout": {
"visibility": "visible"
},
"maxzoom": 14,
"paint": {
"fill-color": "#dcd8d0",
"fill-opacity": 0.8,
"fill-outline-color": "#c4beb4"
"fill-color": "#DDD8D0",
"fill-opacity": 0.85,
"fill-outline-color": "#C4BEB4"
}
},
{
@@ -1978,31 +1905,26 @@
"source": "overture_segments",
"source-layer": "overture_segment",
"minzoom": 14,
"filter": ["has", "names"],
"layout": {
"text-field": [
"coalesce",
[
"get",
"names"
],
""
],
"text-font": [
"Noto Sans Regular"
],
"text-size": 11,
"text-field": ["coalesce", ["get", "names"], ""],
"text-font": ["Noto Sans Regular"],
"text-size": ["interpolate", ["linear"], ["zoom"], 14, 9, 16, 12, 18, 14],
"symbol-placement": "line",
"text-padding": 10,
"text-rotation-alignment": "map",
"text-pitch-alignment": "viewport",
"text-keep-upright": true,
"text-padding": 20,
"text-letter-spacing": 0.04,
"text-max-angle": 30,
"symbol-spacing": 250,
"symbol-spacing": 300,
"text-allow-overlap": false,
"text-ignore-placement": false
},
"paint": {
"text-color": "#666",
"text-halo-color": "rgba(255, 255, 255, 0.9)",
"text-halo-width": 2
"text-color": "#4A5568",
"text-halo-color": "rgba(255, 255, 255, 0.95)",
"text-halo-width": 2.2
}
}
]