789 lines
24 KiB
JSON
789 lines
24 KiB
JSON
{
|
|
"version": 8,
|
|
"name": "Intaleq Premium Map Style",
|
|
"metadata": {
|
|
"brand": "Intaleq",
|
|
"version": "2.1.0",
|
|
"description": "Google + OSM hybrid style with 3D buildings, railways, subway, waterways, and Intaleq brand palette. DB names integrated as native OSM labels."
|
|
},
|
|
"center": [36.276008, 33.513685],
|
|
"zoom": 15,
|
|
"glyphs": "https://cdn.protomaps.com/fonts/pbf/{fontstack}/{range}.pbf",
|
|
"sprite": "https://demotiles.maplibre.org/styles/osm-bright-gl-style/sprite",
|
|
"sources": {
|
|
"local-osm-polygons": {
|
|
"type": "vector",
|
|
"tiles": ["https://tiles.intaleqapp.com/planet_osm_polygon/{z}/{x}/{y}"],
|
|
"maxzoom": 14,
|
|
"attribution": "© Intaleq | © OpenStreetMap contributors"
|
|
},
|
|
"local-osm-lines": {
|
|
"type": "vector",
|
|
"tiles": ["https://tiles.intaleqapp.com/planet_osm_line/{z}/{x}/{y}"],
|
|
"maxzoom": 14
|
|
},
|
|
"local-osm-points": {
|
|
"type": "vector",
|
|
"tiles": ["https://tiles.intaleqapp.com/planet_osm_point/{z}/{x}/{y}"],
|
|
"maxzoom": 14
|
|
},
|
|
"places_egypt": {
|
|
"type": "vector",
|
|
"tiles": ["https://tiles.intaleqapp.com/places_egypt/{z}/{x}/{y}"],
|
|
"maxzoom": 14
|
|
},
|
|
"intaleq_dynamic_pois": {
|
|
"type": "geojson",
|
|
"data": "https://map-saas.intaleqapp.com/api/geocoding/geojson",
|
|
"cluster": false
|
|
}
|
|
},
|
|
"layers": [
|
|
{
|
|
"id": "background",
|
|
"type": "background",
|
|
"paint": { "background-color": "#EEF2F7" }
|
|
},
|
|
{
|
|
"id": "landuse-residential",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["==", "landuse", "residential"],
|
|
"paint": { "fill-color": "#F0F4F8", "fill-opacity": 1 }
|
|
},
|
|
{
|
|
"id": "landuse-commercial",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["==", "landuse", "commercial"],
|
|
"paint": { "fill-color": "#FAF5EE", "fill-opacity": 1 }
|
|
},
|
|
{
|
|
"id": "landuse-industrial",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["in", "landuse", "industrial", "railway"],
|
|
"paint": { "fill-color": "#E4E8EE", "fill-opacity": 1 }
|
|
},
|
|
{
|
|
"id": "landuse-cemetery",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["==", "landuse", "cemetery"],
|
|
"paint": { "fill-color": "#B8D4BA", "fill-opacity": 0.9 }
|
|
},
|
|
{
|
|
"id": "landuse-military",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["==", "landuse", "military"],
|
|
"paint": { "fill-color": "#E2D9CC", "fill-opacity": 0.8 }
|
|
},
|
|
{
|
|
"id": "park-layer",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": [
|
|
"any",
|
|
["in", "leisure", "park", "garden", "nature_reserve", "pitch", "playground"],
|
|
["in", "landuse", "grass", "meadow", "forest"],
|
|
["in", "natural", "wood", "scrub", "heath"]
|
|
],
|
|
"paint": {
|
|
"fill-color": ["match", ["get", "leisure"], "pitch", "#9ED4A0", "playground", "#B8E6B8", "#C5E8C5"],
|
|
"fill-opacity": 0.85
|
|
}
|
|
},
|
|
{
|
|
"id": "park-outline",
|
|
"type": "line",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["in", "leisure", "park", "garden", "nature_reserve"],
|
|
"paint": { "line-color": "#94D4A0", "line-width": 0.8, "line-opacity": 0.7 }
|
|
},
|
|
{
|
|
"id": "water-polygon",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": [
|
|
"any",
|
|
["in", "natural", "water", "lake", "bay"],
|
|
["==", "waterway", "riverbank"],
|
|
["in", "landuse", "basin", "reservoir"],
|
|
["==", "amenity", "fountain"]
|
|
],
|
|
"paint": { "fill-color": "#9ECFE8", "fill-opacity": 0.95 }
|
|
},
|
|
{
|
|
"id": "water-polygon-outline",
|
|
"type": "line",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": [
|
|
"any",
|
|
["in", "natural", "water", "lake", "bay"],
|
|
["==", "waterway", "riverbank"],
|
|
["in", "landuse", "basin", "reservoir"]
|
|
],
|
|
"paint": { "line-color": "#6BB8D8", "line-width": 0.8, "line-opacity": 0.8 }
|
|
},
|
|
{
|
|
"id": "waterway-river",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": [
|
|
"all",
|
|
["in", "waterway", "river", "canal"],
|
|
["!=", "intermittent", "yes"],
|
|
["!=", "seasonal", "yes"],
|
|
["!=", "tunnel", "yes"]
|
|
],
|
|
"paint": {
|
|
"line-color": "#6BB8D8",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 10, 1.5, 14, 4, 16, 7],
|
|
"line-opacity": 0.95
|
|
}
|
|
},
|
|
{
|
|
"id": "waterway-stream-drain",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": [
|
|
"all",
|
|
["in", "waterway", "stream", "drain", "ditch"],
|
|
["!=", "intermittent", "yes"],
|
|
["!=", "seasonal", "yes"],
|
|
["!=", "tunnel", "yes"]
|
|
],
|
|
"minzoom": 13,
|
|
"paint": {
|
|
"line-color": "#7FBFD8",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 13, 0.8, 16, 2.5],
|
|
"line-opacity": 0.85
|
|
}
|
|
},
|
|
{
|
|
"id": "railway-area",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["==", "landuse", "railway"],
|
|
"paint": { "fill-color": "#DDE2EA", "fill-opacity": 0.9 }
|
|
},
|
|
{
|
|
"id": "railway-rail-casing",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": [
|
|
"all",
|
|
["in", "railway", "rail", "narrow_gauge", "preserved"],
|
|
["!=", "service", "yard"],
|
|
["!=", "service", "siding"]
|
|
],
|
|
"minzoom": 8,
|
|
"paint": {
|
|
"line-color": "#B0B8C5",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 2, 12, 4, 16, 8]
|
|
}
|
|
},
|
|
{
|
|
"id": "railway-rail-core",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": [
|
|
"all",
|
|
["in", "railway", "rail", "narrow_gauge", "preserved"],
|
|
["!=", "service", "yard"],
|
|
["!=", "service", "siding"]
|
|
],
|
|
"minzoom": 8,
|
|
"paint": {
|
|
"line-color": "#6B7A8E",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 8, 1, 12, 2.5, 16, 5],
|
|
"line-dasharray": [6, 4]
|
|
}
|
|
},
|
|
{
|
|
"id": "railway-subway-casing",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "railway", "subway", "light_rail", "tram", "monorail"],
|
|
"minzoom": 10,
|
|
"paint": {
|
|
"line-color": ["match", ["get", "railway"], "subway", "#CC2233", "light_rail", "#0066CC", "tram", "#8833BB", "monorail", "#008855", "#BB3344"],
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 10, 3, 14, 6, 16, 10]
|
|
}
|
|
},
|
|
{
|
|
"id": "railway-subway-core",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "railway", "subway", "light_rail", "tram", "monorail"],
|
|
"minzoom": 10,
|
|
"paint": {
|
|
"line-color": ["match", ["get", "railway"], "subway", "#FF3347", "light_rail", "#2288FF", "tram", "#AA44EE", "monorail", "#00BB66", "#FF4455"],
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 10, 1.5, 14, 3.5, 16, 6]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-casing-track-path",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "track", "path", "footway", "cycleway", "steps"],
|
|
"minzoom": 14,
|
|
"paint": {
|
|
"line-color": "#C8CDD6",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 14, 1, 16, 4],
|
|
"line-dasharray": [4, 3]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-casing-minor",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "residential", "service", "unclassified", "living_street", "pedestrian"],
|
|
"paint": {
|
|
"line-color": "#D4D8DF",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 12, 1.5, 16, 10],
|
|
"line-opacity": 0.7
|
|
}
|
|
},
|
|
{
|
|
"id": "road-core-minor",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "residential", "service", "unclassified", "living_street", "pedestrian"],
|
|
"paint": {
|
|
"line-color": "#FFFFFF",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 12, 0.8, 16, 8]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-casing-tertiary",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "tertiary", "tertiary_link"],
|
|
"paint": {
|
|
"line-color": "#C9CED8",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 11, 2, 16, 14],
|
|
"line-opacity": 0.75
|
|
}
|
|
},
|
|
{
|
|
"id": "road-core-tertiary",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "tertiary", "tertiary_link"],
|
|
"paint": {
|
|
"line-color": "#FFFFFF",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 11, 1.2, 16, 11]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-casing-secondary",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "secondary", "secondary_link"],
|
|
"paint": {
|
|
"line-color": "#C4CFDE",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 11, 2.5, 16, 16],
|
|
"line-opacity": 0.8
|
|
}
|
|
},
|
|
{
|
|
"id": "road-core-secondary",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "secondary", "secondary_link"],
|
|
"paint": {
|
|
"line-color": "#F8FBFF",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 11, 1.8, 16, 13]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-casing-primary",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "primary", "primary_link"],
|
|
"paint": {
|
|
"line-color": "#C8B868",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 10, 3, 16, 18],
|
|
"line-opacity": 0.7
|
|
}
|
|
},
|
|
{
|
|
"id": "road-core-primary",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "primary", "primary_link"],
|
|
"paint": {
|
|
"line-color": "#EDD870",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 10, 2, 16, 14]
|
|
}
|
|
},
|
|
{
|
|
"id": "road-casing-motorway-trunk",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "motorway", "motorway_link", "trunk", "trunk_link"],
|
|
"paint": {
|
|
"line-color": "#C8A84B",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 9, 4, 16, 20],
|
|
"line-opacity": 0.75
|
|
}
|
|
},
|
|
{
|
|
"id": "road-core-motorway-trunk",
|
|
"type": "line",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "motorway", "motorway_link", "trunk", "trunk_link"],
|
|
"paint": {
|
|
"line-color": "#F0C040",
|
|
"line-width": ["interpolate", ["linear"], ["zoom"], 9, 2.5, 16, 16]
|
|
}
|
|
},
|
|
{
|
|
"id": "building-fill-flat",
|
|
"type": "fill",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"filter": ["has", "building"],
|
|
"maxzoom": 14,
|
|
"paint": {
|
|
"fill-color": "#DDD8D0",
|
|
"fill-opacity": 0.85,
|
|
"fill-outline-color": "#C4BEB4"
|
|
}
|
|
},
|
|
{
|
|
"id": "building-3d",
|
|
"type": "fill-extrusion",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"minzoom": 14,
|
|
"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-height": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
14, ["*", ["coalesce", ["to-number", ["get", "building:levels"], null], 3], 2.5],
|
|
17, ["coalesce",
|
|
["to-number", ["get", "height"], null],
|
|
["*", ["to-number", ["get", "building:levels"], 3], 3.5],
|
|
12
|
|
]
|
|
],
|
|
"fill-extrusion-base": ["coalesce", ["to-number", ["get", "min_height"], null], 0],
|
|
"fill-extrusion-opacity": ["interpolate", ["linear"], ["zoom"], 14, 0.6, 16, 0.88],
|
|
"fill-extrusion-vertical-gradient": true
|
|
}
|
|
},
|
|
{
|
|
"id": "railway-label",
|
|
"type": "symbol",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "railway", "rail", "subway", "light_rail", "tram"],
|
|
"minzoom": 13,
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 10,
|
|
"symbol-placement": "line",
|
|
"text-padding": 6,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": ["match", ["get", "railway"], "subway", "#CC2233", "light_rail", "#0055BB", "tram", "#7722AA", "#4A5568"],
|
|
"text-halo-color": "rgba(255,255,255,0.9)",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "waterway-label",
|
|
"type": "symbol",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": [
|
|
"all",
|
|
["in", "waterway", "river", "canal"],
|
|
["!=", "intermittent", "yes"],
|
|
["has", "name"]
|
|
],
|
|
"minzoom": 12,
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 11,
|
|
"symbol-placement": "line",
|
|
"text-letter-spacing": 0.1
|
|
},
|
|
"paint": {
|
|
"text-color": "#2E86AB",
|
|
"text-halo-color": "rgba(255,255,255,0.85)",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "building-number-polygon",
|
|
"type": "symbol",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"minzoom": 17,
|
|
"filter": ["has", "addr:housenumber"],
|
|
"layout": {
|
|
"text-field": "{addr:housenumber}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 10,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#5A5048",
|
|
"text-halo-color": "rgba(255,255,255,0.95)",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "building-number-point",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 17,
|
|
"filter": ["has", "addr:housenumber"],
|
|
"layout": {
|
|
"text-field": "{addr:housenumber}",
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 10,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#5A5048",
|
|
"text-halo-color": "rgba(255,255,255,0.95)",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "road-labels-minor",
|
|
"type": "symbol",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "residential", "service", "unclassified", "living_street"],
|
|
"minzoom": 16,
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 11,
|
|
"symbol-placement": "line",
|
|
"text-letter-spacing": 0.04,
|
|
"text-padding": 4,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#4A5568",
|
|
"text-halo-color": "rgba(255,255,255,0.85)",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "road-labels-major",
|
|
"type": "symbol",
|
|
"source": "local-osm-lines",
|
|
"source-layer": "planet_osm_line",
|
|
"filter": ["in", "highway", "primary", "secondary", "tertiary", "motorway", "trunk"],
|
|
"minzoom": 13,
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": ["interpolate", ["linear"], ["zoom"], 13, 11, 16, 14],
|
|
"symbol-placement": "line",
|
|
"text-letter-spacing": 0.05,
|
|
"text-padding": 5,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#2D3748",
|
|
"text-halo-color": "rgba(255,255,255,0.9)",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "poi-hospital",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 13,
|
|
"filter": ["==", "amenity", "hospital"],
|
|
"layout": {
|
|
"icon-image": "hospital",
|
|
"icon-size": 1,
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 11,
|
|
"text-offset": [0, 1.2],
|
|
"text-anchor": "top",
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#C0392B",
|
|
"text-halo-color": "white",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "poi-pharmacy",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 15,
|
|
"filter": ["==", "amenity", "pharmacy"],
|
|
"layout": {
|
|
"icon-image": "pharmacy",
|
|
"icon-size": 0.8,
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 10,
|
|
"text-offset": [0, 1.2],
|
|
"text-anchor": "top"
|
|
},
|
|
"paint": {
|
|
"text-color": "#1A7A3C",
|
|
"text-halo-color": "white",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "poi-place-of-worship",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 14,
|
|
"filter": ["==", "amenity", "place_of_worship"],
|
|
"layout": {
|
|
"icon-image": "tourist",
|
|
"icon-size": 0.8,
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 11,
|
|
"text-offset": [0, 1.2],
|
|
"text-anchor": "top"
|
|
},
|
|
"paint": {
|
|
"text-color": "#1A6B3A",
|
|
"text-halo-color": "white",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "poi-restaurant-cafe",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 16,
|
|
"filter": ["in", "amenity", "restaurant", "cafe", "fast_food"],
|
|
"layout": {
|
|
"icon-image": ["match", ["get", "amenity"], "cafe", "cafe", "restaurant"],
|
|
"icon-size": 0.8,
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 10,
|
|
"text-offset": [0, 1.2],
|
|
"text-anchor": "top"
|
|
},
|
|
"paint": {
|
|
"text-color": "#3D4A5C",
|
|
"text-halo-color": "white",
|
|
"text-halo-width": 1.5
|
|
}
|
|
},
|
|
{
|
|
"id": "poi-school",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 14,
|
|
"filter": ["in", "amenity", "school", "university", "college"],
|
|
"layout": {
|
|
"icon-image": "college",
|
|
"icon-size": 0.8,
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 11,
|
|
"text-offset": [0, 1.2],
|
|
"text-anchor": "top"
|
|
},
|
|
"paint": {
|
|
"text-color": "#5A4A8A",
|
|
"text-halo-color": "white",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "poi-transit-station",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 12,
|
|
"filter": [
|
|
"any",
|
|
["==", "railway", "station"],
|
|
["==", "railway", "halt"],
|
|
["==", "railway", "tram_stop"],
|
|
["==", "station", "subway"],
|
|
["==", "amenity", "bus_station"]
|
|
],
|
|
"layout": {
|
|
"icon-image": "rail",
|
|
"icon-size": 1,
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": 11,
|
|
"text-offset": [0, 1.4],
|
|
"text-anchor": "top",
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#CC2233",
|
|
"text-halo-color": "rgba(255,255,255,0.95)",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "place-labels-area",
|
|
"type": "symbol",
|
|
"source": "local-osm-polygons",
|
|
"source-layer": "planet_osm_polygon",
|
|
"minzoom": 10,
|
|
"filter": ["has", "name"],
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": ["interpolate", ["linear"], ["zoom"], 10, 10, 14, 13],
|
|
"text-padding": 8,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#34495E",
|
|
"text-halo-color": "rgba(255,255,255,0.85)",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "place-labels-point",
|
|
"type": "symbol",
|
|
"source": "local-osm-points",
|
|
"source-layer": "planet_osm_point",
|
|
"minzoom": 10,
|
|
"filter": [
|
|
"any",
|
|
["in", "place", "city", "town", "village", "suburb", "neighbourhood", "hamlet", "locality", "quarter"],
|
|
["in", "natural", "peak", "spring"]
|
|
],
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name:ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Regular"],
|
|
"text-size": [
|
|
"interpolate", ["linear"], ["zoom"],
|
|
10, ["match", ["get", "place"], "city", 16, "town", 14, 11],
|
|
14, ["match", ["get", "place"], "city", 20, "town", 16, 13],
|
|
17, 14
|
|
],
|
|
"text-letter-spacing": ["match", ["get", "place"], "city", 0.08, "town", 0.05, 0.02],
|
|
"text-anchor": "center",
|
|
"text-padding": 10,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": ["match", ["get", "place"],
|
|
"city", "#1A2740",
|
|
"town", "#2C3E50",
|
|
"village", "#3D4F62",
|
|
"suburb", "#4A5568",
|
|
"neighbourhood","#556677",
|
|
"#607080"
|
|
],
|
|
"text-halo-color": "rgba(255,255,255,0.92)",
|
|
"text-halo-width": ["match", ["get", "place"], "city", 3, "town", 2.5, 2]
|
|
}
|
|
},
|
|
{
|
|
"id": "places-egypt-labels",
|
|
"type": "symbol",
|
|
"source": "places_egypt",
|
|
"source-layer": "places_egypt",
|
|
"minzoom": 12,
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name_ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Bold"],
|
|
"text-size": ["interpolate", ["linear"], ["zoom"], 12, 9, 16, 13],
|
|
"text-offset": [0, 1.5],
|
|
"text-anchor": "top",
|
|
"text-padding": 8,
|
|
"text-allow-overlap": false
|
|
},
|
|
"paint": {
|
|
"text-color": "#2D3748",
|
|
"text-halo-color": "rgba(255,255,255,0.9)",
|
|
"text-halo-width": 2
|
|
}
|
|
},
|
|
{
|
|
"id": "intaleq-db-label",
|
|
"type": "symbol",
|
|
"source": "intaleq_dynamic_pois",
|
|
"minzoom": 14,
|
|
"layout": {
|
|
"text-field": ["coalesce", ["get", "name_ar"], ["get", "name"], ""],
|
|
"text-font": ["Noto Sans Bold"],
|
|
"text-size": ["interpolate", ["linear"], ["zoom"], 14, 11, 17, 14],
|
|
"text-offset": [0, 1.1],
|
|
"text-anchor": "top",
|
|
"text-allow-overlap": false,
|
|
"text-ignore-placement": false,
|
|
"text-padding": 4
|
|
},
|
|
"paint": {
|
|
"text-color": "#7A5C10",
|
|
"text-halo-color": "rgba(255,255,255,0.95)",
|
|
"text-halo-width": 2
|
|
}
|
|
}
|
|
]
|
|
} |