Newer
Older
KaiFengPC / public / static / libs / mapbox / style / customs / night-style.json
@jimengfei jimengfei on 2 Sep 54 KB updata
  1. {
  2. "version": 8,
  3. "name": "Basic",
  4. "metadata": {
  5. "mapbox:autocomposite": false,
  6. "mapbox:type": "template",
  7. "maputnik:renderer": "mbgljs",
  8. "openmaptiles:version": "3.x",
  9. "openmaptiles:mapbox:owner": "openmaptiles",
  10. "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t"
  11. },
  12. "sources": {
  13. "openmaptiles": {
  14. "type": "vector",
  15. "url": "https://supermap2.wh-nf.cn:8090/bm/static/map/style/spec.json"
  16. }
  17. },
  18. "sprite": "https://supermap2.wh-nf.cn:8090/bm/static/map/style/sprite",
  19. "glyphs": "https://supermap2.wh-nf.cn:8090/bm/static/map/style/fonts/{fontstack}/{range}.pbf",
  20. "layers": [
  21. {
  22. "id": "background",
  23. "type": "background",
  24. "paint": {
  25. "background-color": "rgba(8,27,54,1)"
  26. }
  27. },
  28. {
  29. "id": "landuse-residential",
  30. "type": "fill",
  31. "source": "openmaptiles",
  32. "source-layer": "landuse",
  33. "filter": [
  34. "all",
  35. [
  36. "==",
  37. "$type",
  38. "Polygon"
  39. ],
  40. [
  41. "in",
  42. "class",
  43. "residential",
  44. "suburb",
  45. "neighbourhood"
  46. ]
  47. ],
  48. "layout": {
  49. "visibility": "visible"
  50. },
  51. "paint": {
  52. "fill-opacity": 0.7,
  53. "fill-color": "rgba(8,27,54,1)"
  54. }
  55. },
  56. {
  57. "id": "landcover_grass",
  58. "type": "fill",
  59. "source": "openmaptiles",
  60. "source-layer": "landcover",
  61. "filter": [
  62. "==",
  63. "class",
  64. "grass"
  65. ],
  66. "paint": {
  67. "fill-color": "rgba(14,39,72,1)",
  68. "fill-opacity": 1
  69. }
  70. },
  71. {
  72. "id": "landcover_wood",
  73. "type": "fill",
  74. "source": "openmaptiles",
  75. "source-layer": "landcover",
  76. "filter": [
  77. "==",
  78. "class",
  79. "wood"
  80. ],
  81. "paint": {
  82. "fill-color": "rgba(1,1,137,0)",
  83. "fill-opacity": 1
  84. }
  85. },
  86. {
  87. "id": "water",
  88. "type": "fill",
  89. "source": "openmaptiles",
  90. "source-layer": "water",
  91. "filter": [
  92. "all",
  93. [
  94. "==",
  95. "$type",
  96. "Polygon"
  97. ],
  98. [
  99. "!=",
  100. "intermittent",
  101. 1
  102. ],
  103. [
  104. "!=",
  105. "brunnel",
  106. "tunnel"
  107. ]
  108. ],
  109. "layout": {
  110. "visibility": "visible"
  111. },
  112. "paint": {
  113. "fill-color": "rgba(12,59,122,1)"
  114. }
  115. },
  116. {
  117. "id": "water_intermittent",
  118. "type": "fill",
  119. "source": "openmaptiles",
  120. "source-layer": "water",
  121. "filter": [
  122. "all",
  123. [
  124. "==",
  125. "$type",
  126. "Polygon"
  127. ],
  128. [
  129. "==",
  130. "intermittent",
  131. 1
  132. ]
  133. ],
  134. "layout": {
  135. "visibility": "visible"
  136. },
  137. "paint": {
  138. "fill-color": "hsl(205, 56%, 73%)",
  139. "fill-opacity": 0.7
  140. }
  141. },
  142. {
  143. "id": "landcover-ice-shelf",
  144. "type": "fill",
  145. "source": "openmaptiles",
  146. "source-layer": "landcover",
  147. "filter": [
  148. "==",
  149. "subclass",
  150. "ice_shelf"
  151. ],
  152. "layout": {
  153. "visibility": "visible"
  154. },
  155. "paint": {
  156. "fill-color": "hsl(47, 26%, 88%)",
  157. "fill-opacity": 0.8
  158. }
  159. },
  160. {
  161. "id": "landcover-glacier",
  162. "type": "fill",
  163. "source": "openmaptiles",
  164. "source-layer": "landcover",
  165. "filter": [
  166. "==",
  167. "subclass",
  168. "glacier"
  169. ],
  170. "layout": {
  171. "visibility": "visible"
  172. },
  173. "paint": {
  174. "fill-color": "rgba(15,15,59,.7)",
  175. "fill-opacity": {
  176. "base": 1,
  177. "stops": [
  178. [
  179. 0,
  180. 1
  181. ],
  182. [
  183. 8,
  184. 0.5
  185. ]
  186. ]
  187. }
  188. }
  189. },
  190. {
  191. "id": "landcover_sand",
  192. "type": "fill",
  193. "metadata": {},
  194. "source": "openmaptiles",
  195. "source-layer": "landcover",
  196. "filter": [
  197. "all",
  198. [
  199. "in",
  200. "class",
  201. "sand"
  202. ]
  203. ],
  204. "paint": {
  205. "fill-antialias": false,
  206. "fill-color": "rgba(232, 214, 38, 1)",
  207. "fill-opacity": 0.3
  208. }
  209. },
  210. {
  211. "id": "landuse",
  212. "type": "fill",
  213. "source": "openmaptiles",
  214. "source-layer": "landuse",
  215. "filter": [
  216. "==",
  217. "class",
  218. "agriculture"
  219. ],
  220. "layout": {
  221. "visibility": "visible"
  222. },
  223. "paint": {
  224. "fill-color": "#eae0d0"
  225. }
  226. },
  227. {
  228. "id": "landuse_overlay_national_park",
  229. "type": "fill",
  230. "source": "openmaptiles",
  231. "source-layer": "landcover",
  232. "filter": [
  233. "==",
  234. "class",
  235. "national_park"
  236. ],
  237. "paint": {
  238. "fill-color": "#E1EBB0",
  239. "fill-opacity": {
  240. "base": 1,
  241. "stops": [
  242. [
  243. 5,
  244. 0
  245. ],
  246. [
  247. 9,
  248. 0.75
  249. ]
  250. ]
  251. }
  252. }
  253. },
  254. {
  255. "id": "waterway-tunnel",
  256. "type": "line",
  257. "source": "openmaptiles",
  258. "source-layer": "waterway",
  259. "filter": [
  260. "all",
  261. [
  262. "==",
  263. "$type",
  264. "LineString"
  265. ],
  266. [
  267. "==",
  268. "brunnel",
  269. "tunnel"
  270. ]
  271. ],
  272. "layout": {
  273. "visibility": "visible"
  274. },
  275. "paint": {
  276. "line-color": "hsl(205, 56%, 73%)",
  277. "line-dasharray": [
  278. 3,
  279. 3
  280. ],
  281. "line-gap-width": {
  282. "stops": [
  283. [
  284. 12,
  285. 0
  286. ],
  287. [
  288. 20,
  289. 6
  290. ]
  291. ]
  292. },
  293. "line-opacity": 1,
  294. "line-width": {
  295. "base": 1.4,
  296. "stops": [
  297. [
  298. 8,
  299. 1
  300. ],
  301. [
  302. 20,
  303. 2
  304. ]
  305. ]
  306. }
  307. }
  308. },
  309. {
  310. "id": "waterway",
  311. "type": "line",
  312. "source": "openmaptiles",
  313. "source-layer": "waterway",
  314. "filter": [
  315. "all",
  316. [
  317. "==",
  318. "$type",
  319. "LineString"
  320. ],
  321. [
  322. "!in",
  323. "brunnel",
  324. "tunnel",
  325. "bridge"
  326. ],
  327. [
  328. "!=",
  329. "intermittent",
  330. 1
  331. ]
  332. ],
  333. "layout": {
  334. "visibility": "visible"
  335. },
  336. "paint": {
  337. "line-opacity": 1,
  338. "line-width": {
  339. "base": 1.4,
  340. "stops": [
  341. [
  342. 8,
  343. 1
  344. ],
  345. [
  346. 20,
  347. 8
  348. ]
  349. ]
  350. },
  351. "line-color": "rgba(9,38,86,1)"
  352. }
  353. },
  354. {
  355. "id": "waterway_intermittent",
  356. "type": "line",
  357. "source": "openmaptiles",
  358. "source-layer": "waterway",
  359. "filter": [
  360. "all",
  361. [
  362. "==",
  363. "$type",
  364. "LineString"
  365. ],
  366. [
  367. "!in",
  368. "brunnel",
  369. "tunnel",
  370. "bridge"
  371. ],
  372. [
  373. "==",
  374. "intermittent",
  375. 1
  376. ]
  377. ],
  378. "layout": {
  379. "visibility": "visible"
  380. },
  381. "paint": {
  382. "line-color": "hsl(205, 56%, 73%)",
  383. "line-dasharray": [
  384. 2,
  385. 1
  386. ],
  387. "line-opacity": 1,
  388. "line-width": {
  389. "base": 1.4,
  390. "stops": [
  391. [
  392. 8,
  393. 1
  394. ],
  395. [
  396. 20,
  397. 8
  398. ]
  399. ]
  400. }
  401. }
  402. },
  403. {
  404. "id": "tunnel_railway_transit",
  405. "type": "line",
  406. "source": "openmaptiles",
  407. "source-layer": "transportation",
  408. "minzoom": 0,
  409. "filter": [
  410. "all",
  411. [
  412. "==",
  413. "$type",
  414. "LineString"
  415. ],
  416. [
  417. "==",
  418. "brunnel",
  419. "tunnel"
  420. ],
  421. [
  422. "==",
  423. "class",
  424. "transit"
  425. ]
  426. ],
  427. "layout": {
  428. "line-cap": "butt",
  429. "line-join": "miter"
  430. },
  431. "paint": {
  432. "line-color": "hsl(34, 12%, 66%)",
  433. "line-dasharray": [
  434. 3,
  435. 3
  436. ],
  437. "line-opacity": {
  438. "base": 1,
  439. "stops": [
  440. [
  441. 11,
  442. 0
  443. ],
  444. [
  445. 16,
  446. 1
  447. ]
  448. ]
  449. }
  450. }
  451. },
  452. {
  453. "id": "housenumber",
  454. "type": "symbol",
  455. "source": "openmaptiles",
  456. "source-layer": "housenumber",
  457. "minzoom": 17,
  458. "filter": [
  459. "==",
  460. "$type",
  461. "Point"
  462. ],
  463. "layout": {
  464. "text-field": "{housenumber}",
  465. "text-font": [
  466. "KlokanTech Noto Sans Regular"
  467. ],
  468. "text-size": 16
  469. },
  470. "paint": {
  471. "text-halo-color": "rgba(0,0,0,1)",
  472. "text-color": "rgba(0,167,210,1)",
  473. "icon-opacity": 1,
  474. "text-halo-width": 1
  475. }
  476. },
  477. {
  478. "id": "road_area_pier",
  479. "type": "fill",
  480. "metadata": {},
  481. "source": "openmaptiles",
  482. "source-layer": "transportation",
  483. "filter": [
  484. "all",
  485. [
  486. "==",
  487. "$type",
  488. "Polygon"
  489. ],
  490. [
  491. "==",
  492. "class",
  493. "pier"
  494. ]
  495. ],
  496. "layout": {
  497. "visibility": "visible"
  498. },
  499. "paint": {
  500. "fill-antialias": true,
  501. "fill-color": "hsl(47, 26%, 88%)"
  502. }
  503. },
  504. {
  505. "id": "road_pier",
  506. "type": "line",
  507. "metadata": {},
  508. "source": "openmaptiles",
  509. "source-layer": "transportation",
  510. "filter": [
  511. "all",
  512. [
  513. "==",
  514. "$type",
  515. "LineString"
  516. ],
  517. [
  518. "in",
  519. "class",
  520. "pier"
  521. ]
  522. ],
  523. "layout": {
  524. "line-cap": "round",
  525. "line-join": "round"
  526. },
  527. "paint": {
  528. "line-color": "hsl(47, 26%, 88%)",
  529. "line-width": {
  530. "base": 1.2,
  531. "stops": [
  532. [
  533. 15,
  534. 1
  535. ],
  536. [
  537. 17,
  538. 4
  539. ]
  540. ]
  541. }
  542. }
  543. },
  544. {
  545. "id": "road_bridge_area",
  546. "type": "fill",
  547. "source": "openmaptiles",
  548. "source-layer": "transportation",
  549. "filter": [
  550. "all",
  551. [
  552. "==",
  553. "$type",
  554. "Polygon"
  555. ],
  556. [
  557. "in",
  558. "brunnel",
  559. "bridge"
  560. ]
  561. ],
  562. "layout": {},
  563. "paint": {
  564. "fill-color": "rgba(10,26,41,1)",
  565. "fill-opacity": 0.5
  566. }
  567. },
  568. {
  569. "id": "road_path",
  570. "type": "line",
  571. "source": "openmaptiles",
  572. "source-layer": "transportation",
  573. "filter": [
  574. "all",
  575. [
  576. "==",
  577. "$type",
  578. "LineString"
  579. ],
  580. [
  581. "in",
  582. "class",
  583. "path",
  584. "track"
  585. ]
  586. ],
  587. "layout": {
  588. "line-cap": "square",
  589. "line-join": "bevel"
  590. },
  591. "paint": {
  592. "line-color": "hsl(0, 0%, 50%)",
  593. "line-dasharray": [
  594. 1
  595. ],
  596. "line-width": {
  597. "base": 1.55,
  598. "stops": [
  599. [
  600. 4,
  601. 0.25
  602. ],
  603. [
  604. 20,
  605. 10
  606. ]
  607. ]
  608. }
  609. }
  610. },
  611. {
  612. "id": "road_minor",
  613. "type": "line",
  614. "source": "openmaptiles",
  615. "source-layer": "transportation",
  616. "minzoom": 13,
  617. "filter": [
  618. "all",
  619. [
  620. "==",
  621. "$type",
  622. "LineString"
  623. ],
  624. [
  625. "in",
  626. "class",
  627. "minor",
  628. "service"
  629. ]
  630. ],
  631. "layout": {
  632. "line-cap": "round",
  633. "line-join": "round"
  634. },
  635. "paint": {
  636. "line-width": {
  637. "base": 1.55,
  638. "stops": [
  639. [
  640. 4,
  641. 0.25
  642. ],
  643. [
  644. 20,
  645. 30
  646. ]
  647. ]
  648. },
  649. "line-color": "rgba(10,26,41,1)"
  650. }
  651. },
  652. {
  653. "id": "road_minor case",
  654. "type": "line",
  655. "source": "openmaptiles",
  656. "source-layer": "transportation",
  657. "minzoom": 13,
  658. "filter": [
  659. "all",
  660. [
  661. "==",
  662. "$type",
  663. "LineString"
  664. ],
  665. [
  666. "in",
  667. "class",
  668. "minor",
  669. "service"
  670. ]
  671. ],
  672. "layout": {},
  673. "paint": {
  674. "line-width": {
  675. "stops": [
  676. [
  677. 12,
  678. 0.75
  679. ],
  680. [
  681. 20,
  682. 2
  683. ]
  684. ],
  685. "base": 1.2
  686. },
  687. "line-gap-width": {
  688. "stops": [
  689. [
  690. 13,
  691. 0
  692. ],
  693. [
  694. 14,
  695. 2
  696. ],
  697. [
  698. 18,
  699. 10
  700. ]
  701. ],
  702. "base": 1.5
  703. },
  704. "line-opacity": {
  705. "stops": [
  706. [
  707. 13.99,
  708. 0
  709. ],
  710. [
  711. 14,
  712. 1
  713. ]
  714. ],
  715. "base": 1
  716. },
  717. "line-color": "rgba(25,81,133,1)"
  718. }
  719. },
  720. {
  721. "id": "tunnel_minor",
  722. "type": "line",
  723. "source": "openmaptiles",
  724. "source-layer": "transportation",
  725. "filter": [
  726. "all",
  727. [
  728. "==",
  729. "$type",
  730. "LineString"
  731. ],
  732. [
  733. "==",
  734. "brunnel",
  735. "tunnel"
  736. ],
  737. [
  738. "==",
  739. "class",
  740. "minor_road"
  741. ]
  742. ],
  743. "layout": {
  744. "line-cap": "butt",
  745. "line-join": "miter"
  746. },
  747. "paint": {
  748. "line-color": "#efefef",
  749. "line-dasharray": [
  750. 0.36,
  751. 0.18
  752. ],
  753. "line-width": {
  754. "base": 1.55,
  755. "stops": [
  756. [
  757. 4,
  758. 0.25
  759. ],
  760. [
  761. 20,
  762. 30
  763. ]
  764. ]
  765. }
  766. }
  767. },
  768. {
  769. "id": "tunnel_major",
  770. "type": "line",
  771. "source": "openmaptiles",
  772. "source-layer": "transportation",
  773. "filter": [
  774. "all",
  775. [
  776. "==",
  777. "$type",
  778. "LineString"
  779. ],
  780. [
  781. "==",
  782. "brunnel",
  783. "tunnel"
  784. ],
  785. [
  786. "in",
  787. "class",
  788. "primary",
  789. "secondary",
  790. "tertiary",
  791. "trunk"
  792. ]
  793. ],
  794. "layout": {
  795. "line-cap": "butt",
  796. "line-join": "miter"
  797. },
  798. "paint": {
  799. "line-color": "#fff",
  800. "line-dasharray": [
  801. 0.28,
  802. 0.14
  803. ],
  804. "line-width": {
  805. "base": 1.4,
  806. "stops": [
  807. [
  808. 6,
  809. 0.5
  810. ],
  811. [
  812. 20,
  813. 30
  814. ]
  815. ]
  816. }
  817. }
  818. },
  819. {
  820. "id": "aeroway-area",
  821. "type": "fill",
  822. "metadata": {
  823. "mapbox:group": "1444849345966.4436"
  824. },
  825. "source": "openmaptiles",
  826. "source-layer": "aeroway",
  827. "minzoom": 4,
  828. "filter": [
  829. "all",
  830. [
  831. "==",
  832. "$type",
  833. "Polygon"
  834. ],
  835. [
  836. "in",
  837. "class",
  838. "runway",
  839. "taxiway"
  840. ]
  841. ],
  842. "layout": {
  843. "visibility": "visible"
  844. },
  845. "paint": {
  846. "fill-color": "rgba(255, 255, 255, 1)",
  847. "fill-opacity": {
  848. "base": 1,
  849. "stops": [
  850. [
  851. 13,
  852. 0
  853. ],
  854. [
  855. 14,
  856. 1
  857. ]
  858. ]
  859. }
  860. }
  861. },
  862. {
  863. "id": "aeroway-taxiway",
  864. "type": "line",
  865. "metadata": {
  866. "mapbox:group": "1444849345966.4436"
  867. },
  868. "source": "openmaptiles",
  869. "source-layer": "aeroway",
  870. "minzoom": 12,
  871. "filter": [
  872. "all",
  873. [
  874. "in",
  875. "class",
  876. "taxiway"
  877. ],
  878. [
  879. "==",
  880. "$type",
  881. "LineString"
  882. ]
  883. ],
  884. "layout": {
  885. "line-cap": "round",
  886. "line-join": "round",
  887. "visibility": "none"
  888. },
  889. "paint": {
  890. "line-color": "rgba(255, 255, 255, 1)",
  891. "line-opacity": 1,
  892. "line-width": {
  893. "base": 1.5,
  894. "stops": [
  895. [
  896. 12,
  897. 1
  898. ],
  899. [
  900. 17,
  901. 10
  902. ]
  903. ]
  904. }
  905. }
  906. },
  907. {
  908. "id": "aeroway-runway",
  909. "type": "line",
  910. "metadata": {
  911. "mapbox:group": "1444849345966.4436"
  912. },
  913. "source": "openmaptiles",
  914. "source-layer": "aeroway",
  915. "minzoom": 4,
  916. "filter": [
  917. "all",
  918. [
  919. "in",
  920. "class",
  921. "runway"
  922. ],
  923. [
  924. "==",
  925. "$type",
  926. "LineString"
  927. ]
  928. ],
  929. "layout": {
  930. "line-cap": "round",
  931. "line-join": "round",
  932. "visibility": "visible"
  933. },
  934. "paint": {
  935. "line-color": "rgba(15,15,59, 1)",
  936. "line-opacity": 1,
  937. "line-width": {
  938. "base": 1.5,
  939. "stops": [
  940. [
  941. 11,
  942. 4
  943. ],
  944. [
  945. 17,
  946. 50
  947. ]
  948. ]
  949. }
  950. }
  951. },
  952. {
  953. "id": "road_trunk_primary",
  954. "type": "line",
  955. "source": "openmaptiles",
  956. "source-layer": "transportation",
  957. "filter": [
  958. "all",
  959. [
  960. "==",
  961. "$type",
  962. "LineString"
  963. ],
  964. [
  965. "in",
  966. "class",
  967. "trunk",
  968. "primary"
  969. ]
  970. ],
  971. "layout": {
  972. "line-cap": "round",
  973. "line-join": "round"
  974. },
  975. "paint": {
  976. "line-color": "rgba(10,26,41,1)",
  977. "line-width": {
  978. "base": 1.4,
  979. "stops": [
  980. [
  981. 6,
  982. 0.5
  983. ],
  984. [
  985. 20,
  986. 30
  987. ]
  988. ]
  989. }
  990. }
  991. },
  992. {
  993. "id": "road_trunk_primary case",
  994. "type": "line",
  995. "source": "openmaptiles",
  996. "source-layer": "transportation",
  997. "filter": [
  998. "all",
  999. [
  1000. "==",
  1001. "$type",
  1002. "LineString"
  1003. ],
  1004. [
  1005. "in",
  1006. "class",
  1007. "trunk",
  1008. "primary"
  1009. ]
  1010. ],
  1011. "layout": {},
  1012. "paint": {
  1013. "line-width": {
  1014. "stops": [
  1015. [
  1016. 12,
  1017. 0.75
  1018. ],
  1019. [
  1020. 20,
  1021. 2
  1022. ]
  1023. ],
  1024. "base": 1.2
  1025. },
  1026. "line-gap-width": {
  1027. "stops": [
  1028. [
  1029. 13,
  1030. 0
  1031. ],
  1032. [
  1033. 14,
  1034. 2
  1035. ],
  1036. [
  1037. 18,
  1038. 10
  1039. ]
  1040. ],
  1041. "base": 1.5
  1042. },
  1043. "line-opacity": {
  1044. "stops": [
  1045. [
  1046. 10,
  1047. 0
  1048. ],
  1049. [
  1050. 14,
  1051. 1
  1052. ]
  1053. ],
  1054. "base": 1
  1055. },
  1056. "line-color": "rgba(25,81,133,1)"
  1057. }
  1058. },
  1059. {
  1060. "id": "road_secondary_tertiary",
  1061. "type": "line",
  1062. "source": "openmaptiles",
  1063. "source-layer": "transportation",
  1064. "filter": [
  1065. "all",
  1066. [
  1067. "==",
  1068. "$type",
  1069. "LineString"
  1070. ],
  1071. [
  1072. "in",
  1073. "class",
  1074. "secondary",
  1075. "tertiary"
  1076. ]
  1077. ],
  1078. "layout": {
  1079. "line-cap": "round",
  1080. "line-join": "round"
  1081. },
  1082. "paint": {
  1083. "line-color": "rgba(10,26,41,1)",
  1084. "line-width": {
  1085. "base": 1.4,
  1086. "stops": [
  1087. [
  1088. 6,
  1089. 0.5
  1090. ],
  1091. [
  1092. 20,
  1093. 20
  1094. ]
  1095. ]
  1096. }
  1097. }
  1098. },
  1099. {
  1100. "id": "road_secondary_tertiary case",
  1101. "type": "line",
  1102. "source": "openmaptiles",
  1103. "source-layer": "transportation",
  1104. "filter": [
  1105. "all",
  1106. [
  1107. "==",
  1108. "$type",
  1109. "LineString"
  1110. ],
  1111. [
  1112. "in",
  1113. "class",
  1114. "secondary",
  1115. "tertiary"
  1116. ]
  1117. ],
  1118. "layout": {},
  1119. "paint": {
  1120. "line-width": {
  1121. "stops": [
  1122. [
  1123. 12,
  1124. 0.75
  1125. ],
  1126. [
  1127. 20,
  1128. 2
  1129. ]
  1130. ],
  1131. "base": 1.2
  1132. },
  1133. "line-gap-width": {
  1134. "stops": [
  1135. [
  1136. 13,
  1137. 0
  1138. ],
  1139. [
  1140. 14,
  1141. 2
  1142. ],
  1143. [
  1144. 18,
  1145. 10
  1146. ]
  1147. ],
  1148. "base": 1.5
  1149. },
  1150. "line-opacity": {
  1151. "stops": [
  1152. [
  1153. 10,
  1154. 0
  1155. ],
  1156. [
  1157. 14,
  1158. 1
  1159. ]
  1160. ],
  1161. "base": 1
  1162. },
  1163. "line-color": "rgba(25,81,133,1)"
  1164. }
  1165. },
  1166. {
  1167. "id": "road_major_motorway",
  1168. "type": "line",
  1169. "source": "openmaptiles",
  1170. "source-layer": "transportation",
  1171. "filter": [
  1172. "all",
  1173. [
  1174. "==",
  1175. "$type",
  1176. "LineString"
  1177. ],
  1178. [
  1179. "==",
  1180. "class",
  1181. "motorway"
  1182. ]
  1183. ],
  1184. "layout": {
  1185. "line-cap": "round",
  1186. "line-join": "round"
  1187. },
  1188. "paint": {
  1189. "line-color": "rgba(10,26,41,1)",
  1190. "line-offset": 0,
  1191. "line-width": {
  1192. "base": 1.4,
  1193. "stops": [
  1194. [
  1195. 8,
  1196. 1
  1197. ],
  1198. [
  1199. 16,
  1200. 10
  1201. ]
  1202. ]
  1203. }
  1204. }
  1205. },
  1206. {
  1207. "id": "railway-transit",
  1208. "type": "line",
  1209. "source": "openmaptiles",
  1210. "source-layer": "transportation",
  1211. "filter": [
  1212. "all",
  1213. [
  1214. "==",
  1215. "class",
  1216. "transit"
  1217. ],
  1218. [
  1219. "!=",
  1220. "brunnel",
  1221. "tunnel"
  1222. ]
  1223. ],
  1224. "layout": {
  1225. "visibility": "visible"
  1226. },
  1227. "paint": {
  1228. "line-color": "hsl(34, 12%, 66%)",
  1229. "line-opacity": {
  1230. "base": 1,
  1231. "stops": [
  1232. [
  1233. 11,
  1234. 0
  1235. ],
  1236. [
  1237. 16,
  1238. 1
  1239. ]
  1240. ]
  1241. }
  1242. }
  1243. },
  1244. {
  1245. "id": "railway",
  1246. "type": "line",
  1247. "source": "openmaptiles",
  1248. "source-layer": "transportation",
  1249. "filter": [
  1250. "==",
  1251. "class",
  1252. "rail"
  1253. ],
  1254. "layout": {
  1255. "visibility": "visible"
  1256. },
  1257. "paint": {
  1258. "line-color": "rgba(183, 174, 161, 1)",
  1259. "line-opacity": {
  1260. "base": 1,
  1261. "stops": [
  1262. [
  1263. 11,
  1264. 0
  1265. ],
  1266. [
  1267. 16,
  1268. 1
  1269. ]
  1270. ]
  1271. }
  1272. }
  1273. },
  1274. {
  1275. "id": "waterway-bridge-case",
  1276. "type": "line",
  1277. "source": "openmaptiles",
  1278. "source-layer": "waterway",
  1279. "filter": [
  1280. "all",
  1281. [
  1282. "==",
  1283. "$type",
  1284. "LineString"
  1285. ],
  1286. [
  1287. "==",
  1288. "brunnel",
  1289. "bridge"
  1290. ]
  1291. ],
  1292. "layout": {
  1293. "line-cap": "butt",
  1294. "line-join": "miter"
  1295. },
  1296. "paint": {
  1297. "line-color": "#bbbbbb",
  1298. "line-gap-width": {
  1299. "base": 1.55,
  1300. "stops": [
  1301. [
  1302. 4,
  1303. 0.25
  1304. ],
  1305. [
  1306. 20,
  1307. 30
  1308. ]
  1309. ]
  1310. },
  1311. "line-width": {
  1312. "base": 1.6,
  1313. "stops": [
  1314. [
  1315. 12,
  1316. 0.5
  1317. ],
  1318. [
  1319. 20,
  1320. 10
  1321. ]
  1322. ]
  1323. }
  1324. }
  1325. },
  1326. {
  1327. "id": "waterway-bridge",
  1328. "type": "line",
  1329. "source": "openmaptiles",
  1330. "source-layer": "waterway",
  1331. "filter": [
  1332. "all",
  1333. [
  1334. "==",
  1335. "$type",
  1336. "LineString"
  1337. ],
  1338. [
  1339. "==",
  1340. "brunnel",
  1341. "bridge"
  1342. ]
  1343. ],
  1344. "layout": {
  1345. "line-cap": "round",
  1346. "line-join": "round"
  1347. },
  1348. "paint": {
  1349. "line-color": "hsl(205, 56%, 73%)",
  1350. "line-width": {
  1351. "base": 1.55,
  1352. "stops": [
  1353. [
  1354. 4,
  1355. 0.25
  1356. ],
  1357. [
  1358. 20,
  1359. 30
  1360. ]
  1361. ]
  1362. }
  1363. }
  1364. },
  1365. {
  1366. "id": "bridge_minor case",
  1367. "type": "line",
  1368. "source": "openmaptiles",
  1369. "source-layer": "transportation",
  1370. "filter": [
  1371. "all",
  1372. [
  1373. "==",
  1374. "$type",
  1375. "LineString"
  1376. ],
  1377. [
  1378. "==",
  1379. "brunnel",
  1380. "bridge"
  1381. ],
  1382. [
  1383. "==",
  1384. "class",
  1385. "minor_road"
  1386. ]
  1387. ],
  1388. "layout": {},
  1389. "paint": {
  1390. "line-width": {
  1391. "stops": [
  1392. [
  1393. 12,
  1394. 0.75
  1395. ],
  1396. [
  1397. 20,
  1398. 2
  1399. ]
  1400. ],
  1401. "base": 1.2
  1402. },
  1403. "line-gap-width": {
  1404. "stops": [
  1405. [
  1406. 13,
  1407. 0
  1408. ],
  1409. [
  1410. 14,
  1411. 2
  1412. ],
  1413. [
  1414. 18,
  1415. 10
  1416. ]
  1417. ],
  1418. "base": 1.5
  1419. },
  1420. "line-opacity": {
  1421. "stops": [
  1422. [
  1423. 13.99,
  1424. 0
  1425. ],
  1426. [
  1427. 14,
  1428. 1
  1429. ]
  1430. ],
  1431. "base": 1
  1432. },
  1433. "line-color": "rgba(25,81,133,1)"
  1434. }
  1435. },
  1436. {
  1437. "id": "bridge_major case",
  1438. "type": "line",
  1439. "source": "openmaptiles",
  1440. "source-layer": "transportation",
  1441. "filter": [
  1442. "all",
  1443. [
  1444. "==",
  1445. "$type",
  1446. "LineString"
  1447. ],
  1448. [
  1449. "==",
  1450. "brunnel",
  1451. "bridge"
  1452. ],
  1453. [
  1454. "in",
  1455. "class",
  1456. "road",
  1457. "primary",
  1458. "secondary",
  1459. "tertiary",
  1460. "trunk"
  1461. ]
  1462. ],
  1463. "layout": {},
  1464. "paint": {
  1465. "line-width": {
  1466. "stops": [
  1467. [
  1468. 12,
  1469. 0.75
  1470. ],
  1471. [
  1472. 20,
  1473. 2
  1474. ]
  1475. ],
  1476. "base": 1.2
  1477. },
  1478. "line-gap-width": {
  1479. "stops": [
  1480. [
  1481. 13,
  1482. 0
  1483. ],
  1484. [
  1485. 14,
  1486. 2
  1487. ],
  1488. [
  1489. 18,
  1490. 10
  1491. ]
  1492. ],
  1493. "base": 1.5
  1494. },
  1495. "line-opacity": {
  1496. "stops": [
  1497. [
  1498. 13.99,
  1499. 0
  1500. ],
  1501. [
  1502. 14,
  1503. 1
  1504. ]
  1505. ],
  1506. "base": 1
  1507. },
  1508. "line-color": "rgba(25,81,133,1)"
  1509. }
  1510. },
  1511. {
  1512. "id": "bridge_minor",
  1513. "type": "line",
  1514. "source": "openmaptiles",
  1515. "source-layer": "transportation",
  1516. "filter": [
  1517. "all",
  1518. [
  1519. "==",
  1520. "$type",
  1521. "LineString"
  1522. ],
  1523. [
  1524. "==",
  1525. "brunnel",
  1526. "bridge"
  1527. ],
  1528. [
  1529. "==",
  1530. "class",
  1531. "minor_road"
  1532. ]
  1533. ],
  1534. "layout": {
  1535. "line-cap": "round",
  1536. "line-join": "round"
  1537. },
  1538. "paint": {
  1539. "line-color": "#efefef",
  1540. "line-width": {
  1541. "base": 1.55,
  1542. "stops": [
  1543. [
  1544. 4,
  1545. 0.25
  1546. ],
  1547. [
  1548. 20,
  1549. 30
  1550. ]
  1551. ]
  1552. }
  1553. }
  1554. },
  1555. {
  1556. "id": "bridge_major",
  1557. "type": "line",
  1558. "source": "openmaptiles",
  1559. "source-layer": "transportation",
  1560. "filter": [
  1561. "all",
  1562. [
  1563. "==",
  1564. "$type",
  1565. "LineString"
  1566. ],
  1567. [
  1568. "==",
  1569. "brunnel",
  1570. "bridge"
  1571. ],
  1572. [
  1573. "in",
  1574. "class",
  1575. "primary",
  1576. "secondary",
  1577. "tertiary",
  1578. "trunk"
  1579. ]
  1580. ],
  1581. "layout": {
  1582. "line-cap": "round",
  1583. "line-join": "round"
  1584. },
  1585. "paint": {
  1586. "line-color": "rgba(10,26,41,1)",
  1587. "line-width": {
  1588. "base": 1.4,
  1589. "stops": [
  1590. [
  1591. 6,
  1592. 0.5
  1593. ],
  1594. [
  1595. 20,
  1596. 30
  1597. ]
  1598. ]
  1599. }
  1600. }
  1601. },
  1602. {
  1603. "id": "admin_sub",
  1604. "type": "line",
  1605. "source": "openmaptiles",
  1606. "source-layer": "boundary",
  1607. "filter": [
  1608. "all"
  1609. ],
  1610. "layout": {
  1611. "visibility": "visible",
  1612. "line-join": "round"
  1613. },
  1614. "paint": {
  1615. "line-opacity": 0,
  1616. "line-dasharray": [
  1617. 1,
  1618. 0
  1619. ],
  1620. "line-width": 1,
  1621. "line-color": "rgba(10,26,41,1)"
  1622. }
  1623. },
  1624. {
  1625. "id": "admin_country_z0-4",
  1626. "type": "line",
  1627. "source": "openmaptiles",
  1628. "source-layer": "boundary",
  1629. "minzoom": 0,
  1630. "maxzoom": 5,
  1631. "filter": [
  1632. "all",
  1633. [
  1634. "<=",
  1635. "admin_level",
  1636. 2
  1637. ],
  1638. [
  1639. "==",
  1640. "$type",
  1641. "LineString"
  1642. ],
  1643. [
  1644. "!has",
  1645. "claimed_by"
  1646. ]
  1647. ],
  1648. "layout": {
  1649. "line-cap": "round",
  1650. "line-join": "round",
  1651. "visibility": "visible"
  1652. },
  1653. "paint": {
  1654. "line-color": "rgba(255, 255, 255, 0)",
  1655. "line-width": {
  1656. "base": 1.3,
  1657. "stops": [
  1658. [
  1659. 3,
  1660. 0.5
  1661. ],
  1662. [
  1663. 22,
  1664. 15
  1665. ]
  1666. ]
  1667. }
  1668. }
  1669. },
  1670. {
  1671. "id": "admin_country_z5-",
  1672. "type": "line",
  1673. "source": "openmaptiles",
  1674. "source-layer": "boundary",
  1675. "minzoom": 5,
  1676. "filter": [
  1677. "all",
  1678. [
  1679. "<=",
  1680. "admin_level",
  1681. 2
  1682. ],
  1683. [
  1684. "==",
  1685. "$type",
  1686. "LineString"
  1687. ]
  1688. ],
  1689. "layout": {
  1690. "line-cap": "round",
  1691. "line-join": "round",
  1692. "visibility": "visible"
  1693. },
  1694. "paint": {
  1695. "line-color": "hsl(0, 0%, 60%)",
  1696. "line-width": {
  1697. "base": 1.3,
  1698. "stops": [
  1699. [
  1700. 3,
  1701. 0.5
  1702. ],
  1703. [
  1704. 22,
  1705. 15
  1706. ]
  1707. ]
  1708. }
  1709. }
  1710. },
  1711. {
  1712. "id": "poi_label",
  1713. "type": "symbol",
  1714. "source": "openmaptiles",
  1715. "source-layer": "poi",
  1716. "minzoom": 11,
  1717. "filter": [
  1718. "all",
  1719. [
  1720. "==",
  1721. "$type",
  1722. "Point"
  1723. ],
  1724. [
  1725. "==",
  1726. "rank",
  1727. 1
  1728. ]
  1729. ],
  1730. "layout": {
  1731. "icon-size": 1,
  1732. "text-anchor": "top",
  1733. "text-field": "{name:nonlatin}",
  1734. "text-font": [
  1735. "KlokanTech Noto Sans Regular"
  1736. ],
  1737. "text-max-width": 8,
  1738. "text-offset": [
  1739. 0,
  1740. 0.5
  1741. ],
  1742. "text-size": 14,
  1743. "visibility": "visible"
  1744. },
  1745. "paint": {
  1746. "text-halo-color": "rgba(0,0,0,1)",
  1747. "text-color": "rgba(0,167,210,1)",
  1748. "icon-opacity": 1,
  1749. "text-halo-width": 1
  1750. }
  1751. },
  1752. {
  1753. "id": "airport-label",
  1754. "type": "symbol",
  1755. "source": "openmaptiles",
  1756. "source-layer": "aerodrome_label",
  1757. "minzoom": 10,
  1758. "filter": [
  1759. "all",
  1760. [
  1761. "has",
  1762. "iata"
  1763. ]
  1764. ],
  1765. "layout": {
  1766. "icon-size": 1,
  1767. "text-anchor": "top",
  1768. "text-field": "{name:nonlatin}",
  1769. "text-font": [
  1770. "KlokanTech Noto Sans Regular"
  1771. ],
  1772. "text-max-width": 8,
  1773. "text-offset": [
  1774. 0,
  1775. 0.5
  1776. ],
  1777. "text-size": 14,
  1778. "visibility": "visible"
  1779. },
  1780. "paint": {
  1781. "text-halo-color": "rgba(0,0,0,1)",
  1782. "text-color": "rgba(0,167,210,1)",
  1783. "icon-opacity": 1,
  1784. "text-halo-width": 1
  1785. }
  1786. },
  1787. {
  1788. "id": "road_major_label",
  1789. "type": "symbol",
  1790. "source": "openmaptiles",
  1791. "source-layer": "transportation_name",
  1792. "minzoom": 10,
  1793. "filter": [
  1794. "==",
  1795. "$type",
  1796. "LineString"
  1797. ],
  1798. "layout": {
  1799. "symbol-placement": "line",
  1800. "text-field": " {name:nonlatin}",
  1801. "text-font": [
  1802. "KlokanTech Noto Sans CJK Bold"
  1803. ],
  1804. "text-letter-spacing": 0.1,
  1805. "text-rotation-alignment": "map",
  1806. "text-size": {
  1807. "base": 1.4,
  1808. "stops": [
  1809. [
  1810. 10,
  1811. 8
  1812. ],
  1813. [
  1814. 20,
  1815. 14
  1816. ]
  1817. ]
  1818. },
  1819. "text-transform": "uppercase",
  1820. "visibility": "visible"
  1821. },
  1822. "paint": {
  1823. "text-halo-color": "rgba(0,0,0,1)",
  1824. "text-color": "rgba(0,167,210,1)",
  1825. "icon-opacity": 1,
  1826. "text-halo-width": 1
  1827. }
  1828. },
  1829. {
  1830. "id": "place_label_other",
  1831. "type": "symbol",
  1832. "source": "openmaptiles",
  1833. "source-layer": "place",
  1834. "minzoom": 8,
  1835. "filter": [
  1836. "all",
  1837. [
  1838. "==",
  1839. "$type",
  1840. "Point"
  1841. ],
  1842. [
  1843. "!in",
  1844. "class",
  1845. "city",
  1846. "state",
  1847. "country",
  1848. "continent"
  1849. ]
  1850. ],
  1851. "layout": {
  1852. "text-anchor": "center",
  1853. "text-field": "{name:nonlatin}",
  1854. "text-font": [
  1855. "KlokanTech Noto Sans Regular"
  1856. ],
  1857. "text-max-width": 6,
  1858. "text-size": 14,
  1859. "visibility": "none"
  1860. },
  1861. "paint": {
  1862. "text-halo-color": "rgba(0,0,0,1)",
  1863. "text-color": "rgba(0,167,210,1)",
  1864. "icon-opacity": 1,
  1865. "text-halo-width": 1
  1866. }
  1867. },
  1868. {
  1869. "id": "place_label_city",
  1870. "type": "symbol",
  1871. "source": "openmaptiles",
  1872. "source-layer": "place",
  1873. "minzoom": 16,
  1874. "filter": [
  1875. "all",
  1876. [
  1877. "==",
  1878. "$type",
  1879. "Point"
  1880. ],
  1881. [
  1882. "==",
  1883. "class",
  1884. "city"
  1885. ]
  1886. ],
  1887. "layout": {
  1888. "text-field": "{name:nonlatin}",
  1889. "text-font": [
  1890. "KlokanTech Noto Sans Regular"
  1891. ],
  1892. "text-max-width": 10,
  1893. "text-size": {
  1894. "stops": [
  1895. [
  1896. 8,
  1897. 15
  1898. ],
  1899. [
  1900. 10,
  1901. 15
  1902. ]
  1903. ]
  1904. }
  1905. },
  1906. "paint": {
  1907. "text-halo-color": "rgba(0,0,0,1)",
  1908. "text-color": "rgba(0,167,210,1)",
  1909. "icon-opacity": 1,
  1910. "text-halo-width": 1
  1911. }
  1912. },
  1913. {
  1914. "id": "country_label-other",
  1915. "type": "symbol",
  1916. "source": "openmaptiles",
  1917. "source-layer": "place",
  1918. "maxzoom": 12,
  1919. "filter": [
  1920. "all",
  1921. [
  1922. "==",
  1923. "$type",
  1924. "Point"
  1925. ],
  1926. [
  1927. "==",
  1928. "class",
  1929. "country"
  1930. ],
  1931. [
  1932. "!has",
  1933. "iso_a2"
  1934. ]
  1935. ],
  1936. "layout": {
  1937. "text-field": "{name:nonlatin}",
  1938. "text-font": [
  1939. "KlokanTech Noto Sans Regular"
  1940. ],
  1941. "text-max-width": 10,
  1942. "text-size": {
  1943. "stops": [
  1944. [
  1945. 3,
  1946. 20
  1947. ],
  1948. [
  1949. 8,
  1950. 30
  1951. ]
  1952. ]
  1953. },
  1954. "visibility": "visible"
  1955. },
  1956. "paint": {
  1957. "text-halo-color": "rgba(0,0,0,1)",
  1958. "text-color": "rgba(0,167,210,1)",
  1959. "icon-opacity": 1,
  1960. "text-halo-width": 1
  1961. }
  1962. },
  1963. {
  1964. "id": "country_label",
  1965. "type": "symbol",
  1966. "source": "openmaptiles",
  1967. "source-layer": "place",
  1968. "maxzoom": 12,
  1969. "filter": [
  1970. "all",
  1971. [
  1972. "==",
  1973. "$type",
  1974. "Point"
  1975. ],
  1976. [
  1977. "==",
  1978. "class",
  1979. "country"
  1980. ],
  1981. [
  1982. "has",
  1983. "iso_a2"
  1984. ]
  1985. ],
  1986. "layout": {
  1987. "text-field": "{name:nonlatin}",
  1988. "text-font": [
  1989. "KlokanTech Noto Sans Regular"
  1990. ],
  1991. "text-max-width": 10,
  1992. "text-size": 28,
  1993. "visibility": "visible"
  1994. },
  1995. "paint": {
  1996. "text-halo-color": "rgba(0,0,0,1)",
  1997. "text-color": "rgba(0,167,210,1)",
  1998. "icon-opacity": 1,
  1999. "text-halo-width": 1
  2000. }
  2001. },
  2002. {
  2003. "id": "building-3d",
  2004. "type": "fill-extrusion",
  2005. "metadata": {},
  2006. "source": "openmaptiles",
  2007. "source-layer": "building",
  2008. "minzoom": 14,
  2009. "filter": [
  2010. "all",
  2011. [
  2012. "!has",
  2013. "hide_3d"
  2014. ]
  2015. ],
  2016. "layout": {
  2017. "visibility": "visible"
  2018. },
  2019. "paint": {
  2020. "fill-extrusion-base": {
  2021. "type": "identity",
  2022. "property": "render_min_height"
  2023. },
  2024. "fill-extrusion-color": "rgba(15,15,59, 1)",
  2025. "fill-extrusion-height": {
  2026. "type": "identity",
  2027. "property": "render_height"
  2028. },
  2029. "fill-extrusion-opacity": 0.3
  2030. }
  2031. }
  2032. ],
  2033. "id": "basic"
  2034. }