marhensa

VectorTileServer Styles root.json sample

Sep 30th, 2022
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.62 KB | None | 0 0
  1. {
  2. "version": 8,
  3. "name": "Bright",
  4. "metadata": {
  5. "mapbox:autocomposite": false,
  6. "mapbox:groups": {
  7. "1444849242106.713": {"collapsed": false, "name": "Places"},
  8. "1444849334699.1902": {"collapsed": true, "name": "Bridges"},
  9. "1444849345966.4436": {"collapsed": false, "name": "Roads"},
  10. "1444849354174.1904": {"collapsed": true, "name": "Tunnels"},
  11. "1444849364238.8171": {"collapsed": false, "name": "Buildings"},
  12. "1444849382550.77": {"collapsed": false, "name": "Water"},
  13. "1444849388993.3071": {"collapsed": false, "name": "Land"}
  14. },
  15. "mapbox:type": "template",
  16. "openmaptiles:mapbox:owner": "openmaptiles",
  17. "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t",
  18. "openmaptiles:version": "3.x"
  19. },
  20. "center": [0, 0],
  21. "zoom": 1,
  22. "bearing": 0,
  23. "pitch": 0,
  24. "sources": {
  25. "openmaptiles": {
  26. "type": "vector",
  27. "url": "https://web.site/labs/tileserver/someregion.json"
  28. }
  29. },
  30. "sprite": "https://openmaptiles.github.io/osm-bright-gl-style/sprite",
  31. "glyphs": "https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key={yourkey}",
  32. "layers": [
  33. {
  34. "id": "background",
  35. "type": "background",
  36. "paint": {"background-color": "#f8f4f0"}
  37. },
  38. {
  39. "id": "landcover-glacier",
  40. "type": "fill",
  41. "metadata": {"mapbox:group": "1444849388993.3071"},
  42. "source": "openmaptiles",
  43. "source-layer": "landcover",
  44. "filter": ["==", "subclass", "glacier"],
  45. "layout": {"visibility": "visible"},
  46. "paint": {
  47. "fill-color": "#fff",
  48. "fill-opacity": {"base": 1, "stops": [[0, 0.9], [10, 0.3]]}
  49. }
  50. },
  51. {
  52. "id": "landuse-residential",
  53. "type": "fill",
  54. "metadata": {"mapbox:group": "1444849388993.3071"},
  55. "source": "openmaptiles",
  56. "source-layer": "landuse",
  57. "filter": [
  58. "all",
  59. ["in", "class", "residential", "suburb", "neighbourhood"]
  60. ],
  61. "layout": {"visibility": "visible"},
  62. "paint": {
  63. "fill-color": {
  64. "base": 1,
  65. "stops": [
  66. [12, "hsla(30, 19%, 90%, 0.4)"],
  67. [16, "hsla(30, 19%, 90%, 0.2)"]
  68. ]
  69. }
  70. }
  71. },
  72. {
  73. "id": "landuse-commercial",
  74. "type": "fill",
  75. "metadata": {"mapbox:group": "1444849388993.3071"},
  76. "source": "openmaptiles",
  77. "source-layer": "landuse",
  78. "filter": [
  79. "all",
  80. ["==", "$type", "Polygon"],
  81. ["==", "class", "commercial"]
  82. ],
  83. "layout": {"visibility": "visible"},
  84. "paint": {"fill-color": "hsla(0, 60%, 87%, 0.23)"}
  85. },
  86. {
  87. "id": "landuse-industrial",
  88. "type": "fill",
  89. "source": "openmaptiles",
  90. "source-layer": "landuse",
  91. "filter": [
  92. "all",
  93. ["==", "$type", "Polygon"],
  94. ["in", "class", "industrial", "garages", "dam"]
  95. ],
  96. "layout": {"visibility": "visible"},
  97. "paint": {"fill-color": "hsla(49, 100%, 88%, 0.34)"}
  98. },
  99. {
  100. "id": "landuse-cemetery",
  101. "type": "fill",
  102. "metadata": {"mapbox:group": "1444849388993.3071"},
  103. "source": "openmaptiles",
  104. "source-layer": "landuse",
  105. "filter": ["==", "class", "cemetery"],
  106. "paint": {"fill-color": "#e0e4dd"}
  107. },
  108. {
  109. "id": "landuse-hospital",
  110. "type": "fill",
  111. "metadata": {"mapbox:group": "1444849388993.3071"},
  112. "source": "openmaptiles",
  113. "source-layer": "landuse",
  114. "filter": ["==", "class", "hospital"],
  115. "paint": {"fill-color": "#fde"}
  116. },
  117. {
  118. "id": "landuse-school",
  119. "type": "fill",
  120. "metadata": {"mapbox:group": "1444849388993.3071"},
  121. "source": "openmaptiles",
  122. "source-layer": "landuse",
  123. "filter": ["==", "class", "school"],
  124. "paint": {"fill-color": "#f0e8f8"}
  125. },
  126. {
  127. "id": "landuse-railway",
  128. "type": "fill",
  129. "metadata": {"mapbox:group": "1444849388993.3071"},
  130. "source": "openmaptiles",
  131. "source-layer": "landuse",
  132. "filter": ["==", "class", "railway"],
  133. "layout": {"visibility": "visible"},
  134. "paint": {"fill-color": "hsla(30, 19%, 90%, 0.4)"}
  135. },
  136. {
  137. "id": "landcover-wood",
  138. "type": "fill",
  139. "metadata": {"mapbox:group": "1444849388993.3071"},
  140. "source": "openmaptiles",
  141. "source-layer": "landcover",
  142. "filter": ["==", "class", "wood"],
  143. "paint": {
  144. "fill-antialias": {"base": 1, "stops": [[0, false], [9, true]]},
  145. "fill-color": "#6a4",
  146. "fill-opacity": 0.1,
  147. "fill-outline-color": "hsla(0, 0%, 0%, 0.03)"
  148. }
  149. },
  150. {
  151. "id": "landcover-grass",
  152. "type": "fill",
  153. "metadata": {"mapbox:group": "1444849388993.3071"},
  154. "source": "openmaptiles",
  155. "source-layer": "landcover",
  156. "filter": ["==", "class", "grass"],
  157. "paint": {"fill-color": "#d8e8c8", "fill-opacity": 1}
  158. },
  159. {
  160. "id": "landcover-grass-park",
  161. "type": "fill",
  162. "metadata": {"mapbox:group": "1444849388993.3071"},
  163. "source": "openmaptiles",
  164. "source-layer": "park",
  165. "filter": ["==", "class", "public_park"],
  166. "paint": {"fill-color": "#d8e8c8", "fill-opacity": 0.8}
  167. },
  168. {
  169. "id": "waterway_tunnel",
  170. "type": "line",
  171. "source": "openmaptiles",
  172. "source-layer": "waterway",
  173. "minzoom": 14,
  174. "filter": [
  175. "all",
  176. ["in", "class", "river", "stream", "canal"],
  177. ["==", "brunnel", "tunnel"]
  178. ],
  179. "layout": {"line-cap": "round", "visibility": "visible"},
  180. "paint": {
  181. "line-color": "#a0c8f0",
  182. "line-dasharray": [2, 4],
  183. "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
  184. }
  185. },
  186. {
  187. "id": "waterway-other",
  188. "type": "line",
  189. "metadata": {"mapbox:group": "1444849382550.77"},
  190. "source": "openmaptiles",
  191. "source-layer": "waterway",
  192. "filter": [
  193. "all",
  194. ["!in", "class", "canal", "river", "stream"],
  195. ["==", "intermittent", 0]
  196. ],
  197. "layout": {"line-cap": "round", "visibility": "visible"},
  198. "paint": {
  199. "line-color": "#a0c8f0",
  200. "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]}
  201. }
  202. },
  203. {
  204. "id": "waterway-other-intermittent",
  205. "type": "line",
  206. "metadata": {"mapbox:group": "1444849382550.77"},
  207. "source": "openmaptiles",
  208. "source-layer": "waterway",
  209. "filter": [
  210. "all",
  211. ["!in", "class", "canal", "river", "stream"],
  212. ["==", "intermittent", 1]
  213. ],
  214. "layout": {"line-cap": "round", "visibility": "visible"},
  215. "paint": {
  216. "line-color": "#a0c8f0",
  217. "line-dasharray": [4, 3],
  218. "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]}
  219. }
  220. },
  221. {
  222. "id": "waterway-stream-canal",
  223. "type": "line",
  224. "metadata": {"mapbox:group": "1444849382550.77"},
  225. "source": "openmaptiles",
  226. "source-layer": "waterway",
  227. "filter": [
  228. "all",
  229. ["in", "class", "canal", "stream"],
  230. ["!=", "brunnel", "tunnel"],
  231. ["==", "intermittent", 0]
  232. ],
  233. "layout": {"line-cap": "round", "visibility": "visible"},
  234. "paint": {
  235. "line-color": "#a0c8f0",
  236. "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
  237. }
  238. },
  239. {
  240. "id": "waterway-stream-canal-intermittent",
  241. "type": "line",
  242. "metadata": {"mapbox:group": "1444849382550.77"},
  243. "source": "openmaptiles",
  244. "source-layer": "waterway",
  245. "filter": [
  246. "all",
  247. ["in", "class", "canal", "stream"],
  248. ["!=", "brunnel", "tunnel"],
  249. ["==", "intermittent", 1]
  250. ],
  251. "layout": {"line-cap": "round", "visibility": "visible"},
  252. "paint": {
  253. "line-color": "#a0c8f0",
  254. "line-dasharray": [4, 3],
  255. "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
  256. }
  257. },
  258. {
  259. "id": "waterway-river",
  260. "type": "line",
  261. "metadata": {"mapbox:group": "1444849382550.77"},
  262. "source": "openmaptiles",
  263. "source-layer": "waterway",
  264. "filter": [
  265. "all",
  266. ["==", "class", "river"],
  267. ["!=", "brunnel", "tunnel"],
  268. ["==", "intermittent", 0]
  269. ],
  270. "layout": {"line-cap": "round", "visibility": "visible"},
  271. "paint": {
  272. "line-color": "#a0c8f0",
  273. "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]}
  274. }
  275. },
  276. {
  277. "id": "waterway-river-intermittent",
  278. "type": "line",
  279. "metadata": {"mapbox:group": "1444849382550.77"},
  280. "source": "openmaptiles",
  281. "source-layer": "waterway",
  282. "filter": [
  283. "all",
  284. ["==", "class", "river"],
  285. ["!=", "brunnel", "tunnel"],
  286. ["==", "intermittent", 1]
  287. ],
  288. "layout": {"line-cap": "round", "visibility": "visible"},
  289. "paint": {
  290. "line-color": "#a0c8f0",
  291. "line-dasharray": [3, 2.5],
  292. "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]}
  293. }
  294. },
  295. {
  296. "id": "water-offset",
  297. "type": "fill",
  298. "metadata": {"mapbox:group": "1444849382550.77"},
  299. "source": "openmaptiles",
  300. "source-layer": "water",
  301. "maxzoom": 8,
  302. "filter": ["==", "$type", "Polygon"],
  303. "layout": {"visibility": "visible"},
  304. "paint": {
  305. "fill-color": "#a0c8f0",
  306. "fill-opacity": 1,
  307. "fill-translate": {"base": 1, "stops": [[6, [2, 0]], [8, [0, 0]]]}
  308. }
  309. },
  310. {
  311. "id": "water",
  312. "type": "fill",
  313. "metadata": {"mapbox:group": "1444849382550.77"},
  314. "source": "openmaptiles",
  315. "source-layer": "water",
  316. "filter": ["all", ["!=", "intermittent", 1], ["!=", "brunnel", "tunnel"]],
  317. "layout": {"visibility": "visible"},
  318. "paint": {"fill-color": "hsl(210, 67%, 85%)"}
  319. },
  320. {
  321. "id": "water-intermittent",
  322. "type": "fill",
  323. "metadata": {"mapbox:group": "1444849382550.77"},
  324. "source": "openmaptiles",
  325. "source-layer": "water",
  326. "filter": ["all", ["==", "intermittent", 1]],
  327. "layout": {"visibility": "visible"},
  328. "paint": {"fill-color": "hsl(210, 67%, 85%)", "fill-opacity": 0.7}
  329. },
  330. {
  331. "id": "water-pattern",
  332. "type": "fill",
  333. "metadata": {"mapbox:group": "1444849382550.77"},
  334. "source": "openmaptiles",
  335. "source-layer": "water",
  336. "filter": ["all"],
  337. "layout": {"visibility": "visible"},
  338. "paint": {"fill-pattern": "wave", "fill-translate": [0, 2.5]}
  339. },
  340. {
  341. "id": "landcover-ice-shelf",
  342. "type": "fill",
  343. "metadata": {"mapbox:group": "1444849382550.77"},
  344. "source": "openmaptiles",
  345. "source-layer": "landcover",
  346. "filter": ["==", "subclass", "ice_shelf"],
  347. "layout": {"visibility": "visible"},
  348. "paint": {
  349. "fill-color": "#fff",
  350. "fill-opacity": {"base": 1, "stops": [[0, 0.9], [10, 0.3]]}
  351. }
  352. },
  353. {
  354. "id": "landcover-sand",
  355. "type": "fill",
  356. "metadata": {"mapbox:group": "1444849382550.77"},
  357. "source": "openmaptiles",
  358. "source-layer": "landcover",
  359. "filter": ["all", ["==", "class", "sand"]],
  360. "layout": {"visibility": "visible"},
  361. "paint": {"fill-color": "rgba(245, 238, 188, 1)", "fill-opacity": 1}
  362. },
  363. {
  364. "id": "building",
  365. "type": "fill",
  366. "metadata": {"mapbox:group": "1444849364238.8171"},
  367. "source": "openmaptiles",
  368. "source-layer": "building",
  369. "paint": {
  370. "fill-antialias": true,
  371. "fill-color": {"base": 1, "stops": [[15.5, "#f2eae2"], [16, "#dfdbd7"]]}
  372. }
  373. },
  374. {
  375. "id": "building-top",
  376. "type": "fill",
  377. "metadata": {"mapbox:group": "1444849364238.8171"},
  378. "source": "openmaptiles",
  379. "source-layer": "building",
  380. "layout": {"visibility": "visible"},
  381. "paint": {
  382. "fill-color": "#f2eae2",
  383. "fill-opacity": {"base": 1, "stops": [[13, 0], [16, 1]]},
  384. "fill-outline-color": "#dfdbd7",
  385. "fill-translate": {"base": 1, "stops": [[14, [0, 0]], [16, [-2, -2]]]}
  386. }
  387. },
  388. {
  389. "id": "tunnel-service-track-casing",
  390. "type": "line",
  391. "metadata": {"mapbox:group": "1444849354174.1904"},
  392. "source": "openmaptiles",
  393. "source-layer": "transportation",
  394. "filter": [
  395. "all",
  396. ["==", "brunnel", "tunnel"],
  397. ["in", "class", "service", "track"]
  398. ],
  399. "layout": {"line-join": "round"},
  400. "paint": {
  401. "line-color": "#cfcdca",
  402. "line-dasharray": [0.5, 0.25],
  403. "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
  404. }
  405. },
  406. {
  407. "id": "tunnel-motorway-link-casing",
  408. "type": "line",
  409. "metadata": {"mapbox:group": "1444849354174.1904"},
  410. "source": "openmaptiles",
  411. "source-layer": "transportation",
  412. "filter": [
  413. "all",
  414. ["==", "brunnel", "tunnel"],
  415. ["==", "class", "motorway"],
  416. ["==", "ramp", 1]
  417. ],
  418. "layout": {"line-join": "round", "visibility": "visible"},
  419. "paint": {
  420. "line-color": "rgba(200, 147, 102, 1)",
  421. "line-dasharray": [0.5, 0.25],
  422. "line-width": {
  423. "base": 1.2,
  424. "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
  425. }
  426. }
  427. },
  428. {
  429. "id": "tunnel-minor-casing",
  430. "type": "line",
  431. "metadata": {"mapbox:group": "1444849354174.1904"},
  432. "source": "openmaptiles",
  433. "source-layer": "transportation",
  434. "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "minor"]],
  435. "layout": {"line-join": "round"},
  436. "paint": {
  437. "line-color": "#cfcdca",
  438. "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
  439. "line-width": {
  440. "base": 1.2,
  441. "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
  442. },
  443. "line-dasharray": [0.5, 0.25]
  444. }
  445. },
  446. {
  447. "id": "tunnel-link-casing",
  448. "type": "line",
  449. "metadata": {"mapbox:group": "1444849354174.1904"},
  450. "source": "openmaptiles",
  451. "source-layer": "transportation",
  452. "filter": [
  453. "all",
  454. ["==", "brunnel", "tunnel"],
  455. ["in", "class", "trunk", "primary", "secondary", "tertiary"],
  456. ["==", "ramp", 1]
  457. ],
  458. "layout": {"line-join": "round"},
  459. "paint": {
  460. "line-color": "#e9ac77",
  461. "line-opacity": 1,
  462. "line-width": {
  463. "base": 1.2,
  464. "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
  465. },
  466. "line-dasharray": [0.5, 0.25]
  467. }
  468. },
  469. {
  470. "id": "tunnel-secondary-tertiary-casing",
  471. "type": "line",
  472. "metadata": {"mapbox:group": "1444849354174.1904"},
  473. "source": "openmaptiles",
  474. "source-layer": "transportation",
  475. "filter": [
  476. "all",
  477. ["==", "brunnel", "tunnel"],
  478. ["in", "class", "secondary", "tertiary"],
  479. ["!=", "ramp", 1]
  480. ],
  481. "layout": {"line-join": "round"},
  482. "paint": {
  483. "line-color": "#e9ac77",
  484. "line-opacity": 1,
  485. "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]},
  486. "line-dasharray": [0.5, 0.25]
  487. }
  488. },
  489. {
  490. "id": "tunnel-trunk-primary-casing",
  491. "type": "line",
  492. "metadata": {"mapbox:group": "1444849354174.1904"},
  493. "source": "openmaptiles",
  494. "source-layer": "transportation",
  495. "filter": [
  496. "all",
  497. ["==", "brunnel", "tunnel"],
  498. ["in", "class", "primary", "trunk"],
  499. ["!=", "ramp", 1]
  500. ],
  501. "layout": {"line-join": "round"},
  502. "paint": {
  503. "line-color": "#e9ac77",
  504. "line-width": {
  505. "base": 1.2,
  506. "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
  507. }
  508. }
  509. },
  510. {
  511. "id": "tunnel-motorway-casing",
  512. "type": "line",
  513. "metadata": {"mapbox:group": "1444849354174.1904"},
  514. "source": "openmaptiles",
  515. "source-layer": "transportation",
  516. "filter": [
  517. "all",
  518. ["==", "brunnel", "tunnel"],
  519. ["==", "class", "motorway"],
  520. ["!=", "ramp", 1]
  521. ],
  522. "layout": {"line-join": "round", "visibility": "visible"},
  523. "paint": {
  524. "line-color": "#e9ac77",
  525. "line-dasharray": [0.5, 0.25],
  526. "line-width": {
  527. "base": 1.2,
  528. "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
  529. }
  530. }
  531. },
  532. {
  533. "id": "tunnel-path",
  534. "type": "line",
  535. "metadata": {"mapbox:group": "1444849354174.1904"},
  536. "source": "openmaptiles",
  537. "source-layer": "transportation",
  538. "filter": [
  539. "all",
  540. ["==", "$type", "LineString"],
  541. ["==", "brunnel", "tunnel"],
  542. ["==", "class", "path"]
  543. ],
  544. "paint": {
  545. "line-color": "#cba",
  546. "line-dasharray": [1.5, 0.75],
  547. "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
  548. }
  549. },
  550. {
  551. "id": "tunnel-motorway-link",
  552. "type": "line",
  553. "metadata": {"mapbox:group": "1444849354174.1904"},
  554. "source": "openmaptiles",
  555. "source-layer": "transportation",
  556. "filter": [
  557. "all",
  558. ["==", "brunnel", "tunnel"],
  559. ["==", "class", "motorway"],
  560. ["==", "ramp", 1]
  561. ],
  562. "layout": {"line-join": "round", "visibility": "visible"},
  563. "paint": {
  564. "line-color": "rgba(244, 209, 158, 1)",
  565. "line-width": {
  566. "base": 1.2,
  567. "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
  568. }
  569. }
  570. },
  571. {
  572. "id": "tunnel-service-track",
  573. "type": "line",
  574. "metadata": {"mapbox:group": "1444849354174.1904"},
  575. "source": "openmaptiles",
  576. "source-layer": "transportation",
  577. "filter": [
  578. "all",
  579. ["==", "brunnel", "tunnel"],
  580. ["in", "class", "service", "track"]
  581. ],
  582. "layout": {"line-join": "round"},
  583. "paint": {
  584. "line-color": "#fff",
  585. "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]}
  586. }
  587. },
  588. {
  589. "id": "tunnel-link",
  590. "type": "line",
  591. "metadata": {"mapbox:group": "1444849354174.1904"},
  592. "source": "openmaptiles",
  593. "source-layer": "transportation",
  594. "filter": [
  595. "all",
  596. ["==", "brunnel", "tunnel"],
  597. ["in", "class", "trunk", "primary", "secondary", "tertiary"],
  598. ["==", "ramp", 1]
  599. ],
  600. "layout": {"line-join": "round"},
  601. "paint": {
  602. "line-color": "#fff4c6",
  603. "line-width": {
  604. "base": 1.2,
  605. "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
  606. }
  607. }
  608. },
  609. {
  610. "id": "tunnel-minor",
  611. "type": "line",
  612. "metadata": {"mapbox:group": "1444849354174.1904"},
  613. "source": "openmaptiles",
  614. "source-layer": "transportation",
  615. "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "minor"]],
  616. "layout": {"line-join": "round"},
  617. "paint": {
  618. "line-color": "#fff",
  619. "line-opacity": 1,
  620. "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
  621. }
  622. },
  623. {
  624. "id": "tunnel-secondary-tertiary",
  625. "type": "line",
  626. "metadata": {"mapbox:group": "1444849354174.1904"},
  627. "source": "openmaptiles",
  628. "source-layer": "transportation",
  629. "filter": [
  630. "all",
  631. ["==", "brunnel", "tunnel"],
  632. ["in", "class", "secondary", "tertiary"],
  633. ["!=", "ramp", 1]
  634. ],
  635. "layout": {"line-join": "round"},
  636. "paint": {
  637. "line-color": "#fff4c6",
  638. "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]}
  639. }
  640. },
  641. {
  642. "id": "tunnel-trunk-primary",
  643. "type": "line",
  644. "metadata": {"mapbox:group": "1444849354174.1904"},
  645. "source": "openmaptiles",
  646. "source-layer": "transportation",
  647. "filter": [
  648. "all",
  649. ["==", "brunnel", "tunnel"],
  650. ["in", "class", "primary", "trunk"],
  651. ["!=", "ramp", 1]
  652. ],
  653. "layout": {"line-join": "round"},
  654. "paint": {
  655. "line-color": "#fff4c6",
  656. "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
  657. }
  658. },
  659. {
  660. "id": "tunnel-motorway",
  661. "type": "line",
  662. "metadata": {"mapbox:group": "1444849354174.1904"},
  663. "source": "openmaptiles",
  664. "source-layer": "transportation",
  665. "filter": [
  666. "all",
  667. ["==", "brunnel", "tunnel"],
  668. ["==", "class", "motorway"],
  669. ["!=", "ramp", 1]
  670. ],
  671. "layout": {"line-join": "round", "visibility": "visible"},
  672. "paint": {
  673. "line-color": "#ffdaa6",
  674. "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
  675. }
  676. },
  677. {
  678. "id": "tunnel-railway",
  679. "type": "line",
  680. "metadata": {"mapbox:group": "1444849354174.1904"},
  681. "source": "openmaptiles",
  682. "source-layer": "transportation",
  683. "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "rail"]],
  684. "paint": {
  685. "line-color": "#bbb",
  686. "line-dasharray": [2, 2],
  687. "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
  688. }
  689. },
  690. {
  691. "id": "ferry",
  692. "type": "line",
  693. "source": "openmaptiles",
  694. "source-layer": "transportation",
  695. "filter": ["all", ["in", "class", "ferry"]],
  696. "layout": {"line-join": "round", "visibility": "visible"},
  697. "paint": {
  698. "line-color": "rgba(108, 159, 182, 1)",
  699. "line-dasharray": [2, 2],
  700. "line-width": 1.1
  701. }
  702. },
  703. {
  704. "id": "aeroway-taxiway-casing",
  705. "type": "line",
  706. "metadata": {"mapbox:group": "1444849345966.4436"},
  707. "source": "openmaptiles",
  708. "source-layer": "aeroway",
  709. "minzoom": 12,
  710. "filter": ["all", ["in", "class", "taxiway"]],
  711. "layout": {
  712. "line-cap": "round",
  713. "line-join": "round",
  714. "visibility": "visible"
  715. },
  716. "paint": {
  717. "line-color": "rgba(153, 153, 153, 1)",
  718. "line-opacity": 1,
  719. "line-width": {"base": 1.5, "stops": [[11, 2], [17, 12]]}
  720. }
  721. },
  722. {
  723. "id": "aeroway-runway-casing",
  724. "type": "line",
  725. "metadata": {"mapbox:group": "1444849345966.4436"},
  726. "source": "openmaptiles",
  727. "source-layer": "aeroway",
  728. "minzoom": 12,
  729. "filter": ["all", ["in", "class", "runway"]],
  730. "layout": {
  731. "line-cap": "round",
  732. "line-join": "round",
  733. "visibility": "visible"
  734. },
  735. "paint": {
  736. "line-color": "rgba(153, 153, 153, 1)",
  737. "line-opacity": 1,
  738. "line-width": {"base": 1.5, "stops": [[11, 5], [17, 55]]}
  739. }
  740. },
  741. {
  742. "id": "aeroway-area",
  743. "type": "fill",
  744. "metadata": {"mapbox:group": "1444849345966.4436"},
  745. "source": "openmaptiles",
  746. "source-layer": "aeroway",
  747. "minzoom": 4,
  748. "filter": [
  749. "all",
  750. ["==", "$type", "Polygon"],
  751. ["in", "class", "runway", "taxiway"]
  752. ],
  753. "layout": {"visibility": "visible"},
  754. "paint": {
  755. "fill-color": "rgba(255, 255, 255, 1)",
  756. "fill-opacity": {"base": 1, "stops": [[13, 0], [14, 1]]}
  757. }
  758. },
  759. {
  760. "id": "aeroway-taxiway",
  761. "type": "line",
  762. "metadata": {"mapbox:group": "1444849345966.4436"},
  763. "source": "openmaptiles",
  764. "source-layer": "aeroway",
  765. "minzoom": 4,
  766. "filter": [
  767. "all",
  768. ["in", "class", "taxiway"],
  769. ["==", "$type", "LineString"]
  770. ],
  771. "layout": {
  772. "line-cap": "round",
  773. "line-join": "round",
  774. "visibility": "visible"
  775. },
  776. "paint": {
  777. "line-color": "rgba(255, 255, 255, 1)",
  778. "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
  779. "line-width": {"base": 1.5, "stops": [[11, 1], [17, 10]]}
  780. }
  781. },
  782. {
  783. "id": "aeroway-runway",
  784. "type": "line",
  785. "metadata": {"mapbox:group": "1444849345966.4436"},
  786. "source": "openmaptiles",
  787. "source-layer": "aeroway",
  788. "minzoom": 4,
  789. "filter": [
  790. "all",
  791. ["in", "class", "runway"],
  792. ["==", "$type", "LineString"]
  793. ],
  794. "layout": {
  795. "line-cap": "round",
  796. "line-join": "round",
  797. "visibility": "visible"
  798. },
  799. "paint": {
  800. "line-color": "rgba(255, 255, 255, 1)",
  801. "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
  802. "line-width": {"base": 1.5, "stops": [[11, 4], [17, 50]]}
  803. }
  804. },
  805. {
  806. "id": "road_area_pier",
  807. "type": "fill",
  808. "metadata": {},
  809. "source": "openmaptiles",
  810. "source-layer": "transportation",
  811. "filter": ["all", ["==", "$type", "Polygon"], ["==", "class", "pier"]],
  812. "layout": {"visibility": "visible"},
  813. "paint": {"fill-antialias": true, "fill-color": "#f8f4f0"}
  814. },
  815. {
  816. "id": "road_pier",
  817. "type": "line",
  818. "metadata": {},
  819. "source": "openmaptiles",
  820. "source-layer": "transportation",
  821. "filter": ["all", ["==", "$type", "LineString"], ["in", "class", "pier"]],
  822. "layout": {"line-cap": "round", "line-join": "round"},
  823. "paint": {
  824. "line-color": "#f8f4f0",
  825. "line-width": {"base": 1.2, "stops": [[15, 1], [17, 4]]}
  826. }
  827. },
  828. {
  829. "id": "highway-area",
  830. "type": "fill",
  831. "metadata": {"mapbox:group": "1444849345966.4436"},
  832. "source": "openmaptiles",
  833. "source-layer": "transportation",
  834. "filter": ["all", ["==", "$type", "Polygon"], ["!in", "class", "pier"]],
  835. "layout": {"visibility": "visible"},
  836. "paint": {
  837. "fill-antialias": false,
  838. "fill-color": "hsla(0, 0%, 89%, 0.56)",
  839. "fill-opacity": 0.9,
  840. "fill-outline-color": "#cfcdca"
  841. }
  842. },
  843. {
  844. "id": "highway-motorway-link-casing",
  845. "type": "line",
  846. "metadata": {"mapbox:group": "1444849345966.4436"},
  847. "source": "openmaptiles",
  848. "source-layer": "transportation",
  849. "minzoom": 12,
  850. "filter": [
  851. "all",
  852. ["!in", "brunnel", "bridge", "tunnel"],
  853. ["==", "class", "motorway"],
  854. ["==", "ramp", 1]
  855. ],
  856. "layout": {"line-cap": "round", "line-join": "round"},
  857. "paint": {
  858. "line-color": "#e9ac77",
  859. "line-opacity": 1,
  860. "line-width": {
  861. "base": 1.2,
  862. "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
  863. }
  864. }
  865. },
  866. {
  867. "id": "highway-link-casing",
  868. "type": "line",
  869. "metadata": {"mapbox:group": "1444849345966.4436"},
  870. "source": "openmaptiles",
  871. "source-layer": "transportation",
  872. "minzoom": 13,
  873. "filter": [
  874. "all",
  875. ["!in", "brunnel", "bridge", "tunnel"],
  876. ["in", "class", "trunk", "primary", "secondary", "tertiary"],
  877. ["==", "ramp", 1]
  878. ],
  879. "layout": {
  880. "line-cap": "round",
  881. "line-join": "round",
  882. "visibility": "visible"
  883. },
  884. "paint": {
  885. "line-color": "#e9ac77",
  886. "line-opacity": 1,
  887. "line-width": {
  888. "base": 1.2,
  889. "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
  890. }
  891. }
  892. },
  893. {
  894. "id": "highway-minor-casing",
  895. "type": "line",
  896. "metadata": {"mapbox:group": "1444849345966.4436"},
  897. "source": "openmaptiles",
  898. "source-layer": "transportation",
  899. "filter": [
  900. "all",
  901. ["==", "$type", "LineString"],
  902. ["!=", "brunnel", "tunnel"],
  903. ["in", "class", "minor", "service", "track"]
  904. ],
  905. "layout": {"line-cap": "round", "line-join": "round"},
  906. "paint": {
  907. "line-color": "#cfcdca",
  908. "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
  909. "line-width": {
  910. "base": 1.2,
  911. "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
  912. }
  913. }
  914. },
  915. {
  916. "id": "highway-secondary-tertiary-casing",
  917. "type": "line",
  918. "metadata": {"mapbox:group": "1444849345966.4436"},
  919. "source": "openmaptiles",
  920. "source-layer": "transportation",
  921. "filter": [
  922. "all",
  923. ["!in", "brunnel", "bridge", "tunnel"],
  924. ["in", "class", "secondary", "tertiary"],
  925. ["!=", "ramp", 1]
  926. ],
  927. "layout": {
  928. "line-cap": "butt",
  929. "line-join": "round",
  930. "visibility": "visible"
  931. },
  932. "paint": {
  933. "line-color": "#e9ac77",
  934. "line-opacity": 1,
  935. "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
  936. }
  937. },
  938. {
  939. "id": "highway-primary-casing",
  940. "type": "line",
  941. "metadata": {"mapbox:group": "1444849345966.4436"},
  942. "source": "openmaptiles",
  943. "source-layer": "transportation",
  944. "minzoom": 5,
  945. "filter": [
  946. "all",
  947. ["!in", "brunnel", "bridge", "tunnel"],
  948. ["in", "class", "primary"],
  949. ["!=", "ramp", 1]
  950. ],
  951. "layout": {
  952. "line-cap": "butt",
  953. "line-join": "round",
  954. "visibility": "visible"
  955. },
  956. "paint": {
  957. "line-color": "#e9ac77",
  958. "line-opacity": {"stops": [[7, 0], [8, 1]]},
  959. "line-width": {
  960. "base": 1.2,
  961. "stops": [[7, 0], [8, 0.6], [9, 1.5], [20, 22]]
  962. }
  963. }
  964. },
  965. {
  966. "id": "highway-trunk-casing",
  967. "type": "line",
  968. "metadata": {"mapbox:group": "1444849345966.4436"},
  969. "source": "openmaptiles",
  970. "source-layer": "transportation",
  971. "minzoom": 5,
  972. "filter": [
  973. "all",
  974. ["!in", "brunnel", "bridge", "tunnel"],
  975. ["in", "class", "trunk"],
  976. ["!=", "ramp", 1]
  977. ],
  978. "layout": {
  979. "line-cap": "butt",
  980. "line-join": "round",
  981. "visibility": "visible"
  982. },
  983. "paint": {
  984. "line-color": "#e9ac77",
  985. "line-opacity": {"stops": [[5, 0], [6, 1]]},
  986. "line-width": {
  987. "base": 1.2,
  988. "stops": [[5, 0], [6, 0.6], [7, 1.5], [20, 22]]
  989. }
  990. }
  991. },
  992. {
  993. "id": "highway-motorway-casing",
  994. "type": "line",
  995. "metadata": {"mapbox:group": "1444849345966.4436"},
  996. "source": "openmaptiles",
  997. "source-layer": "transportation",
  998. "minzoom": 4,
  999. "filter": [
  1000. "all",
  1001. ["!in", "brunnel", "bridge", "tunnel"],
  1002. ["==", "class", "motorway"],
  1003. ["!=", "ramp", 1]
  1004. ],
  1005. "layout": {
  1006. "line-cap": "butt",
  1007. "line-join": "round",
  1008. "visibility": "visible"
  1009. },
  1010. "paint": {
  1011. "line-color": "#e9ac77",
  1012. "line-opacity": {"stops": [[4, 0], [5, 1]]},
  1013. "line-width": {
  1014. "base": 1.2,
  1015. "stops": [[4, 0], [5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
  1016. }
  1017. }
  1018. },
  1019. {
  1020. "id": "highway-path",
  1021. "type": "line",
  1022. "metadata": {"mapbox:group": "1444849345966.4436"},
  1023. "source": "openmaptiles",
  1024. "source-layer": "transportation",
  1025. "filter": [
  1026. "all",
  1027. ["==", "$type", "LineString"],
  1028. ["!in", "brunnel", "bridge", "tunnel"],
  1029. ["==", "class", "path"]
  1030. ],
  1031. "paint": {
  1032. "line-color": "#cba",
  1033. "line-dasharray": [1.5, 0.75],
  1034. "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
  1035. }
  1036. },
  1037. {
  1038. "id": "highway-motorway-link",
  1039. "type": "line",
  1040. "metadata": {"mapbox:group": "1444849345966.4436"},
  1041. "source": "openmaptiles",
  1042. "source-layer": "transportation",
  1043. "minzoom": 12,
  1044. "filter": [
  1045. "all",
  1046. ["!in", "brunnel", "bridge", "tunnel"],
  1047. ["==", "class", "motorway"],
  1048. ["==", "ramp", 1]
  1049. ],
  1050. "layout": {"line-cap": "round", "line-join": "round"},
  1051. "paint": {
  1052. "line-color": "#fc8",
  1053. "line-width": {
  1054. "base": 1.2,
  1055. "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
  1056. }
  1057. }
  1058. },
  1059. {
  1060. "id": "highway-link",
  1061. "type": "line",
  1062. "metadata": {"mapbox:group": "1444849345966.4436"},
  1063. "source": "openmaptiles",
  1064. "source-layer": "transportation",
  1065. "minzoom": 13,
  1066. "filter": [
  1067. "all",
  1068. ["!in", "brunnel", "bridge", "tunnel"],
  1069. ["in", "class", "trunk", "primary", "secondary", "tertiary"],
  1070. ["==", "ramp", 1]
  1071. ],
  1072. "layout": {
  1073. "line-cap": "round",
  1074. "line-join": "round",
  1075. "visibility": "visible"
  1076. },
  1077. "paint": {
  1078. "line-color": "#fea",
  1079. "line-width": {
  1080. "base": 1.2,
  1081. "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
  1082. }
  1083. }
  1084. },
  1085. {
  1086. "id": "highway-minor",
  1087. "type": "line",
  1088. "metadata": {"mapbox:group": "1444849345966.4436"},
  1089. "source": "openmaptiles",
  1090. "source-layer": "transportation",
  1091. "filter": [
  1092. "all",
  1093. ["==", "$type", "LineString"],
  1094. ["!=", "brunnel", "tunnel"],
  1095. ["in", "class", "minor", "service", "track"]
  1096. ],
  1097. "layout": {"line-cap": "round", "line-join": "round"},
  1098. "paint": {
  1099. "line-color": "#fff",
  1100. "line-opacity": 1,
  1101. "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
  1102. }
  1103. },
  1104. {
  1105. "id": "highway-secondary-tertiary",
  1106. "type": "line",
  1107. "metadata": {"mapbox:group": "1444849345966.4436"},
  1108. "source": "openmaptiles",
  1109. "source-layer": "transportation",
  1110. "filter": [
  1111. "all",
  1112. ["!in", "brunnel", "bridge", "tunnel"],
  1113. ["in", "class", "secondary", "tertiary"],
  1114. ["!=", "ramp", 1]
  1115. ],
  1116. "layout": {
  1117. "line-cap": "round",
  1118. "line-join": "round",
  1119. "visibility": "visible"
  1120. },
  1121. "paint": {
  1122. "line-color": "#fea",
  1123. "line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]}
  1124. }
  1125. },
  1126. {
  1127. "id": "highway-primary",
  1128. "type": "line",
  1129. "metadata": {"mapbox:group": "1444849345966.4436"},
  1130. "source": "openmaptiles",
  1131. "source-layer": "transportation",
  1132. "filter": [
  1133. "all",
  1134. ["==", "$type", "LineString"],
  1135. ["!in", "brunnel", "bridge", "tunnel"],
  1136. ["in", "class", "primary"],
  1137. ["!=", "ramp", 1]
  1138. ],
  1139. "layout": {
  1140. "line-cap": "round",
  1141. "line-join": "round",
  1142. "visibility": "visible"
  1143. },
  1144. "paint": {
  1145. "line-color": "#fea",
  1146. "line-width": {"base": 1.2, "stops": [[8.5, 0], [9, 0.5], [20, 18]]}
  1147. }
  1148. },
  1149. {
  1150. "id": "highway-trunk",
  1151. "type": "line",
  1152. "metadata": {"mapbox:group": "1444849345966.4436"},
  1153. "source": "openmaptiles",
  1154. "source-layer": "transportation",
  1155. "filter": [
  1156. "all",
  1157. ["==", "$type", "LineString"],
  1158. ["!in", "brunnel", "bridge", "tunnel"],
  1159. ["in", "class", "trunk"],
  1160. ["!=", "ramp", 1]
  1161. ],
  1162. "layout": {
  1163. "line-cap": "round",
  1164. "line-join": "round",
  1165. "visibility": "visible"
  1166. },
  1167. "paint": {
  1168. "line-color": "#fea",
  1169. "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
  1170. }
  1171. },
  1172. {
  1173. "id": "highway-motorway",
  1174. "type": "line",
  1175. "metadata": {"mapbox:group": "1444849345966.4436"},
  1176. "source": "openmaptiles",
  1177. "source-layer": "transportation",
  1178. "minzoom": 5,
  1179. "filter": [
  1180. "all",
  1181. ["==", "$type", "LineString"],
  1182. ["!in", "brunnel", "bridge", "tunnel"],
  1183. ["==", "class", "motorway"],
  1184. ["!=", "ramp", 1]
  1185. ],
  1186. "layout": {
  1187. "line-cap": "round",
  1188. "line-join": "round",
  1189. "visibility": "visible"
  1190. },
  1191. "paint": {
  1192. "line-color": "#fc8",
  1193. "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
  1194. }
  1195. },
  1196. {
  1197. "id": "railway-transit",
  1198. "type": "line",
  1199. "metadata": {"mapbox:group": "1444849345966.4436"},
  1200. "source": "openmaptiles",
  1201. "source-layer": "transportation",
  1202. "filter": [
  1203. "all",
  1204. ["==", "$type", "LineString"],
  1205. ["==", "class", "transit"],
  1206. ["!in", "brunnel", "tunnel"]
  1207. ],
  1208. "layout": {"visibility": "visible"},
  1209. "paint": {
  1210. "line-color": "hsla(0, 0%, 73%, 0.77)",
  1211. "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
  1212. }
  1213. },
  1214. {
  1215. "id": "railway-transit-hatching",
  1216. "type": "line",
  1217. "metadata": {"mapbox:group": "1444849345966.4436"},
  1218. "source": "openmaptiles",
  1219. "source-layer": "transportation",
  1220. "filter": [
  1221. "all",
  1222. ["==", "$type", "LineString"],
  1223. ["==", "class", "transit"],
  1224. ["!in", "brunnel", "tunnel"]
  1225. ],
  1226. "layout": {"visibility": "visible"},
  1227. "paint": {
  1228. "line-color": "hsla(0, 0%, 73%, 0.68)",
  1229. "line-dasharray": [0.2, 8],
  1230. "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
  1231. }
  1232. },
  1233. {
  1234. "id": "railway-service",
  1235. "type": "line",
  1236. "metadata": {"mapbox:group": "1444849345966.4436"},
  1237. "source": "openmaptiles",
  1238. "source-layer": "transportation",
  1239. "filter": [
  1240. "all",
  1241. ["==", "$type", "LineString"],
  1242. ["==", "class", "rail"],
  1243. ["has", "service"]
  1244. ],
  1245. "paint": {
  1246. "line-color": "hsla(0, 0%, 73%, 0.77)",
  1247. "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
  1248. }
  1249. },
  1250. {
  1251. "id": "railway-service-hatching",
  1252. "type": "line",
  1253. "metadata": {"mapbox:group": "1444849345966.4436"},
  1254. "source": "openmaptiles",
  1255. "source-layer": "transportation",
  1256. "filter": [
  1257. "all",
  1258. ["==", "$type", "LineString"],
  1259. ["==", "class", "rail"],
  1260. ["has", "service"]
  1261. ],
  1262. "layout": {"visibility": "visible"},
  1263. "paint": {
  1264. "line-color": "hsla(0, 0%, 73%, 0.68)",
  1265. "line-dasharray": [0.2, 8],
  1266. "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
  1267. }
  1268. },
  1269. {
  1270. "id": "railway",
  1271. "type": "line",
  1272. "metadata": {"mapbox:group": "1444849345966.4436"},
  1273. "source": "openmaptiles",
  1274. "source-layer": "transportation",
  1275. "filter": [
  1276. "all",
  1277. ["==", "$type", "LineString"],
  1278. ["!has", "service"],
  1279. ["!in", "brunnel", "bridge", "tunnel"],
  1280. ["==", "class", "rail"]
  1281. ],
  1282. "paint": {
  1283. "line-color": "#bbb",
  1284. "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
  1285. }
  1286. },
  1287. {
  1288. "id": "railway-hatching",
  1289. "type": "line",
  1290. "metadata": {"mapbox:group": "1444849345966.4436"},
  1291. "source": "openmaptiles",
  1292. "source-layer": "transportation",
  1293. "filter": [
  1294. "all",
  1295. ["==", "$type", "LineString"],
  1296. ["!has", "service"],
  1297. ["!in", "brunnel", "bridge", "tunnel"],
  1298. ["==", "class", "rail"]
  1299. ],
  1300. "paint": {
  1301. "line-color": "#bbb",
  1302. "line-dasharray": [0.2, 8],
  1303. "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
  1304. }
  1305. },
  1306. {
  1307. "id": "bridge-motorway-link-casing",
  1308. "type": "line",
  1309. "metadata": {"mapbox:group": "1444849334699.1902"},
  1310. "source": "openmaptiles",
  1311. "source-layer": "transportation",
  1312. "filter": [
  1313. "all",
  1314. ["==", "brunnel", "bridge"],
  1315. ["==", "class", "motorway"],
  1316. ["==", "ramp", 1]
  1317. ],
  1318. "layout": {"line-join": "round"},
  1319. "paint": {
  1320. "line-color": "#e9ac77",
  1321. "line-opacity": 1,
  1322. "line-width": {
  1323. "base": 1.2,
  1324. "stops": [[12, 1], [13, 3], [14, 4], [20, 19]]
  1325. }
  1326. }
  1327. },
  1328. {
  1329. "id": "bridge-link-casing",
  1330. "type": "line",
  1331. "metadata": {"mapbox:group": "1444849334699.1902"},
  1332. "source": "openmaptiles",
  1333. "source-layer": "transportation",
  1334. "filter": [
  1335. "all",
  1336. ["==", "brunnel", "bridge"],
  1337. ["in", "class", "trunk", "primary", "secondary", "tertiary"],
  1338. ["==", "ramp", 1]
  1339. ],
  1340. "layout": {"line-join": "round"},
  1341. "paint": {
  1342. "line-color": "#e9ac77",
  1343. "line-opacity": 1,
  1344. "line-width": {
  1345. "base": 1.2,
  1346. "stops": [[12, 1], [13, 3], [14, 4], [20, 19]]
  1347. }
  1348. }
  1349. },
  1350. {
  1351. "id": "bridge-secondary-tertiary-casing",
  1352. "type": "line",
  1353. "metadata": {"mapbox:group": "1444849334699.1902"},
  1354. "source": "openmaptiles",
  1355. "source-layer": "transportation",
  1356. "filter": [
  1357. "all",
  1358. ["==", "brunnel", "bridge"],
  1359. ["in", "class", "secondary", "tertiary"],
  1360. ["!=", "ramp", 1]
  1361. ],
  1362. "layout": {"line-join": "round"},
  1363. "paint": {
  1364. "line-color": "#e9ac77",
  1365. "line-opacity": 1,
  1366. "line-width": {
  1367. "base": 1.2,
  1368. "stops": [[5, 0.4], [7, 0.6], [8, 1.5], [20, 21]]
  1369. }
  1370. }
  1371. },
  1372. {
  1373. "id": "bridge-trunk-primary-casing",
  1374. "type": "line",
  1375. "metadata": {"mapbox:group": "1444849334699.1902"},
  1376. "source": "openmaptiles",
  1377. "source-layer": "transportation",
  1378. "filter": [
  1379. "all",
  1380. ["==", "brunnel", "bridge"],
  1381. ["in", "class", "primary", "trunk"],
  1382. ["!=", "ramp", 1]
  1383. ],
  1384. "layout": {"line-join": "round"},
  1385. "paint": {
  1386. "line-color": "hsl(28, 76%, 67%)",
  1387. "line-width": {
  1388. "base": 1.2,
  1389. "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 26]]
  1390. }
  1391. }
  1392. },
  1393. {
  1394. "id": "bridge-motorway-casing",
  1395. "type": "line",
  1396. "metadata": {"mapbox:group": "1444849334699.1902"},
  1397. "source": "openmaptiles",
  1398. "source-layer": "transportation",
  1399. "filter": [
  1400. "all",
  1401. ["==", "brunnel", "bridge"],
  1402. ["==", "class", "motorway"],
  1403. ["!=", "ramp", 1]
  1404. ],
  1405. "layout": {"line-join": "round"},
  1406. "paint": {
  1407. "line-color": "#e9ac77",
  1408. "line-width": {
  1409. "base": 1.2,
  1410. "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 26]]
  1411. }
  1412. }
  1413. },
  1414. {
  1415. "id": "bridge-minor-casing",
  1416. "type": "line",
  1417. "metadata": {"mapbox:group": "1444849345966.4436"},
  1418. "source": "openmaptiles",
  1419. "source-layer": "transportation",
  1420. "filter": [
  1421. "all",
  1422. ["==", "$type", "LineString"],
  1423. ["==", "brunnel", "bridge"],
  1424. ["in", "class", "minor", "service", "track"]
  1425. ],
  1426. "layout": {"line-cap": "butt", "line-join": "round"},
  1427. "paint": {
  1428. "line-color": "#cfcdca",
  1429. "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
  1430. "line-width": {
  1431. "base": 1.2,
  1432. "stops": [[12, 0.5], [13, 1], [14, 6], [20, 24]]
  1433. }
  1434. }
  1435. },
  1436. {
  1437. "id": "bridge-path-casing",
  1438. "type": "line",
  1439. "metadata": {"mapbox:group": "1444849334699.1902"},
  1440. "source": "openmaptiles",
  1441. "source-layer": "transportation",
  1442. "filter": [
  1443. "all",
  1444. ["==", "$type", "LineString"],
  1445. ["==", "brunnel", "bridge"],
  1446. ["==", "class", "path"]
  1447. ],
  1448. "paint": {
  1449. "line-color": "#f8f4f0",
  1450. "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 18]]}
  1451. }
  1452. },
  1453. {
  1454. "id": "bridge-path",
  1455. "type": "line",
  1456. "metadata": {"mapbox:group": "1444849334699.1902"},
  1457. "source": "openmaptiles",
  1458. "source-layer": "transportation",
  1459. "filter": [
  1460. "all",
  1461. ["==", "$type", "LineString"],
  1462. ["==", "brunnel", "bridge"],
  1463. ["==", "class", "path"]
  1464. ],
  1465. "paint": {
  1466. "line-color": "#cba",
  1467. "line-dasharray": [1.5, 0.75],
  1468. "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
  1469. }
  1470. },
  1471. {
  1472. "id": "bridge-motorway-link",
  1473. "type": "line",
  1474. "metadata": {"mapbox:group": "1444849334699.1902"},
  1475. "source": "openmaptiles",
  1476. "source-layer": "transportation",
  1477. "filter": [
  1478. "all",
  1479. ["==", "brunnel", "bridge"],
  1480. ["==", "class", "motorway"],
  1481. ["==", "ramp", 1]
  1482. ],
  1483. "layout": {"line-join": "round"},
  1484. "paint": {
  1485. "line-color": "#fc8",
  1486. "line-width": {
  1487. "base": 1.2,
  1488. "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
  1489. }
  1490. }
  1491. },
  1492. {
  1493. "id": "bridge-link",
  1494. "type": "line",
  1495. "metadata": {"mapbox:group": "1444849334699.1902"},
  1496. "source": "openmaptiles",
  1497. "source-layer": "transportation",
  1498. "filter": [
  1499. "all",
  1500. ["==", "brunnel", "bridge"],
  1501. ["in", "class", "trunk", "primary", "secondary", "tertiary"],
  1502. ["==", "ramp", 1]
  1503. ],
  1504. "layout": {"line-join": "round"},
  1505. "paint": {
  1506. "line-color": "#fea",
  1507. "line-width": {
  1508. "base": 1.2,
  1509. "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
  1510. }
  1511. }
  1512. },
  1513. {
  1514. "id": "bridge-minor",
  1515. "type": "line",
  1516. "metadata": {"mapbox:group": "1444849345966.4436"},
  1517. "source": "openmaptiles",
  1518. "source-layer": "transportation",
  1519. "filter": [
  1520. "all",
  1521. ["==", "$type", "LineString"],
  1522. ["==", "brunnel", "bridge"],
  1523. ["in", "class", "minor", "service", "track"]
  1524. ],
  1525. "layout": {"line-cap": "round", "line-join": "round"},
  1526. "paint": {
  1527. "line-color": "#fff",
  1528. "line-opacity": 1,
  1529. "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
  1530. }
  1531. },
  1532. {
  1533. "id": "bridge-secondary-tertiary",
  1534. "type": "line",
  1535. "metadata": {"mapbox:group": "1444849334699.1902"},
  1536. "source": "openmaptiles",
  1537. "source-layer": "transportation",
  1538. "filter": [
  1539. "all",
  1540. ["==", "brunnel", "bridge"],
  1541. ["in", "class", "secondary", "tertiary"],
  1542. ["!=", "ramp", 1]
  1543. ],
  1544. "layout": {"line-join": "round"},
  1545. "paint": {
  1546. "line-color": "#fea",
  1547. "line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]}
  1548. }
  1549. },
  1550. {
  1551. "id": "bridge-trunk-primary",
  1552. "type": "line",
  1553. "metadata": {"mapbox:group": "1444849334699.1902"},
  1554. "source": "openmaptiles",
  1555. "source-layer": "transportation",
  1556. "filter": [
  1557. "all",
  1558. ["==", "brunnel", "bridge"],
  1559. ["in", "class", "primary", "trunk"],
  1560. ["!=", "ramp", 1]
  1561. ],
  1562. "layout": {"line-join": "round"},
  1563. "paint": {
  1564. "line-color": "#fea",
  1565. "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
  1566. }
  1567. },
  1568. {
  1569. "id": "bridge-motorway",
  1570. "type": "line",
  1571. "metadata": {"mapbox:group": "1444849334699.1902"},
  1572. "source": "openmaptiles",
  1573. "source-layer": "transportation",
  1574. "filter": [
  1575. "all",
  1576. ["==", "brunnel", "bridge"],
  1577. ["==", "class", "motorway"],
  1578. ["!=", "ramp", 1]
  1579. ],
  1580. "layout": {"line-join": "round"},
  1581. "paint": {
  1582. "line-color": "#fc8",
  1583. "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
  1584. }
  1585. },
  1586. {
  1587. "id": "bridge-railway",
  1588. "type": "line",
  1589. "metadata": {"mapbox:group": "1444849334699.1902"},
  1590. "source": "openmaptiles",
  1591. "source-layer": "transportation",
  1592. "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
  1593. "paint": {
  1594. "line-color": "#bbb",
  1595. "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
  1596. }
  1597. },
  1598. {
  1599. "id": "bridge-railway-hatching",
  1600. "type": "line",
  1601. "metadata": {"mapbox:group": "1444849334699.1902"},
  1602. "source": "openmaptiles",
  1603. "source-layer": "transportation",
  1604. "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
  1605. "paint": {
  1606. "line-color": "#bbb",
  1607. "line-dasharray": [0.2, 8],
  1608. "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
  1609. }
  1610. },
  1611. {
  1612. "id": "cablecar",
  1613. "type": "line",
  1614. "source": "openmaptiles",
  1615. "source-layer": "transportation",
  1616. "minzoom": 13,
  1617. "filter": ["==", "subclass", "cable_car"],
  1618. "layout": {"line-cap": "round", "visibility": "visible"},
  1619. "paint": {
  1620. "line-color": "hsl(0, 0%, 70%)",
  1621. "line-width": {"base": 1, "stops": [[11, 1], [19, 2.5]]}
  1622. }
  1623. },
  1624. {
  1625. "id": "cablecar-dash",
  1626. "type": "line",
  1627. "source": "openmaptiles",
  1628. "source-layer": "transportation",
  1629. "minzoom": 13,
  1630. "filter": ["==", "subclass", "cable_car"],
  1631. "layout": {"line-cap": "round", "visibility": "visible"},
  1632. "paint": {
  1633. "line-color": "hsl(0, 0%, 70%)",
  1634. "line-dasharray": [2, 3],
  1635. "line-width": {"base": 1, "stops": [[11, 3], [19, 5.5]]}
  1636. }
  1637. },
  1638. {
  1639. "id": "boundary-land-level-4",
  1640. "type": "line",
  1641. "source": "openmaptiles",
  1642. "source-layer": "boundary",
  1643. "minzoom": 2,
  1644. "filter": [
  1645. "all",
  1646. [">=", "admin_level", 3],
  1647. ["<=", "admin_level", 8],
  1648. ["!=", "maritime", 1]
  1649. ],
  1650. "layout": {"line-join": "round", "visibility": "visible"},
  1651. "paint": {
  1652. "line-color": "#9e9cab",
  1653. "line-dasharray": [3, 1, 1, 1],
  1654. "line-width": {"base": 1.4, "stops": [[4, 0.4], [5, 1], [12, 3]]}
  1655. }
  1656. },
  1657. {
  1658. "id": "boundary-land-level-2",
  1659. "type": "line",
  1660. "source": "openmaptiles",
  1661. "source-layer": "boundary",
  1662. "filter": [
  1663. "all",
  1664. ["==", "admin_level", 2],
  1665. ["!=", "maritime", 1],
  1666. ["!=", "disputed", 1]
  1667. ],
  1668. "layout": {
  1669. "line-cap": "round",
  1670. "line-join": "round",
  1671. "visibility": "visible"
  1672. },
  1673. "paint": {
  1674. "line-color": "hsl(248, 7%, 66%)",
  1675. "line-width": {
  1676. "base": 1,
  1677. "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
  1678. }
  1679. }
  1680. },
  1681. {
  1682. "id": "boundary-land-disputed",
  1683. "type": "line",
  1684. "source": "openmaptiles",
  1685. "source-layer": "boundary",
  1686. "filter": ["all", ["!=", "maritime", 1], ["==", "disputed", 1]],
  1687. "layout": {
  1688. "line-cap": "round",
  1689. "line-join": "round",
  1690. "visibility": "visible"
  1691. },
  1692. "paint": {
  1693. "line-color": "hsl(248, 7%, 70%)",
  1694. "line-dasharray": [1, 3],
  1695. "line-width": {
  1696. "base": 1,
  1697. "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
  1698. }
  1699. }
  1700. },
  1701. {
  1702. "id": "boundary-water",
  1703. "type": "line",
  1704. "source": "openmaptiles",
  1705. "source-layer": "boundary",
  1706. "minzoom": 4,
  1707. "filter": ["all", ["in", "admin_level", 2, 4], ["==", "maritime", 1]],
  1708. "layout": {
  1709. "line-cap": "round",
  1710. "line-join": "round",
  1711. "visibility": "visible"
  1712. },
  1713. "paint": {
  1714. "line-color": "rgba(154, 189, 214, 1)",
  1715. "line-opacity": {"stops": [[6, 0.6], [10, 1]]},
  1716. "line-width": {
  1717. "base": 1,
  1718. "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
  1719. }
  1720. }
  1721. },
  1722. {
  1723. "id": "waterway-name",
  1724. "type": "symbol",
  1725. "source": "openmaptiles",
  1726. "source-layer": "waterway",
  1727. "minzoom": 13,
  1728. "filter": ["all", ["==", "$type", "LineString"], ["has", "name"]],
  1729. "layout": {
  1730. "symbol-placement": "line",
  1731. "symbol-spacing": 350,
  1732. "text-field": "{name:latin} {name:nonlatin}",
  1733. "text-font": ["Noto Sans Italic"],
  1734. "text-letter-spacing": 0.2,
  1735. "text-max-width": 5,
  1736. "text-rotation-alignment": "map",
  1737. "text-size": 14
  1738. },
  1739. "paint": {
  1740. "text-color": "#74aee9",
  1741. "text-halo-color": "rgba(255,255,255,0.7)",
  1742. "text-halo-width": 1.5
  1743. }
  1744. },
  1745. {
  1746. "id": "water-name-lakeline",
  1747. "type": "symbol",
  1748. "source": "openmaptiles",
  1749. "source-layer": "water_name",
  1750. "filter": ["==", "$type", "LineString"],
  1751. "layout": {
  1752. "symbol-placement": "line",
  1753. "symbol-spacing": 350,
  1754. "text-field": "{name:latin}\n{name:nonlatin}",
  1755. "text-font": ["Noto Sans Italic"],
  1756. "text-letter-spacing": 0.2,
  1757. "text-max-width": 5,
  1758. "text-rotation-alignment": "map",
  1759. "text-size": 14
  1760. },
  1761. "paint": {
  1762. "text-color": "#74aee9",
  1763. "text-halo-color": "rgba(255,255,255,0.7)",
  1764. "text-halo-width": 1.5
  1765. }
  1766. },
  1767. {
  1768. "id": "water-name-ocean",
  1769. "type": "symbol",
  1770. "source": "openmaptiles",
  1771. "source-layer": "water_name",
  1772. "filter": ["all", ["==", "$type", "Point"], ["==", "class", "ocean"]],
  1773. "layout": {
  1774. "symbol-placement": "point",
  1775. "symbol-spacing": 350,
  1776. "text-field": "{name:latin}",
  1777. "text-font": ["Noto Sans Italic"],
  1778. "text-letter-spacing": 0.2,
  1779. "text-max-width": 5,
  1780. "text-rotation-alignment": "map",
  1781. "text-size": 14
  1782. },
  1783. "paint": {
  1784. "text-color": "#74aee9",
  1785. "text-halo-color": "rgba(255,255,255,0.7)",
  1786. "text-halo-width": 1.5
  1787. }
  1788. },
  1789. {
  1790. "id": "water-name-other",
  1791. "type": "symbol",
  1792. "source": "openmaptiles",
  1793. "source-layer": "water_name",
  1794. "filter": ["all", ["==", "$type", "Point"], ["!in", "class", "ocean"]],
  1795. "layout": {
  1796. "symbol-placement": "point",
  1797. "symbol-spacing": 350,
  1798. "text-field": "{name:latin}\n{name:nonlatin}",
  1799. "text-font": ["Noto Sans Italic"],
  1800. "text-letter-spacing": 0.2,
  1801. "text-max-width": 5,
  1802. "text-rotation-alignment": "map",
  1803. "text-size": {"stops": [[0, 10], [6, 14]]},
  1804. "visibility": "visible"
  1805. },
  1806. "paint": {
  1807. "text-color": "#74aee9",
  1808. "text-halo-color": "rgba(255,255,255,0.7)",
  1809. "text-halo-width": 1.5
  1810. }
  1811. },
  1812. {
  1813. "id": "road_oneway",
  1814. "type": "symbol",
  1815. "source": "openmaptiles",
  1816. "source-layer": "transportation",
  1817. "minzoom": 15,
  1818. "filter": [
  1819. "all",
  1820. ["==", "oneway", 1],
  1821. [
  1822. "in",
  1823. "class",
  1824. "motorway",
  1825. "trunk",
  1826. "primary",
  1827. "secondary",
  1828. "tertiary",
  1829. "minor",
  1830. "service"
  1831. ]
  1832. ],
  1833. "layout": {
  1834. "icon-image": "oneway",
  1835. "icon-padding": 2,
  1836. "icon-rotate": 90,
  1837. "icon-rotation-alignment": "map",
  1838. "icon-size": {"stops": [[15, 0.5], [19, 1]]},
  1839. "symbol-placement": "line",
  1840. "symbol-spacing": 75
  1841. },
  1842. "paint": {"icon-opacity": 0.5}
  1843. },
  1844. {
  1845. "id": "road_oneway_opposite",
  1846. "type": "symbol",
  1847. "source": "openmaptiles",
  1848. "source-layer": "transportation",
  1849. "minzoom": 15,
  1850. "filter": [
  1851. "all",
  1852. ["==", "oneway", -1],
  1853. [
  1854. "in",
  1855. "class",
  1856. "motorway",
  1857. "trunk",
  1858. "primary",
  1859. "secondary",
  1860. "tertiary",
  1861. "minor",
  1862. "service"
  1863. ]
  1864. ],
  1865. "layout": {
  1866. "icon-image": "oneway",
  1867. "icon-padding": 2,
  1868. "icon-rotate": -90,
  1869. "icon-rotation-alignment": "map",
  1870. "icon-size": {"stops": [[15, 0.5], [19, 1]]},
  1871. "symbol-placement": "line",
  1872. "symbol-spacing": 75
  1873. },
  1874. "paint": {"icon-opacity": 0.5}
  1875. },
  1876. {
  1877. "id": "poi-level-3",
  1878. "type": "symbol",
  1879. "source": "openmaptiles",
  1880. "source-layer": "poi",
  1881. "minzoom": 16,
  1882. "filter": [
  1883. "all",
  1884. ["==", "$type", "Point"],
  1885. [">=", "rank", 25],
  1886. ["any", ["!has", "level"], ["==", "level", 0]]
  1887. ],
  1888. "layout": {
  1889. "icon-image": "{class}_11",
  1890. "text-anchor": "top",
  1891. "text-field": "{name:latin}\n{name:nonlatin}",
  1892. "text-font": ["Noto Sans Regular"],
  1893. "text-max-width": 9,
  1894. "text-offset": [0, 0.6],
  1895. "text-padding": 2,
  1896. "text-size": 12,
  1897. "visibility": "visible"
  1898. },
  1899. "paint": {
  1900. "text-color": "#666",
  1901. "text-halo-blur": 0.5,
  1902. "text-halo-color": "#ffffff",
  1903. "text-halo-width": 1
  1904. }
  1905. },
  1906. {
  1907. "id": "poi-level-2",
  1908. "type": "symbol",
  1909. "source": "openmaptiles",
  1910. "source-layer": "poi",
  1911. "minzoom": 15,
  1912. "filter": [
  1913. "all",
  1914. ["==", "$type", "Point"],
  1915. ["<=", "rank", 24],
  1916. [">=", "rank", 15],
  1917. ["any", ["!has", "level"], ["==", "level", 0]]
  1918. ],
  1919. "layout": {
  1920. "icon-image": "{class}_11",
  1921. "text-anchor": "top",
  1922. "text-field": "{name:latin}\n{name:nonlatin}",
  1923. "text-font": ["Noto Sans Regular"],
  1924. "text-max-width": 9,
  1925. "text-offset": [0, 0.6],
  1926. "text-padding": 2,
  1927. "text-size": 12,
  1928. "visibility": "visible"
  1929. },
  1930. "paint": {
  1931. "text-color": "#666",
  1932. "text-halo-blur": 0.5,
  1933. "text-halo-color": "#ffffff",
  1934. "text-halo-width": 1
  1935. }
  1936. },
  1937. {
  1938. "id": "poi-level-1",
  1939. "type": "symbol",
  1940. "source": "openmaptiles",
  1941. "source-layer": "poi",
  1942. "minzoom": 14,
  1943. "filter": [
  1944. "all",
  1945. ["==", "$type", "Point"],
  1946. ["<=", "rank", 14],
  1947. ["has", "name"],
  1948. ["any", ["!has", "level"], ["==", "level", 0]]
  1949. ],
  1950. "layout": {
  1951. "icon-image": "{class}_11",
  1952. "text-anchor": "top",
  1953. "text-field": "{name:latin}\n{name:nonlatin}",
  1954. "text-font": ["Noto Sans Regular"],
  1955. "text-max-width": 9,
  1956. "text-offset": [0, 0.6],
  1957. "text-padding": 2,
  1958. "text-size": 12,
  1959. "visibility": "visible"
  1960. },
  1961. "paint": {
  1962. "text-color": "#666",
  1963. "text-halo-blur": 0.5,
  1964. "text-halo-color": "#ffffff",
  1965. "text-halo-width": 1
  1966. }
  1967. },
  1968. {
  1969. "id": "poi-railway",
  1970. "type": "symbol",
  1971. "source": "openmaptiles",
  1972. "source-layer": "poi",
  1973. "minzoom": 13,
  1974. "filter": [
  1975. "all",
  1976. ["==", "$type", "Point"],
  1977. ["has", "name"],
  1978. ["==", "class", "railway"],
  1979. ["==", "subclass", "station"]
  1980. ],
  1981. "layout": {
  1982. "icon-allow-overlap": false,
  1983. "icon-ignore-placement": false,
  1984. "icon-image": "{class}_11",
  1985. "icon-optional": false,
  1986. "text-allow-overlap": false,
  1987. "text-anchor": "top",
  1988. "text-field": "{name:latin}\n{name:nonlatin}",
  1989. "text-font": ["Noto Sans Regular"],
  1990. "text-ignore-placement": false,
  1991. "text-max-width": 9,
  1992. "text-offset": [0, 0.6],
  1993. "text-optional": true,
  1994. "text-padding": 2,
  1995. "text-size": 12
  1996. },
  1997. "paint": {
  1998. "text-color": "#666",
  1999. "text-halo-blur": 0.5,
  2000. "text-halo-color": "#ffffff",
  2001. "text-halo-width": 1
  2002. }
  2003. },
  2004. {
  2005. "id": "highway-name-path",
  2006. "type": "symbol",
  2007. "source": "openmaptiles",
  2008. "source-layer": "transportation_name",
  2009. "minzoom": 15.5,
  2010. "filter": ["==", "class", "path"],
  2011. "layout": {
  2012. "symbol-placement": "line",
  2013. "text-field": "{name:latin} {name:nonlatin}",
  2014. "text-font": ["Noto Sans Regular"],
  2015. "text-rotation-alignment": "map",
  2016. "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
  2017. },
  2018. "paint": {
  2019. "text-color": "hsl(30, 23%, 62%)",
  2020. "text-halo-color": "#f8f4f0",
  2021. "text-halo-width": 0.5
  2022. }
  2023. },
  2024. {
  2025. "id": "highway-name-minor",
  2026. "type": "symbol",
  2027. "source": "openmaptiles",
  2028. "source-layer": "transportation_name",
  2029. "minzoom": 15,
  2030. "filter": [
  2031. "all",
  2032. ["==", "$type", "LineString"],
  2033. ["in", "class", "minor", "service", "track"]
  2034. ],
  2035. "layout": {
  2036. "symbol-placement": "line",
  2037. "text-field": "{name:latin} {name:nonlatin}",
  2038. "text-font": ["Noto Sans Regular"],
  2039. "text-rotation-alignment": "map",
  2040. "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
  2041. },
  2042. "paint": {
  2043. "text-color": "#765",
  2044. "text-halo-blur": 0.5,
  2045. "text-halo-width": 1
  2046. }
  2047. },
  2048. {
  2049. "id": "highway-name-major",
  2050. "type": "symbol",
  2051. "source": "openmaptiles",
  2052. "source-layer": "transportation_name",
  2053. "minzoom": 12.2,
  2054. "filter": ["in", "class", "primary", "secondary", "tertiary", "trunk"],
  2055. "layout": {
  2056. "symbol-placement": "line",
  2057. "text-field": "{name:latin} {name:nonlatin}",
  2058. "text-font": ["Noto Sans Regular"],
  2059. "text-rotation-alignment": "map",
  2060. "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
  2061. },
  2062. "paint": {
  2063. "text-color": "#765",
  2064. "text-halo-blur": 0.5,
  2065. "text-halo-width": 1
  2066. }
  2067. },
  2068. {
  2069. "id": "highway-shield",
  2070. "type": "symbol",
  2071. "source": "openmaptiles",
  2072. "source-layer": "transportation_name",
  2073. "minzoom": 8,
  2074. "filter": [
  2075. "all",
  2076. ["<=", "ref_length", 6],
  2077. ["==", "$type", "LineString"],
  2078. ["!in", "network", "us-interstate", "us-highway", "us-state"]
  2079. ],
  2080. "layout": {
  2081. "icon-image": "road_{ref_length}",
  2082. "icon-rotation-alignment": "viewport",
  2083. "icon-size": 1,
  2084. "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
  2085. "symbol-spacing": 200,
  2086. "text-field": "{ref}",
  2087. "text-font": ["Noto Sans Regular"],
  2088. "text-rotation-alignment": "viewport",
  2089. "text-size": 10
  2090. },
  2091. "paint": {}
  2092. },
  2093. {
  2094. "id": "highway-shield-us-interstate",
  2095. "type": "symbol",
  2096. "source": "openmaptiles",
  2097. "source-layer": "transportation_name",
  2098. "minzoom": 7,
  2099. "filter": [
  2100. "all",
  2101. ["<=", "ref_length", 6],
  2102. ["==", "$type", "LineString"],
  2103. ["in", "network", "us-interstate"]
  2104. ],
  2105. "layout": {
  2106. "icon-image": "{network}_{ref_length}",
  2107. "icon-rotation-alignment": "viewport",
  2108. "icon-size": 1,
  2109. "symbol-placement": {
  2110. "base": 1,
  2111. "stops": [[7, "point"], [7, "line"], [8, "line"]]
  2112. },
  2113. "symbol-spacing": 200,
  2114. "text-field": "{ref}",
  2115. "text-font": ["Noto Sans Regular"],
  2116. "text-rotation-alignment": "viewport",
  2117. "text-size": 10
  2118. },
  2119. "paint": {"text-color": "rgba(0, 0, 0, 1)"}
  2120. },
  2121. {
  2122. "id": "highway-shield-us-other",
  2123. "type": "symbol",
  2124. "source": "openmaptiles",
  2125. "source-layer": "transportation_name",
  2126. "minzoom": 9,
  2127. "filter": [
  2128. "all",
  2129. ["<=", "ref_length", 6],
  2130. ["==", "$type", "LineString"],
  2131. ["in", "network", "us-highway", "us-state"]
  2132. ],
  2133. "layout": {
  2134. "icon-image": "{network}_{ref_length}",
  2135. "icon-rotation-alignment": "viewport",
  2136. "icon-size": 1,
  2137. "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
  2138. "symbol-spacing": 200,
  2139. "text-field": "{ref}",
  2140. "text-font": ["Noto Sans Regular"],
  2141. "text-rotation-alignment": "viewport",
  2142. "text-size": 10
  2143. },
  2144. "paint": {"text-color": "rgba(0, 0, 0, 1)"}
  2145. },
  2146. {
  2147. "id": "airport-label-major",
  2148. "type": "symbol",
  2149. "source": "openmaptiles",
  2150. "source-layer": "aerodrome_label",
  2151. "minzoom": 10,
  2152. "filter": ["all", ["has", "iata"]],
  2153. "layout": {
  2154. "icon-image": "airport_11",
  2155. "icon-size": 1,
  2156. "text-anchor": "top",
  2157. "text-field": "{name:latin}\n{name:nonlatin}",
  2158. "text-font": ["Noto Sans Regular"],
  2159. "text-max-width": 9,
  2160. "text-offset": [0, 0.6],
  2161. "text-optional": true,
  2162. "text-padding": 2,
  2163. "text-size": 12,
  2164. "visibility": "visible"
  2165. },
  2166. "paint": {
  2167. "text-color": "#666",
  2168. "text-halo-blur": 0.5,
  2169. "text-halo-color": "#ffffff",
  2170. "text-halo-width": 1
  2171. }
  2172. },
  2173. {
  2174. "id": "place-other",
  2175. "type": "symbol",
  2176. "metadata": {"mapbox:group": "1444849242106.713"},
  2177. "source": "openmaptiles",
  2178. "source-layer": "place",
  2179. "filter": [
  2180. "!in",
  2181. "class",
  2182. "city",
  2183. "town",
  2184. "village",
  2185. "state",
  2186. "country",
  2187. "continent"
  2188. ],
  2189. "layout": {
  2190. "text-field": "{name:latin}\n{name:nonlatin}",
  2191. "text-font": ["Noto Sans Bold"],
  2192. "text-letter-spacing": 0.1,
  2193. "text-max-width": 9,
  2194. "text-size": {"base": 1.2, "stops": [[12, 10], [15, 14]]},
  2195. "text-transform": "uppercase",
  2196. "visibility": "visible"
  2197. },
  2198. "paint": {
  2199. "text-color": "#633",
  2200. "text-halo-color": "rgba(255,255,255,0.8)",
  2201. "text-halo-width": 1.2
  2202. }
  2203. },
  2204. {
  2205. "id": "place-village",
  2206. "type": "symbol",
  2207. "metadata": {"mapbox:group": "1444849242106.713"},
  2208. "source": "openmaptiles",
  2209. "source-layer": "place",
  2210. "filter": ["==", "class", "village"],
  2211. "layout": {
  2212. "text-field": "{name:latin}\n{name:nonlatin}",
  2213. "text-font": ["Noto Sans Regular"],
  2214. "text-max-width": 8,
  2215. "text-size": {"base": 1.2, "stops": [[10, 12], [15, 22]]},
  2216. "visibility": "visible"
  2217. },
  2218. "paint": {
  2219. "text-color": "#333",
  2220. "text-halo-color": "rgba(255,255,255,0.8)",
  2221. "text-halo-width": 1.2
  2222. }
  2223. },
  2224. {
  2225. "id": "place-town",
  2226. "type": "symbol",
  2227. "metadata": {"mapbox:group": "1444849242106.713"},
  2228. "source": "openmaptiles",
  2229. "source-layer": "place",
  2230. "filter": ["==", "class", "town"],
  2231. "layout": {
  2232. "text-field": "{name:latin}\n{name:nonlatin}",
  2233. "text-font": ["Noto Sans Regular"],
  2234. "text-max-width": 8,
  2235. "text-size": {"base": 1.2, "stops": [[10, 14], [15, 24]]},
  2236. "visibility": "visible"
  2237. },
  2238. "paint": {
  2239. "text-color": "#333",
  2240. "text-halo-color": "rgba(255,255,255,0.8)",
  2241. "text-halo-width": 1.2
  2242. }
  2243. },
  2244. {
  2245. "id": "place-city",
  2246. "type": "symbol",
  2247. "metadata": {"mapbox:group": "1444849242106.713"},
  2248. "source": "openmaptiles",
  2249. "source-layer": "place",
  2250. "filter": ["all", ["!=", "capital", 2], ["==", "class", "city"]],
  2251. "layout": {
  2252. "text-field": "{name:latin}\n{name:nonlatin}",
  2253. "text-font": ["Noto Sans Regular"],
  2254. "text-max-width": 8,
  2255. "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
  2256. "visibility": "visible"
  2257. },
  2258. "paint": {
  2259. "text-color": "#333",
  2260. "text-halo-color": "rgba(255,255,255,0.8)",
  2261. "text-halo-width": 1.2
  2262. }
  2263. },
  2264. {
  2265. "id": "place-city-capital",
  2266. "type": "symbol",
  2267. "metadata": {"mapbox:group": "1444849242106.713"},
  2268. "source": "openmaptiles",
  2269. "source-layer": "place",
  2270. "filter": ["all", ["==", "capital", 2], ["==", "class", "city"]],
  2271. "layout": {
  2272. "icon-image": "star_11",
  2273. "icon-size": 0.8,
  2274. "text-anchor": "left",
  2275. "text-field": "{name:latin}\n{name:nonlatin}",
  2276. "text-font": ["Noto Sans Regular"],
  2277. "text-max-width": 8,
  2278. "text-offset": [0.4, 0],
  2279. "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
  2280. "visibility": "visible"
  2281. },
  2282. "paint": {
  2283. "text-color": "#333",
  2284. "text-halo-color": "rgba(255,255,255,0.8)",
  2285. "text-halo-width": 1.2
  2286. }
  2287. },
  2288. {
  2289. "id": "place-state",
  2290. "type": "symbol",
  2291. "metadata": {"mapbox:group": "1444849242106.713"},
  2292. "source": "openmaptiles",
  2293. "source-layer": "place",
  2294. "filter": ["in", "class", "state"],
  2295. "layout": {
  2296. "text-field": "{name:latin}",
  2297. "text-font": ["Noto Sans Bold"],
  2298. "text-letter-spacing": 0.1,
  2299. "text-max-width": 9,
  2300. "text-size": {"base": 1.2, "stops": [[12, 10], [15, 14]]},
  2301. "text-transform": "uppercase",
  2302. "visibility": "visible"
  2303. },
  2304. "paint": {
  2305. "text-color": "#633",
  2306. "text-halo-color": "rgba(255,255,255,0.8)",
  2307. "text-halo-width": 1.2
  2308. }
  2309. },
  2310. {
  2311. "id": "place-country-other",
  2312. "type": "symbol",
  2313. "metadata": {"mapbox:group": "1444849242106.713"},
  2314. "source": "openmaptiles",
  2315. "source-layer": "place",
  2316. "filter": [
  2317. "all",
  2318. ["==", "class", "country"],
  2319. [">=", "rank", 3],
  2320. ["!has", "iso_a2"]
  2321. ],
  2322. "layout": {
  2323. "text-field": "{name:latin}",
  2324. "text-font": ["Noto Sans Italic"],
  2325. "text-max-width": 6.25,
  2326. "text-size": {"stops": [[3, 11], [7, 17]]},
  2327. "text-transform": "uppercase",
  2328. "visibility": "visible"
  2329. },
  2330. "paint": {
  2331. "text-color": "#334",
  2332. "text-halo-blur": 1,
  2333. "text-halo-color": "rgba(255,255,255,0.8)",
  2334. "text-halo-width": 2
  2335. }
  2336. },
  2337. {
  2338. "id": "place-country-3",
  2339. "type": "symbol",
  2340. "metadata": {"mapbox:group": "1444849242106.713"},
  2341. "source": "openmaptiles",
  2342. "source-layer": "place",
  2343. "filter": [
  2344. "all",
  2345. ["==", "class", "country"],
  2346. [">=", "rank", 3],
  2347. ["has", "iso_a2"]
  2348. ],
  2349. "layout": {
  2350. "text-field": "{name:latin}",
  2351. "text-font": ["Noto Sans Bold"],
  2352. "text-max-width": 6.25,
  2353. "text-size": {"stops": [[3, 11], [7, 17]]},
  2354. "text-transform": "uppercase",
  2355. "visibility": "visible"
  2356. },
  2357. "paint": {
  2358. "text-color": "#334",
  2359. "text-halo-blur": 1,
  2360. "text-halo-color": "rgba(255,255,255,0.8)",
  2361. "text-halo-width": 2
  2362. }
  2363. },
  2364. {
  2365. "id": "place-country-2",
  2366. "type": "symbol",
  2367. "metadata": {"mapbox:group": "1444849242106.713"},
  2368. "source": "openmaptiles",
  2369. "source-layer": "place",
  2370. "filter": [
  2371. "all",
  2372. ["==", "class", "country"],
  2373. ["==", "rank", 2],
  2374. ["has", "iso_a2"]
  2375. ],
  2376. "layout": {
  2377. "text-field": "{name:latin}",
  2378. "text-font": ["Noto Sans Bold"],
  2379. "text-max-width": 6.25,
  2380. "text-size": {"stops": [[2, 11], [5, 17]]},
  2381. "text-transform": "uppercase",
  2382. "visibility": "visible"
  2383. },
  2384. "paint": {
  2385. "text-color": "#334",
  2386. "text-halo-blur": 1,
  2387. "text-halo-color": "rgba(255,255,255,0.8)",
  2388. "text-halo-width": 2
  2389. }
  2390. },
  2391. {
  2392. "id": "place-country-1",
  2393. "type": "symbol",
  2394. "metadata": {"mapbox:group": "1444849242106.713"},
  2395. "source": "openmaptiles",
  2396. "source-layer": "place",
  2397. "filter": [
  2398. "all",
  2399. ["==", "class", "country"],
  2400. ["==", "rank", 1],
  2401. ["has", "iso_a2"]
  2402. ],
  2403. "layout": {
  2404. "text-field": "{name:latin}",
  2405. "text-font": ["Noto Sans Bold"],
  2406. "text-max-width": 6.25,
  2407. "text-size": {"stops": [[1, 11], [4, 17]]},
  2408. "text-transform": "uppercase",
  2409. "visibility": "visible"
  2410. },
  2411. "paint": {
  2412. "text-color": "#334",
  2413. "text-halo-blur": 1,
  2414. "text-halo-color": "rgba(255,255,255,0.8)",
  2415. "text-halo-width": 2
  2416. }
  2417. },
  2418. {
  2419. "id": "place-continent",
  2420. "type": "symbol",
  2421. "metadata": {"mapbox:group": "1444849242106.713"},
  2422. "source": "openmaptiles",
  2423. "source-layer": "place",
  2424. "maxzoom": 1,
  2425. "filter": ["==", "class", "continent"],
  2426. "layout": {
  2427. "text-field": "{name:latin}",
  2428. "text-font": ["Noto Sans Bold"],
  2429. "text-max-width": 6.25,
  2430. "text-size": 14,
  2431. "text-transform": "uppercase",
  2432. "visibility": "visible"
  2433. },
  2434. "paint": {
  2435. "text-color": "#334",
  2436. "text-halo-blur": 1,
  2437. "text-halo-color": "rgba(255,255,255,0.8)",
  2438. "text-halo-width": 2
  2439. }
  2440. }
  2441. ],
  2442. "id": "bright"
  2443. }
Advertisement
Add Comment
Please, Sign In to add comment