{
  "version": 8,
  "name": "Petspark · Terra",
  "metadata": {
    "petspark:palette": {
      "cream": "#FFFAF0",
      "surface": "#F4EDDF",
      "border": "#D8CDBB",
      "ink": "#304642",
      "muted": "#66786E",
      "ochre": "#946321",
      "water": "#DCE7DF",
      "waterline": "#BCCFC4",
      "park": "#D9E2CF",
      "forest": "#CCD8C4",
      "sand": "#EFE1C5",
      "building": "#E6DCCB",
      "road": "#FFFDF8",
      "major": "#E9D6AF"
    },
    "petspark:version": "3.1",
    "petspark:note": "Natural Earth I con rilievi e fondali; nomi e confini OpenStreetMap/OpenMapTiles/OpenFreeMap."
  },
  "sources": {
    "openmaptiles": {
      "type": "vector",
      "url": "https://tiles.openfreemap.org/planet"
    },
    "terra-rilievi": {
      "type": "raster",
      "tiles": [
        "/maps/terra/tiles/{z}/{x}/{y}.jpg"
      ],
      "tileSize": 512,
      "minzoom": 0,
      "maxzoom": 4,
      "attribution": "<a href=\"https://www.naturalearthdata.com/\">Natural Earth</a>"
    }
  },
  "glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
  "layers": [
    {
      "id": "terra-fondo",
      "type": "background",
      "paint": {
        "background-color": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          "#E0EBEB",
          6.2,
          "#ECE9DC"
        ]
      }
    },
    {
      "id": "terra-raster",
      "type": "raster",
      "source": "terra-rilievi",
      "maxzoom": 6.4,
      "paint": {
        "raster-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          1,
          6.2,
          0
        ],
        "raster-saturation": -0.04,
        "raster-contrast": 0.12,
        "raster-fade-duration": 200,
        "raster-brightness-max": 0.9
      }
    },
    {
      "id": "terra-oceani",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "water",
      "filter": [
        "==",
        "class",
        "ocean"
      ],
      "maxzoom": 6.3,
      "paint": {
        "fill-color": "#185C88",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0.28,
          6.2,
          0
        ]
      }
    },
    {
      "id": "aree-urbane",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "paint": {
        "fill-color": "#E3E1D3",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "filter": [
        "in",
        "class",
        "residential",
        "commercial",
        "industrial"
      ],
      "minzoom": 8
    },
    {
      "id": "prati",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "paint": {
        "fill-color": "#D9E2CF",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "filter": [
        "in",
        "class",
        "grass",
        "farmland"
      ],
      "minzoom": 5.2
    },
    {
      "id": "boschi",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "paint": {
        "fill-color": "#CCD8C4",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "filter": [
        "==",
        "class",
        "wood"
      ],
      "minzoom": 5.2
    },
    {
      "id": "parchi",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "park",
      "paint": {
        "fill-color": "#CDDEB8",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "minzoom": 5.2
    },
    {
      "id": "verde-urbano",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landuse",
      "paint": {
        "fill-color": "#D9E2CF",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "filter": [
        "in",
        "class",
        "cemetery",
        "recreation_ground",
        "pitch"
      ],
      "minzoom": 5.2
    },
    {
      "id": "spiagge",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "landcover",
      "paint": {
        "fill-color": "#EFE1C5",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "filter": [
        "==",
        "class",
        "sand"
      ],
      "minzoom": 5.2
    },
    {
      "id": "acqua",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "water",
      "paint": {
        "fill-color": "#87BDD1",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "minzoom": 5.2
    },
    {
      "id": "fiumi",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "waterway",
      "paint": {
        "line-color": "#BCCFC4",
        "line-width": {
          "stops": [
            [
              7,
              0.3
            ],
            [
              12,
              1.1
            ],
            [
              16,
              3
            ]
          ]
        }
      },
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "minzoom": 5.2
    },
    {
      "id": "aree-pedonali",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "fill-color": "#F4EDDF",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "filter": [
        "==",
        "$type",
        "Polygon"
      ],
      "minzoom": 12
    },
    {
      "id": "edifici",
      "type": "fill",
      "source": "openmaptiles",
      "source-layer": "building",
      "paint": {
        "fill-color": "#D6D6C5",
        "fill-opacity": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          5.2,
          0,
          6.2,
          1
        ]
      },
      "minzoom": 13
    },
    {
      "id": "strade-bordo",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#D8CDBB",
        "line-width": {
          "stops": [
            [
              9,
              0.5
            ],
            [
              12,
              2
            ],
            [
              15,
              5
            ],
            [
              18,
              12
            ]
          ]
        }
      },
      "filter": [
        "all",
        [
          "==",
          "$type",
          "LineString"
        ],
        [
          "!in",
          "class",
          "rail",
          "transit",
          "ferry",
          "aerialway"
        ]
      ],
      "minzoom": 9,
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "strade",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#FFFDF8",
        "line-width": {
          "stops": [
            [
              9,
              0.2
            ],
            [
              12,
              1.1
            ],
            [
              15,
              3.5
            ],
            [
              18,
              10
            ]
          ]
        }
      },
      "filter": [
        "all",
        [
          "==",
          "$type",
          "LineString"
        ],
        [
          "!in",
          "class",
          "rail",
          "transit",
          "ferry",
          "aerialway"
        ]
      ],
      "minzoom": 9,
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "strade-principali-bordo",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#CEB88E",
        "line-width": {
          "stops": [
            [
              5,
              0.5
            ],
            [
              9,
              1.5
            ],
            [
              13,
              4
            ],
            [
              17,
              11
            ]
          ]
        }
      },
      "filter": [
        "all",
        [
          "==",
          "$type",
          "LineString"
        ],
        [
          "in",
          "class",
          "motorway",
          "trunk",
          "primary",
          "secondary"
        ]
      ],
      "minzoom": 5.2,
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "strade-principali",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#E9D6AF",
        "line-width": {
          "stops": [
            [
              5,
              0.2
            ],
            [
              9,
              0.8
            ],
            [
              13,
              2.7
            ],
            [
              17,
              9
            ]
          ]
        }
      },
      "filter": [
        "all",
        [
          "==",
          "$type",
          "LineString"
        ],
        [
          "in",
          "class",
          "motorway",
          "trunk",
          "primary",
          "secondary"
        ]
      ],
      "minzoom": 5.2,
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "sentieri",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#B7BAA4",
        "line-width": {
          "stops": [
            [
              12,
              0.3
            ],
            [
              16,
              1.2
            ]
          ]
        },
        "line-dasharray": [
          2,
          2
        ]
      },
      "filter": [
        "in",
        "class",
        "path",
        "track"
      ],
      "minzoom": 12,
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "ferrovie",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "transportation",
      "paint": {
        "line-color": "#AAB3A7",
        "line-width": {
          "stops": [
            [
              8,
              0.2
            ],
            [
              14,
              0.8
            ],
            [
              18,
              2
            ]
          ]
        },
        "line-dasharray": [
          3,
          2
        ]
      },
      "filter": [
        "in",
        "class",
        "rail",
        "transit"
      ],
      "minzoom": 8,
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "nomi-citta",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "paint": {
        "text-color": "#304642",
        "text-halo-color": "#FFFAF0",
        "text-halo-width": 1.5
      },
      "filter": [
        "in",
        "class",
        "city",
        "town"
      ],
      "minzoom": 6.8,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:it"
          ],
          [
            "get",
            "name:latin"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": {
          "stops": [
            [
              5,
              11
            ],
            [
              11,
              16
            ]
          ]
        },
        "text-max-width": 8,
        "symbol-placement": "point",
        "text-padding": 5
      }
    },
    {
      "id": "nomi-localita",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "paint": {
        "text-color": "#66786E",
        "text-halo-color": "#FFFAF0",
        "text-halo-width": 1.5
      },
      "filter": [
        "in",
        "class",
        "village",
        "suburb",
        "neighbourhood"
      ],
      "minzoom": 11,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:it"
          ],
          [
            "get",
            "name:latin"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": {
          "stops": [
            [
              11,
              11
            ],
            [
              16,
              14
            ]
          ]
        },
        "text-max-width": 8,
        "symbol-placement": "point",
        "text-padding": 5
      }
    },
    {
      "id": "nomi-strade",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "transportation_name",
      "paint": {
        "text-color": "#66786E",
        "text-halo-color": "#FFFAF0",
        "text-halo-width": 1.5
      },
      "filter": [
        "in",
        "class",
        "primary",
        "secondary",
        "tertiary",
        "minor",
        "residential"
      ],
      "minzoom": 14,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:it"
          ],
          [
            "get",
            "name:latin"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 11,
        "text-max-width": 8,
        "symbol-placement": "line",
        "text-padding": 5
      }
    },
    {
      "id": "nomi-acqua",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "water_name",
      "paint": {
        "text-color": "#718F7E",
        "text-halo-color": "#FFFAF0",
        "text-halo-width": 1.5
      },
      "minzoom": 5.2,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:it"
          ],
          [
            "get",
            "name:latin"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Italic"
        ],
        "text-size": {
          "stops": [
            [
              4,
              11
            ],
            [
              12,
              14
            ]
          ]
        },
        "text-max-width": 8,
        "symbol-placement": "point",
        "text-padding": 5
      }
    },
    {
      "id": "nomi-parchi",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "park",
      "paint": {
        "text-color": "#667C5D",
        "text-halo-color": "#FFFAF0",
        "text-halo-width": 1.5
      },
      "minzoom": 13,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:it"
          ],
          [
            "get",
            "name:latin"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Italic"
        ],
        "text-size": 11,
        "text-max-width": 8,
        "symbol-placement": "point",
        "text-padding": 5
      }
    },
    {
      "id": "confini-nazionali",
      "type": "line",
      "source": "openmaptiles",
      "source-layer": "boundary",
      "paint": {
        "line-color": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          0,
          "#EEF3DC",
          6.2,
          "#9CAA87"
        ],
        "line-width": {
          "stops": [
            [
              1,
              0.65
            ],
            [
              5,
              0.9
            ],
            [
              10,
              1.2
            ]
          ]
        },
        "line-opacity": 0.7
      },
      "filter": [
        "all",
        [
          "==",
          "admin_level",
          2
        ],
        [
          "!=",
          "maritime",
          1
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      }
    },
    {
      "id": "nomi-paesi",
      "type": "symbol",
      "source": "openmaptiles",
      "source-layer": "place",
      "paint": {
        "text-color": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          0,
          "#FFFFF4",
          6.2,
          "#304642"
        ],
        "text-halo-color": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          0,
          "rgba(12,38,49,0.72)",
          6.2,
          "#EDEBDD"
        ],
        "text-halo-width": 0.8,
        "text-halo-blur": 0.4
      },
      "filter": [
        "==",
        "class",
        "country"
      ],
      "minzoom": 0,
      "layout": {
        "text-field": [
          "coalesce",
          [
            "get",
            "name:it"
          ],
          [
            "get",
            "name:latin"
          ],
          [
            "get",
            "name"
          ]
        ],
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": {
          "stops": [
            [
              1,
              10.5
            ],
            [
              4,
              13
            ],
            [
              7,
              15
            ]
          ]
        },
        "text-max-width": 8,
        "symbol-placement": "point",
        "text-padding": 5,
        "text-letter-spacing": 0.015
      }
    }
  ]
}
