Newer
Older
DH_Apicture / public / static / libs / mapbox / mapbox-street-style.json
@zhangqy zhangqy on 29 Nov 25 KB first commit
  1. {
  2. "version": 8,
  3. "name": "Mapbox Street",
  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": { "background-color": "rgba(238,251,255,1)" }
  25. },
  26. {
  27. "id": "landuse-residential",
  28. "type": "fill",
  29. "source": "openmaptiles",
  30. "source-layer": "landuse",
  31. "filter": [
  32. "all",
  33. ["==", "$type", "Polygon"],
  34. ["in", "class", "residential", "suburb", "neighbourhood"]
  35. ],
  36. "layout": { "visibility": "visible" },
  37. "paint": { "fill-color": "hsl(47, 13%, 86%)", "fill-opacity": 0.7 }
  38. },
  39. {
  40. "id": "landcover_grass",
  41. "type": "fill",
  42. "source": "openmaptiles",
  43. "source-layer": "landcover",
  44. "filter": ["==", "class", "grass"],
  45. "paint": { "fill-color": "#b4e49b", "fill-opacity": 1 }
  46. },
  47. {
  48. "id": "landcover_wood",
  49. "type": "fill",
  50. "source": "openmaptiles",
  51. "source-layer": "landcover",
  52. "filter": ["==", "class", "wood"],
  53. "paint": { "fill-color": "#b4e49b", "fill-opacity": 1 }
  54. },
  55. {
  56. "id": "water",
  57. "type": "fill",
  58. "source": "openmaptiles",
  59. "source-layer": "water",
  60. "filter": [
  61. "all",
  62. ["==", "$type", "Polygon"],
  63. ["!=", "intermittent", 1],
  64. ["!=", "brunnel", "tunnel"]
  65. ],
  66. "layout": { "visibility": "visible" },
  67. "paint": { "fill-color": "#75cff0" }
  68. },
  69. {
  70. "id": "water_intermittent",
  71. "type": "fill",
  72. "source": "openmaptiles",
  73. "source-layer": "water",
  74. "filter": ["all", ["==", "$type", "Polygon"], ["==", "intermittent", 1]],
  75. "layout": { "visibility": "visible" },
  76. "paint": { "fill-color": "hsl(205, 56%, 73%)", "fill-opacity": 0.7 }
  77. },
  78. {
  79. "id": "landcover-ice-shelf",
  80. "type": "fill",
  81. "source": "openmaptiles",
  82. "source-layer": "landcover",
  83. "filter": ["==", "subclass", "ice_shelf"],
  84. "layout": { "visibility": "visible" },
  85. "paint": { "fill-color": "hsl(47, 26%, 88%)", "fill-opacity": 0.8 }
  86. },
  87. {
  88. "id": "landcover-glacier",
  89. "type": "fill",
  90. "source": "openmaptiles",
  91. "source-layer": "landcover",
  92. "filter": ["==", "subclass", "glacier"],
  93. "layout": { "visibility": "visible" },
  94. "paint": {
  95. "fill-color": "hsl(47, 22%, 94%)",
  96. "fill-opacity": {
  97. "base": 1,
  98. "stops": [
  99. [0, 1],
  100. [8, 0.5]
  101. ]
  102. }
  103. }
  104. },
  105. {
  106. "id": "landcover_sand",
  107. "type": "fill",
  108. "metadata": {},
  109. "source": "openmaptiles",
  110. "source-layer": "landcover",
  111. "filter": ["all", ["in", "class", "sand"]],
  112. "paint": {
  113. "fill-antialias": false,
  114. "fill-color": "rgba(232, 214, 38, 1)",
  115. "fill-opacity": 0.3
  116. }
  117. },
  118. {
  119. "id": "landuse",
  120. "type": "fill",
  121. "source": "openmaptiles",
  122. "source-layer": "landuse",
  123. "filter": ["==", "class", "agriculture"],
  124. "layout": { "visibility": "visible" },
  125. "paint": { "fill-color": "#eae0d0" }
  126. },
  127. {
  128. "id": "landuse_overlay_national_park",
  129. "type": "fill",
  130. "source": "openmaptiles",
  131. "source-layer": "landcover",
  132. "filter": ["==", "class", "national_park"],
  133. "paint": {
  134. "fill-color": "#E1EBB0",
  135. "fill-opacity": {
  136. "base": 1,
  137. "stops": [
  138. [5, 0],
  139. [9, 0.75]
  140. ]
  141. }
  142. }
  143. },
  144. {
  145. "id": "waterway-tunnel",
  146. "type": "line",
  147. "source": "openmaptiles",
  148. "source-layer": "waterway",
  149. "filter": [
  150. "all",
  151. ["==", "$type", "LineString"],
  152. ["==", "brunnel", "tunnel"]
  153. ],
  154. "layout": { "visibility": "visible" },
  155. "paint": {
  156. "line-color": "hsl(205, 56%, 73%)",
  157. "line-dasharray": [3, 3],
  158. "line-gap-width": {
  159. "stops": [
  160. [12, 0],
  161. [20, 6]
  162. ]
  163. },
  164. "line-opacity": 1,
  165. "line-width": {
  166. "base": 1.4,
  167. "stops": [
  168. [8, 1],
  169. [20, 2]
  170. ]
  171. }
  172. }
  173. },
  174. {
  175. "id": "waterway",
  176. "type": "line",
  177. "source": "openmaptiles",
  178. "source-layer": "waterway",
  179. "filter": [
  180. "all",
  181. ["==", "$type", "LineString"],
  182. ["!in", "brunnel", "tunnel", "bridge"],
  183. ["!=", "intermittent", 1]
  184. ],
  185. "layout": { "visibility": "visible" },
  186. "paint": {
  187. "line-color": "hsl(205, 56%, 73%)",
  188. "line-opacity": 1,
  189. "line-width": {
  190. "base": 1.4,
  191. "stops": [
  192. [8, 1],
  193. [20, 8]
  194. ]
  195. }
  196. }
  197. },
  198. {
  199. "id": "waterway_intermittent",
  200. "type": "line",
  201. "source": "openmaptiles",
  202. "source-layer": "waterway",
  203. "filter": [
  204. "all",
  205. ["==", "$type", "LineString"],
  206. ["!in", "brunnel", "tunnel", "bridge"],
  207. ["==", "intermittent", 1]
  208. ],
  209. "layout": { "visibility": "visible" },
  210. "paint": {
  211. "line-color": "hsl(205, 56%, 73%)",
  212. "line-dasharray": [2, 1],
  213. "line-opacity": 1,
  214. "line-width": {
  215. "base": 1.4,
  216. "stops": [
  217. [8, 1],
  218. [20, 8]
  219. ]
  220. }
  221. }
  222. },
  223. {
  224. "id": "tunnel_railway_transit",
  225. "type": "line",
  226. "source": "openmaptiles",
  227. "source-layer": "transportation",
  228. "minzoom": 0,
  229. "filter": [
  230. "all",
  231. ["==", "$type", "LineString"],
  232. ["==", "brunnel", "tunnel"],
  233. ["==", "class", "transit"]
  234. ],
  235. "layout": { "line-cap": "butt", "line-join": "miter" },
  236. "paint": {
  237. "line-color": "hsl(34, 12%, 66%)",
  238. "line-dasharray": [3, 3],
  239. "line-opacity": {
  240. "base": 1,
  241. "stops": [
  242. [11, 0],
  243. [16, 1]
  244. ]
  245. }
  246. }
  247. },
  248. {
  249. "id": "housenumber",
  250. "type": "symbol",
  251. "source": "openmaptiles",
  252. "source-layer": "housenumber",
  253. "minzoom": 17,
  254. "filter": ["==", "$type", "Point"],
  255. "layout": {
  256. "text-field": "{housenumber}",
  257. "text-font": ["KlokanTech Noto Sans Regular"],
  258. "text-size": 10
  259. },
  260. "paint": { "text-color": "rgba(212, 177, 146, 1)" }
  261. },
  262. {
  263. "id": "road_area_pier",
  264. "type": "fill",
  265. "metadata": {},
  266. "source": "openmaptiles",
  267. "source-layer": "transportation",
  268. "filter": ["all", ["==", "$type", "Polygon"], ["==", "class", "pier"]],
  269. "layout": { "visibility": "visible" },
  270. "paint": { "fill-antialias": true, "fill-color": "hsl(47, 26%, 88%)" }
  271. },
  272. {
  273. "id": "road_pier",
  274. "type": "line",
  275. "metadata": {},
  276. "source": "openmaptiles",
  277. "source-layer": "transportation",
  278. "filter": ["all", ["==", "$type", "LineString"], ["in", "class", "pier"]],
  279. "layout": { "line-cap": "round", "line-join": "round" },
  280. "paint": {
  281. "line-color": "hsl(47, 26%, 88%)",
  282. "line-width": {
  283. "base": 1.2,
  284. "stops": [
  285. [15, 1],
  286. [17, 4]
  287. ]
  288. }
  289. }
  290. },
  291. {
  292. "id": "road_bridge_area",
  293. "type": "fill",
  294. "source": "openmaptiles",
  295. "source-layer": "transportation",
  296. "filter": [
  297. "all",
  298. ["==", "$type", "Polygon"],
  299. ["in", "brunnel", "bridge"]
  300. ],
  301. "layout": {},
  302. "paint": { "fill-color": "hsl(47, 26%, 88%)", "fill-opacity": 0.5 }
  303. },
  304. {
  305. "id": "road_path",
  306. "type": "line",
  307. "source": "openmaptiles",
  308. "source-layer": "transportation",
  309. "filter": [
  310. "all",
  311. ["==", "$type", "LineString"],
  312. ["in", "class", "path", "track"]
  313. ],
  314. "layout": { "line-cap": "square", "line-join": "bevel" },
  315. "paint": {
  316. "line-color": "hsl(0, 0%, 97%)",
  317. "line-dasharray": [1, 1],
  318. "line-width": {
  319. "base": 1.55,
  320. "stops": [
  321. [4, 0.25],
  322. [20, 10]
  323. ]
  324. }
  325. }
  326. },
  327. {
  328. "id": "road_minor",
  329. "type": "line",
  330. "source": "openmaptiles",
  331. "source-layer": "transportation",
  332. "minzoom": 13,
  333. "filter": [
  334. "all",
  335. ["==", "$type", "LineString"],
  336. ["in", "class", "minor", "service"]
  337. ],
  338. "layout": { "line-cap": "round", "line-join": "round" },
  339. "paint": {
  340. "line-color": "hsl(0, 0%, 97%)",
  341. "line-width": {
  342. "base": 1.55,
  343. "stops": [
  344. [4, 0.25],
  345. [20, 30]
  346. ]
  347. }
  348. }
  349. },
  350. {
  351. "id": "tunnel_minor",
  352. "type": "line",
  353. "source": "openmaptiles",
  354. "source-layer": "transportation",
  355. "filter": [
  356. "all",
  357. ["==", "$type", "LineString"],
  358. ["==", "brunnel", "tunnel"],
  359. ["==", "class", "minor_road"]
  360. ],
  361. "layout": { "line-cap": "butt", "line-join": "miter" },
  362. "paint": {
  363. "line-color": "#efefef",
  364. "line-dasharray": [0.36, 0.18],
  365. "line-width": {
  366. "base": 1.55,
  367. "stops": [
  368. [4, 0.25],
  369. [20, 30]
  370. ]
  371. }
  372. }
  373. },
  374. {
  375. "id": "tunnel_major",
  376. "type": "line",
  377. "source": "openmaptiles",
  378. "source-layer": "transportation",
  379. "filter": [
  380. "all",
  381. ["==", "$type", "LineString"],
  382. ["==", "brunnel", "tunnel"],
  383. ["in", "class", "primary", "secondary", "tertiary", "trunk"]
  384. ],
  385. "layout": { "line-cap": "butt", "line-join": "miter" },
  386. "paint": {
  387. "line-color": "#fff",
  388. "line-dasharray": [0.28, 0.14],
  389. "line-width": {
  390. "base": 1.4,
  391. "stops": [
  392. [6, 0.5],
  393. [20, 30]
  394. ]
  395. }
  396. }
  397. },
  398. {
  399. "id": "aeroway-area",
  400. "type": "fill",
  401. "metadata": { "mapbox:group": "1444849345966.4436" },
  402. "source": "openmaptiles",
  403. "source-layer": "aeroway",
  404. "minzoom": 4,
  405. "filter": [
  406. "all",
  407. ["==", "$type", "Polygon"],
  408. ["in", "class", "runway", "taxiway"]
  409. ],
  410. "layout": { "visibility": "visible" },
  411. "paint": {
  412. "fill-color": "rgba(255, 255, 255, 1)",
  413. "fill-opacity": {
  414. "base": 1,
  415. "stops": [
  416. [13, 0],
  417. [14, 1]
  418. ]
  419. }
  420. }
  421. },
  422. {
  423. "id": "aeroway-taxiway",
  424. "type": "line",
  425. "metadata": { "mapbox:group": "1444849345966.4436" },
  426. "source": "openmaptiles",
  427. "source-layer": "aeroway",
  428. "minzoom": 12,
  429. "filter": [
  430. "all",
  431. ["in", "class", "taxiway"],
  432. ["==", "$type", "LineString"]
  433. ],
  434. "layout": {
  435. "line-cap": "round",
  436. "line-join": "round",
  437. "visibility": "visible"
  438. },
  439. "paint": {
  440. "line-color": "rgba(255, 255, 255, 1)",
  441. "line-opacity": 1,
  442. "line-width": {
  443. "base": 1.5,
  444. "stops": [
  445. [12, 1],
  446. [17, 10]
  447. ]
  448. }
  449. }
  450. },
  451. {
  452. "id": "aeroway-runway",
  453. "type": "line",
  454. "metadata": { "mapbox:group": "1444849345966.4436" },
  455. "source": "openmaptiles",
  456. "source-layer": "aeroway",
  457. "minzoom": 4,
  458. "filter": [
  459. "all",
  460. ["in", "class", "runway"],
  461. ["==", "$type", "LineString"]
  462. ],
  463. "layout": {
  464. "line-cap": "round",
  465. "line-join": "round",
  466. "visibility": "visible"
  467. },
  468. "paint": {
  469. "line-color": "rgba(255, 255, 255, 1)",
  470. "line-opacity": 1,
  471. "line-width": {
  472. "base": 1.5,
  473. "stops": [
  474. [11, 4],
  475. [17, 50]
  476. ]
  477. }
  478. }
  479. },
  480. {
  481. "id": "road_trunk_primary",
  482. "type": "line",
  483. "source": "openmaptiles",
  484. "source-layer": "transportation",
  485. "filter": [
  486. "all",
  487. ["==", "$type", "LineString"],
  488. ["in", "class", "trunk", "primary"]
  489. ],
  490. "layout": { "line-cap": "round", "line-join": "round" },
  491. "paint": {
  492. "line-color": "rgba(255, 255, 255, 1)",
  493. "line-width": {
  494. "base": 1.4,
  495. "stops": [
  496. [6, 0.5],
  497. [20, 30]
  498. ]
  499. }
  500. }
  501. },
  502. {
  503. "id": "road_secondary_tertiary",
  504. "type": "line",
  505. "source": "openmaptiles",
  506. "source-layer": "transportation",
  507. "filter": [
  508. "all",
  509. ["==", "$type", "LineString"],
  510. ["in", "class", "secondary", "tertiary"]
  511. ],
  512. "layout": { "line-cap": "round", "line-join": "round" },
  513. "paint": {
  514. "line-color": "#fff",
  515. "line-width": {
  516. "base": 1.4,
  517. "stops": [
  518. [6, 0.5],
  519. [20, 20]
  520. ]
  521. }
  522. }
  523. },
  524. {
  525. "id": "road_major_motorway",
  526. "type": "line",
  527. "source": "openmaptiles",
  528. "source-layer": "transportation",
  529. "filter": [
  530. "all",
  531. ["==", "$type", "LineString"],
  532. ["==", "class", "motorway"]
  533. ],
  534. "layout": { "line-cap": "round", "line-join": "round" },
  535. "paint": {
  536. "line-color": "rgba(244, 188, 102, 1)",
  537. "line-offset": 0,
  538. "line-width": {
  539. "base": 1.4,
  540. "stops": [
  541. [8, 1],
  542. [16, 10]
  543. ]
  544. }
  545. }
  546. },
  547. {
  548. "id": "railway-transit",
  549. "type": "line",
  550. "source": "openmaptiles",
  551. "source-layer": "transportation",
  552. "filter": [
  553. "all",
  554. ["==", "class", "transit"],
  555. ["!=", "brunnel", "tunnel"]
  556. ],
  557. "layout": { "visibility": "visible" },
  558. "paint": {
  559. "line-color": "hsl(34, 12%, 66%)",
  560. "line-opacity": {
  561. "base": 1,
  562. "stops": [
  563. [11, 0],
  564. [16, 1]
  565. ]
  566. }
  567. }
  568. },
  569. {
  570. "id": "railway",
  571. "type": "line",
  572. "source": "openmaptiles",
  573. "source-layer": "transportation",
  574. "filter": ["==", "class", "rail"],
  575. "layout": { "visibility": "visible" },
  576. "paint": {
  577. "line-color": "hsl(34, 12%, 66%)",
  578. "line-opacity": {
  579. "base": 1,
  580. "stops": [
  581. [11, 0],
  582. [16, 1]
  583. ]
  584. }
  585. }
  586. },
  587. {
  588. "id": "waterway-bridge-case",
  589. "type": "line",
  590. "source": "openmaptiles",
  591. "source-layer": "waterway",
  592. "filter": [
  593. "all",
  594. ["==", "$type", "LineString"],
  595. ["==", "brunnel", "bridge"]
  596. ],
  597. "layout": { "line-cap": "butt", "line-join": "miter" },
  598. "paint": {
  599. "line-color": "#bbbbbb",
  600. "line-gap-width": {
  601. "base": 1.55,
  602. "stops": [
  603. [4, 0.25],
  604. [20, 30]
  605. ]
  606. },
  607. "line-width": {
  608. "base": 1.6,
  609. "stops": [
  610. [12, 0.5],
  611. [20, 10]
  612. ]
  613. }
  614. }
  615. },
  616. {
  617. "id": "waterway-bridge",
  618. "type": "line",
  619. "source": "openmaptiles",
  620. "source-layer": "waterway",
  621. "filter": [
  622. "all",
  623. ["==", "$type", "LineString"],
  624. ["==", "brunnel", "bridge"]
  625. ],
  626. "layout": { "line-cap": "round", "line-join": "round" },
  627. "paint": {
  628. "line-color": "hsl(205, 56%, 73%)",
  629. "line-width": {
  630. "base": 1.55,
  631. "stops": [
  632. [4, 0.25],
  633. [20, 30]
  634. ]
  635. }
  636. }
  637. },
  638. {
  639. "id": "bridge_minor case",
  640. "type": "line",
  641. "source": "openmaptiles",
  642. "source-layer": "transportation",
  643. "filter": [
  644. "all",
  645. ["==", "$type", "LineString"],
  646. ["==", "brunnel", "bridge"],
  647. ["==", "class", "minor_road"]
  648. ],
  649. "layout": { "line-cap": "butt", "line-join": "miter" },
  650. "paint": {
  651. "line-color": "#dedede",
  652. "line-gap-width": {
  653. "base": 1.55,
  654. "stops": [
  655. [4, 0.25],
  656. [20, 30]
  657. ]
  658. },
  659. "line-width": {
  660. "base": 1.6,
  661. "stops": [
  662. [12, 0.5],
  663. [20, 10]
  664. ]
  665. }
  666. }
  667. },
  668. {
  669. "id": "bridge_major case",
  670. "type": "line",
  671. "source": "openmaptiles",
  672. "source-layer": "transportation",
  673. "filter": [
  674. "all",
  675. ["==", "$type", "LineString"],
  676. ["==", "brunnel", "bridge"],
  677. ["in", "class", "primary", "secondary", "tertiary", "trunk"]
  678. ],
  679. "layout": { "line-cap": "butt", "line-join": "miter" },
  680. "paint": {
  681. "line-color": "#dedede",
  682. "line-gap-width": {
  683. "base": 1.55,
  684. "stops": [
  685. [4, 0.25],
  686. [20, 30]
  687. ]
  688. },
  689. "line-width": {
  690. "base": 1.6,
  691. "stops": [
  692. [12, 0.5],
  693. [20, 10]
  694. ]
  695. }
  696. }
  697. },
  698. {
  699. "id": "bridge_minor",
  700. "type": "line",
  701. "source": "openmaptiles",
  702. "source-layer": "transportation",
  703. "filter": [
  704. "all",
  705. ["==", "$type", "LineString"],
  706. ["==", "brunnel", "bridge"],
  707. ["==", "class", "minor_road"]
  708. ],
  709. "layout": { "line-cap": "round", "line-join": "round" },
  710. "paint": {
  711. "line-color": "#efefef",
  712. "line-width": {
  713. "base": 1.55,
  714. "stops": [
  715. [4, 0.25],
  716. [20, 30]
  717. ]
  718. }
  719. }
  720. },
  721. {
  722. "id": "bridge_major",
  723. "type": "line",
  724. "source": "openmaptiles",
  725. "source-layer": "transportation",
  726. "filter": [
  727. "all",
  728. ["==", "$type", "LineString"],
  729. ["==", "brunnel", "bridge"],
  730. ["in", "class", "primary", "secondary", "tertiary", "trunk"]
  731. ],
  732. "layout": { "line-cap": "round", "line-join": "round" },
  733. "paint": {
  734. "line-color": "rgba(255, 255, 255, 1)",
  735. "line-width": {
  736. "base": 1.4,
  737. "stops": [
  738. [6, 0.5],
  739. [20, 30]
  740. ]
  741. }
  742. }
  743. },
  744. {
  745. "id": "admin_sub",
  746. "type": "line",
  747. "source": "openmaptiles",
  748. "source-layer": "boundary",
  749. "filter": ["all"],
  750. "layout": { "visibility": "visible", "line-join": "round" },
  751. "paint": {
  752. "line-color": "rgba(199, 196, 196, 1)",
  753. "line-opacity": 1,
  754. "line-dasharray": [1, 0],
  755. "line-width": 1
  756. }
  757. },
  758. {
  759. "id": "admin_country_z0-4",
  760. "type": "line",
  761. "source": "openmaptiles",
  762. "source-layer": "boundary",
  763. "minzoom": 0,
  764. "maxzoom": 5,
  765. "filter": [
  766. "all",
  767. ["<=", "admin_level", 2],
  768. ["==", "$type", "LineString"],
  769. ["!has", "claimed_by"]
  770. ],
  771. "layout": {
  772. "line-cap": "round",
  773. "line-join": "round",
  774. "visibility": "visible"
  775. },
  776. "paint": {
  777. "line-color": "hsl(0, 0%, 60%)",
  778. "line-width": {
  779. "base": 1.3,
  780. "stops": [
  781. [3, 0.5],
  782. [22, 15]
  783. ]
  784. }
  785. }
  786. },
  787. {
  788. "id": "admin_country_z5-",
  789. "type": "line",
  790. "source": "openmaptiles",
  791. "source-layer": "boundary",
  792. "minzoom": 5,
  793. "filter": [
  794. "all",
  795. ["<=", "admin_level", 2],
  796. ["==", "$type", "LineString"]
  797. ],
  798. "layout": {
  799. "line-cap": "round",
  800. "line-join": "round",
  801. "visibility": "visible"
  802. },
  803. "paint": {
  804. "line-color": "hsl(0, 0%, 60%)",
  805. "line-width": {
  806. "base": 1.3,
  807. "stops": [
  808. [3, 0.5],
  809. [22, 15]
  810. ]
  811. }
  812. }
  813. },
  814. {
  815. "id": "poi_label",
  816. "type": "symbol",
  817. "source": "openmaptiles",
  818. "source-layer": "poi",
  819. "minzoom": 14,
  820. "filter": ["all", ["==", "$type", "Point"], ["==", "rank", 1]],
  821. "layout": {
  822. "icon-size": 1,
  823. "text-anchor": "top",
  824. "text-field": "\n{name:nonlatin}",
  825. "text-font": ["KlokanTech Noto Sans Regular"],
  826. "text-max-width": 8,
  827. "text-offset": [0, 0.5],
  828. "text-size": 11,
  829. "visibility": "visible"
  830. },
  831. "paint": {
  832. "text-color": "#666",
  833. "text-halo-blur": 1,
  834. "text-halo-color": "rgba(255,255,255,0.75)",
  835. "text-halo-width": 1
  836. }
  837. },
  838. {
  839. "id": "airport-label",
  840. "type": "symbol",
  841. "source": "openmaptiles",
  842. "source-layer": "aerodrome_label",
  843. "minzoom": 10,
  844. "filter": ["all", ["has", "iata"]],
  845. "layout": {
  846. "icon-size": 1,
  847. "text-anchor": "top",
  848. "text-field": "{name:nonlatin}\n",
  849. "text-font": ["KlokanTech Noto Sans Regular"],
  850. "text-max-width": 8,
  851. "text-offset": [0, 0.5],
  852. "text-size": 11,
  853. "visibility": "visible"
  854. },
  855. "paint": {
  856. "text-color": "#666",
  857. "text-halo-blur": 1,
  858. "text-halo-color": "rgba(255,255,255,0.75)",
  859. "text-halo-width": 1
  860. }
  861. },
  862. {
  863. "id": "road_major_label",
  864. "type": "symbol",
  865. "source": "openmaptiles",
  866. "source-layer": "transportation_name",
  867. "minzoom": 13,
  868. "filter": ["==", "$type", "LineString"],
  869. "layout": {
  870. "symbol-placement": "line",
  871. "text-field": " {name:nonlatin}",
  872. "text-font": ["KlokanTech Noto Sans Regular"],
  873. "text-letter-spacing": 0.1,
  874. "text-rotation-alignment": "map",
  875. "text-size": {
  876. "base": 1.4,
  877. "stops": [
  878. [10, 8],
  879. [20, 14]
  880. ]
  881. },
  882. "text-transform": "uppercase",
  883. "visibility": "visible"
  884. },
  885. "paint": {
  886. "text-color": "#000",
  887. "text-halo-color": "hsl(0, 0%, 100%)",
  888. "text-halo-width": 2
  889. }
  890. },
  891. {
  892. "id": "place_label_other",
  893. "type": "symbol",
  894. "source": "openmaptiles",
  895. "source-layer": "place",
  896. "minzoom": 8,
  897. "filter": [
  898. "all",
  899. ["==", "$type", "Point"],
  900. ["!in", "class", "city", "state", "country", "continent"]
  901. ],
  902. "layout": {
  903. "text-anchor": "center",
  904. "text-field": "\n{name:nonlatin}",
  905. "text-font": ["KlokanTech Noto Sans Regular"],
  906. "text-max-width": 6,
  907. "text-size": 10,
  908. "visibility": "visible"
  909. },
  910. "paint": {
  911. "text-halo-blur": 0,
  912. "text-halo-color": "hsl(0, 0%, 100%)",
  913. "text-halo-width": 2,
  914. "text-color": "#2d3352"
  915. }
  916. },
  917. {
  918. "id": "place_label_city",
  919. "type": "symbol",
  920. "source": "openmaptiles",
  921. "source-layer": "place",
  922. "maxzoom": 16,
  923. "filter": ["all", ["==", "$type", "Point"], ["==", "class", "city"]],
  924. "layout": {
  925. "text-field": "\n{name:nonlatin}",
  926. "text-font": ["KlokanTech Noto Sans Regular"],
  927. "text-max-width": 10,
  928. "text-size": 12
  929. },
  930. "paint": {
  931. "text-halo-blur": 0,
  932. "text-halo-width": 2,
  933. "text-halo-color": "rgba(0,0,0,0)",
  934. "text-color": "#2d3352"
  935. }
  936. },
  937. {
  938. "id": "country_label-other",
  939. "type": "symbol",
  940. "source": "openmaptiles",
  941. "source-layer": "place",
  942. "maxzoom": 12,
  943. "filter": [
  944. "all",
  945. ["==", "$type", "Point"],
  946. ["==", "class", "country"],
  947. ["!has", "iso_a2"]
  948. ],
  949. "layout": {
  950. "text-field": "{name:nonlatin}",
  951. "text-font": ["KlokanTech Noto Sans Regular"],
  952. "text-max-width": 10,
  953. "text-size": {
  954. "stops": [
  955. [3, 12],
  956. [8, 22]
  957. ]
  958. },
  959. "visibility": "visible"
  960. },
  961. "paint": {
  962. "text-color": "hsl(0, 0%, 13%)",
  963. "text-halo-blur": 0,
  964. "text-halo-color": "rgba(255,255,255,0.75)",
  965. "text-halo-width": 2
  966. }
  967. },
  968. {
  969. "id": "country_label",
  970. "type": "symbol",
  971. "source": "openmaptiles",
  972. "source-layer": "place",
  973. "maxzoom": 12,
  974. "filter": [
  975. "all",
  976. ["==", "$type", "Point"],
  977. ["==", "class", "country"],
  978. ["has", "iso_a2"]
  979. ],
  980. "layout": {
  981. "text-field": "{name:nonlatin}",
  982. "text-font": ["KlokanTech Noto Sans Regular"],
  983. "text-max-width": 10,
  984. "text-size": {
  985. "stops": [
  986. [3, 12],
  987. [8, 22]
  988. ]
  989. },
  990. "visibility": "visible"
  991. },
  992. "paint": {
  993. "text-color": "hsl(0, 0%, 13%)",
  994. "text-halo-blur": 0,
  995. "text-halo-color": "rgba(255,255,255,0.75)",
  996. "text-halo-width": 2
  997. }
  998. },
  999. {
  1000. "id": "building-3d",
  1001. "type": "fill-extrusion",
  1002. "metadata": {},
  1003. "source": "openmaptiles",
  1004. "source-layer": "building",
  1005. "minzoom": 14,
  1006. "filter": ["all", ["!has", "hide_3d"]],
  1007. "layout": { "visibility": "visible" },
  1008. "paint": {
  1009. "fill-extrusion-base": {
  1010. "type": "identity",
  1011. "property": "render_min_height"
  1012. },
  1013. "fill-extrusion-color": "rgba(189, 185, 181, 1)",
  1014. "fill-extrusion-height": {
  1015. "type": "identity",
  1016. "property": "render_height"
  1017. },
  1018. "fill-extrusion-opacity": 0.3
  1019. }
  1020. }
  1021. ],
  1022. "id": "basic"
  1023. }