{
	"version": 8,
	"name": "Altimetria BT5M",
	"center": [1.84021, 41.72623],
	"zoom": 14,
	"bearing": 0,
	"pitch": 0,
	"sources": {
		"altim": {
		  "type": "vector",
		  "tiles": [
            "https://betaserver.icgc.cat/tileserver3/tileserver.php/alti_bt5m/{z}/{x}/{y}.pbf"
		  ],
          "maxzoom": 16,
          "attribution": "Mapa &copy; <a href='https://www.icgc.cat'>Institut Cartogràfic i Geològic de Catalunya</a>"
		}
	},
	"sprite": "https://betaserver.icgc.cat/vectortiles/sprites/maki",
    "glyphs": "https://betaserver.icgc.cat/glyphs/{fontstack}/{range}.pbf",
	"layers": [{
			"source": "altim",
			"source-layer": "corbes",
			"minzoom": 14,
			"maxzoom": 19,
			"interactive": true,
			"id": "senzilles",
			"filter": ["in", "cas", "NIV01", "NIV02", "NIV03", "NIV10", "NIV11", "NIV12", "NIV19"],
			"type": "line",
			"paint": {
				"line-color": "#A06437",
				"line-width": {
					"base": 1,
					"stops": [[14, 0.5], [15, 0.63], [16, 0.77], [17, 0.9], [18, 0.9]]
				},
				"line-opacity": {
					"base": 1,
					"stops": [[14, 0.1], [15, 0.4], [16, 0.7], [17, 1], [18, 1]]
				}
			}
		}, {
			"source": "altim",
			"source-layer": "corbes",
			"minzoom": 14,
			"maxzoom": 19,
			"interactive": true,
			"id": "mestres",
			"filter": ["in", "cas", "NIV04", "NIV05", "NIV06", "NIV13", "NIV14", "NIV15", "NIV20"],
			"type": "line",
			"paint": {
				"line-color": "#A06437",
				"line-width": {
					"base": 1,
					"stops": [[14, 1], [15, 1.26], [16, 1.54], [17, 1.8], [18, 1.8]]
				},
				"line-opacity": {
					"base": 1,
					"stops": [[14, 0.1], [15, 0.4], [16, 0.7], [17, 1], [18, 1]]
				}
			}
		}, {
			"source": "altim",
			"source-layer": "corbes",
			"minzoom": 14,
			"maxzoom": 19,
			"interactive": true,
			"id": "intercalades",
			"filter": ["in", "cas", "NIV07", "NIV08", "NIV09", "NIV16", "NIV17", "NIV18"],
			"type": "line",
			"paint": {
				"line-color": "#A06437",
				"line-width": {
					"base": 1,
					"stops": [[14, 0.5], [15, 0.63], [16, 0.77], [17, 0.9], [18, 0.9]]
				},
				"line-opacity": {
					"base": 1,
					"stops": [[14, 0.1], [15, 0.4], [16, 0.7], [17, 1], [18, 1]]
				},
				"line-dasharray": [10, 3, 2, 3]
			}
		}, {
			"id": "cotes",
			"type": "symbol",
			"source": "altim",
			"source-layer": "corbes",
			"minzoom": 16,
			"maxzoom": 19,
			"text-allow-overlap": true,
			"text-ignore-placement": true,
			"filter": ["in", "cas", "NIV01", "NIV02", "NIV03", "NIV04", "NIV05"],
			"layout": {
				"text-field": "{z}",
				"text-font": ["Open Sans Regular"],
				"text-size": {
					"stops": [[16, 8], [17, 10], [18, 12]]
				},
				"symbol-placement": "line",
				"symbol-spacing": 750
			},
			"paint": {
				"text-color": "#A06437",
				"text-halo-color": "rgba(255,255,255,0.75)",
				"text-halo-width": 1,
				"text-halo-blur": 1
			}
		}
	]
}