niconiki

gmaps maperitive

Feb 29th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.21 KB | None | 0 0
  1. features
  2. points, areas
  3. parking : amenity=parking
  4. postbox : amenity=post_box
  5. postoffice : amenity=post_office
  6. telephone : amenity=telephone
  7. fire station : amenity=fire_station
  8. police station : amenity=police
  9. recycling : amenity=recycling
  10. church : amenity=place_of_worship AND religion=christian
  11. drinking water : amenity=drinking_water
  12. bank : amenity=bank
  13. atm : amenity=atm
  14. toilets : amenity=toilets
  15. library : amenity=library
  16. conifer tree : natural=tree AND type=conifer
  17. broadleaf tree : natural=tree AND type=broad_leafed
  18. bus stop : highway=bus_stop
  19. mini roundabout : highway=mini_roundabout
  20. gate : barrier=gate
  21. tourism viewpoint : tourism=viewpoint
  22. tourism hotel : tourism=hotel
  23. tourism museum : tourism=museum
  24. amenity pub : amenity=pub
  25. amenity fast_food : amenity=fast_food
  26. puffin : crossing_ref=puffin
  27. memorial : historic=memorial
  28.  
  29. areas
  30. addressable : "addr:housenumber"
  31. beach : natural=beach
  32. building : building
  33. water : natural=water OR waterway=riverbank OR landuse=reservoir OR landuse=basin
  34. village green : landuse=village_green
  35. forest : landuse=forest OR natural=wood
  36. farm : landuse=farm OR landuse=farmland
  37. grass : landuse=grass OR landuse=recreation_ground OR natural=heath OR natural=scrub
  38. fell : natural=fell
  39. glacier : natural=glacier
  40. national park : boundary=national_park
  41. allotments : landuse=allotments
  42. academic : node[@isOneOf(amenity, university, college, school)] area[@isOneOf(amenity, university, college, school)]
  43. meadow : natural=meadow OR landuse=meadow
  44. nature reserve : leisure=nature_reserve
  45. playground : leisure=playground
  46. car park: amenity=parking
  47. track : leisure=track
  48. graveyard : amenity=grave_yard OR landuse=cemetery
  49. military : landuse=military OR military=barracks
  50. park : leisure=park
  51. leisure garden : leisure=garden
  52. leisure pitch : leisure=pitch
  53. leisure stadium : leisure=stadium
  54. landuse retail : landuse=retail
  55. landuse industrial : landuse=industrial
  56. landuse garages : landuse=garages
  57. commercial area : landuse=commercial
  58. residential area : landuse=residential
  59. aeroway apron : aeroway=apron
  60. aeroway terminal : aeroway=terminal
  61.  
  62. lines
  63. oneway : oneway=yes OR oneway=true OR oneway=-1
  64. coastline : natural=coastline
  65. river : waterway=river
  66. stream : waterway=stream
  67. canal : waterway=canal
  68. drain : waterway=drain
  69. railway : railway=rail
  70. line barrier : barrier=wall OR barrier=fence
  71. pipeline : man_made=pipeline
  72. highway motorway : highway=motorway
  73. highway motorway link : highway=motorway_link
  74. highway trunk : highway=trunk
  75. highway trunk link: highway=trunk_link
  76. highway primary link : highway=primary_link
  77. highway primary : highway=primary
  78. highway secondary : highway=secondary
  79. highway tertiary : highway=tertiary
  80. highway unclassified : highway=unclassified
  81. highway residential : highway=residential
  82. highway service : highway=service
  83. highway pedestrian : highway=pedestrian
  84. highway track : highway=track
  85. highway footway : highway=footway
  86. highway cycleway : highway=cycleway
  87. highway path : highway=path
  88. highway private : access=private AND highway
  89. highway steps : highway=steps
  90. bridge foot : bridge=yes AND (foot=yes OR highway=footway)
  91. historic citywalls : historic=citywalls OR historic=city_wall
  92.  
  93. aeroway runway : aeroway=runway
  94. aeroway taxiway : aeroway=taxiway
  95.  
  96. boundary country : boundary=administrative AND (admin_level=2 OR admin_level=4) AND NOT natural=coastline
  97. boundary province : boundary=administrative AND admin_level=6
  98. boundary municipal : boundary=administrative AND admin_level=8
  99.  
  100. contour major : contour[@isMulti(elevation, 50)]
  101. contour minor : contour[@isMulti(elevation, 10) and not @isMulti(elevation, 50)]
  102.  
  103. gps tracks : gpstrack[]
  104. gps routes : gpsroute[]
  105.  
  106. points
  107. place city : place=city
  108. place town : place=town
  109. place village : place=village
  110. place hamlet : place=hamlet
  111. place suburb : place=suburb
  112. hospital : amenity=hospital
  113. diy : shop=doityourself
  114. hair dresser : shop=hairdresser
  115. supermarket : shop=supermarket
  116. convenience : shop=convenience
  117. bakery : shop=bakery
  118. restaurant : amenity=restaurant
  119. cafe : amenity=cafe
  120. pharmacy : amenity=pharmacy
  121. peak : natural=peak
  122.  
  123. gps waypoints : gpswaypoint[]
  124. gps trackpoints: gpstrack[].gpspoint[]
  125. gps routepoints: gpsroute[].gpspoint[]
  126.  
  127. properties
  128. map-background-color : #F2EEEA
  129. map-background-opacity : 1
  130. map-sea-color : #A0B3CD
  131. font-weight : bold
  132. font-family : Arial
  133. text-max-width : 7
  134. text-halo-width : 25%
  135. text-halo-opacity : 1
  136. text-align-horizontal : center
  137. text-align-vertical : center
  138. font-size : 11
  139. text-color : #786C60
  140. font-stretch : 0.9
  141. map.rendering.lflp.min-buffer-space : 5
  142. map.rendering.lflp.max-allowed-corner-angle : 40
  143.  
  144. rules
  145. target : $featuretype(point)
  146. if : place*
  147. define
  148. font-weight : bold
  149. text-color : black
  150.  
  151. if : *city
  152. define
  153. font-size : 10:10;11:14;15:15
  154. min-zoom : 6
  155. max-zoom : 15.1
  156. elseif : *town
  157. define
  158. font-size : 10:10;11:14;15:15
  159. min-zoom : 8
  160. max-zoom : 15.1
  161. elseif : *village
  162. define
  163. font-size : 12
  164. min-zoom : 11
  165. max-zoom : 15.1
  166. elseif : *hamlet
  167. define
  168. font-size : 12
  169. min-zoom : 11
  170. max-zoom : 15.1
  171. elseif : *suburb
  172. define
  173. font-size : 12
  174. min-zoom : 13
  175. max-zoom : 15.1
  176. draw : text
  177. else
  178. define
  179. min-zoom : 16
  180. font-size : 11
  181. font-stretch : 0.9
  182. font-weight : bold
  183. text-color : #786C60
  184. text : name
  185. draw : text
  186.  
  187. target : $featuretype(area)
  188. define
  189. line-style : none
  190. line-width : 1
  191. if : forest
  192. define
  193. min-zoom : 9
  194. fill-color : #B4D29D
  195. elseif : beach
  196. define
  197. min-zoom : 10
  198. fill-color : #FEFEC0
  199. elseif : farm
  200. define
  201. min-zoom : 9
  202. fill-color : #CCD9C2
  203. elseif : fell
  204. define
  205. fill-color : #CCD9C2
  206. elseif : water
  207. define
  208. fill-color : #A0B3CD
  209. elseif : residential area
  210. define
  211. min-zoom : 10
  212. fill-color : #EBE6DC
  213. line-style : solid
  214. line-color : #D0CFCE
  215. font-size : 12
  216. elseif : grass
  217. define
  218. fill-color : #CCD9C2
  219. elseif : allotments
  220. define
  221. fill-color : #CCD9C2
  222. elseif : meadow
  223. define
  224. fill-color : #CCD9C2
  225. elseif : nature reserve
  226. define
  227. fill-color : #ABDE96
  228. elseif : park
  229. define
  230. fill-color : #B4D29D
  231. elseif : leisure garden
  232. define
  233. fill-color : #CCD9C2
  234. elseif : graveyard
  235. define
  236. fill-color : #A9CAAE
  237. elseif : building
  238. define
  239. min-zoom : 13
  240. fill-color : #DCDBD8
  241. elseif : leisure pitch
  242. define
  243. fill-color : #DCDBD8
  244. elseif : leisure stadium
  245. define
  246. fill-color : #DCDBD8
  247. line-style : solid
  248. line-color : #B4B4B4
  249. elseif : village green
  250. define
  251. fill-color : #CCD9C2
  252. elseif : landuse retail
  253. define
  254. fill-color : #D2CECE
  255. draw : line
  256. elseif : landuse industrial
  257. define
  258. min-zoom : 10
  259. fill-color : #D2CECE
  260. elseif : landuse garages
  261. define
  262. fill-color : #D2CECE
  263. elseif : commercial area
  264. define
  265. fill-color : #D2CECE
  266. elseif : military
  267. define
  268. fill-color : #D2CECE
  269. elseif : aeroway*
  270. define
  271. fill-color : #E9D1FE
  272. elseif : glacier
  273. define
  274. fill-color : #DDECEC
  275. line-style : dash
  276. line-color : #DDECEC black 10%
  277. else
  278. stop
  279. draw : fill
  280. define
  281. min-zoom : 16
  282. font-size : 11
  283. font-stretch : 0.9
  284. font-weight : bold
  285. text-color : #786C60
  286. text : name
  287. draw : text
  288.  
  289. target : building
  290. define
  291. min-zoom : 14
  292. line-width : 1
  293. line-color : #A0A0A0
  294. draw : line
  295.  
  296. target : leisure pitch
  297. define
  298. min-zoom : 14
  299. line-width : 1
  300. line-color : #A0A0A0
  301. draw : line
  302.  
  303. target : aeroway runway
  304. define
  305. min-zoom : 11
  306. line-color : #BBBBCC
  307. line-width : 11:2;15:20
  308. draw : line
  309.  
  310. target : aeroway taxiway
  311. define
  312. min-zoom : 11
  313. line-color : #BBBBCC
  314. line-width : 11:1;15:6
  315. draw : line
  316.  
  317. target : glacier
  318. define
  319. min-zoom : 10
  320. text-color : #A3A3FE
  321. draw : text
  322.  
  323. target : academic
  324. define
  325. min-zoom : 16
  326. font-size : 11
  327. font-stretch : 0.9
  328. font-weight : bold
  329. text-color : #786C60
  330. text : name
  331. draw : text
  332.  
  333. target : boundary province
  334. define
  335. min-zoom : 4
  336. line-color : gray
  337. line-opacity : 1
  338. line-width : 1
  339. line-style : dash
  340. draw : line
  341.  
  342. target : peak
  343. define
  344. shape : triangle
  345. shape-size : 12
  346. fill-color : #D08F55
  347. line-style : none
  348. min-zoom : 11
  349. draw : shape
  350. define
  351. text : @if(name, name @if(ele, "\n(" ele ")"), ele)
  352. text-color : #ae4242
  353. min-zoom : 13
  354. font-size : 10
  355. text-max-width : 10
  356. text-offset-vertical : 1
  357. text-align-vertical : near
  358. draw : text
  359.  
  360. target : railway
  361. define
  362. min-zoom : 16
  363. line-color : #A1A1A1
  364. line-width : 2.5
  365. draw : line
  366. define
  367. min-zoom : 16
  368. line-style : dashlong
  369. line-color : white
  370. line-width : 2.5
  371. border-style : solid
  372. border-color : #A1A1A1
  373. border-width : 25%
  374. draw : line
  375. define
  376. min-zoom : 13
  377. max-zoom : 16
  378. line-color : #A1A1A1
  379. line-width : 1.5
  380. draw : line
  381. define
  382. min-zoom : 13
  383. max-zoom : 16
  384. line-style : dashlong
  385. line-color : white
  386. line-width : 1.5
  387. border-style : solid
  388. border-color : #A1A1A1
  389. border-width : 25%
  390. draw : line
  391. define
  392. min-zoom : 6
  393. max-zoom : 13
  394. line-style : solid
  395. line-color : #A1A1A1
  396. line-opacity : 0.1
  397. line-width : 1
  398. draw : line
  399.  
  400. target : highway private
  401. define
  402. min-zoom : 15
  403. line-width : 4
  404. line-style : dash
  405. line-color : #F7D4D4
  406. draw : line
  407.  
  408. target : addressable
  409. define
  410. min-zoom : 16
  411. font-size : 16:8;17:11
  412. font-stretch : 1
  413. font-weight : normal
  414. text-color : #A0A0A0
  415. text-halo-opacity : 0
  416. text-halo-width : 0%
  417. text : [[addr:housenumber]]
  418. draw : text
  419.  
  420. target : highway*
  421. define
  422. font-size : 15:10;16:12
  423. font-weight : bold
  424.  
  425. for : oneway=yes OR oneway=true
  426. define
  427. min-zoom : 15
  428. shape : custom
  429. shape-def : 60,0,20,-40,20,-15,-60,-15,-60,15,20,15,20,40;Z
  430. shape-size : 12
  431. shape-aspect : 0.7
  432. shape-spacing : 10
  433. fill-color : #A9ADCA
  434. line-style : none
  435. for : oneway=-1
  436. define
  437. angle : 180
  438. draw : shape
  439.  
  440. define
  441. line-style : solid
  442. line-join : round
  443. line-start-cap : round
  444. line-end-cap : round
  445.  
  446. if : *motorway*
  447. if : *link
  448. define
  449. line-width : 7:1;12:3;13:4;16:5;18:6
  450. else
  451. define
  452. line-width : 10:2;11:2.5;12:3;14:3;15:6;16:13;17:14
  453. define
  454. min-zoom : 7
  455. line-color : #FFC345
  456. border-style : solid
  457. border-color : #D59400 black 30%
  458. border-width : 12%
  459. draw : line
  460. define
  461. min-zoom : 6
  462. max-zoom : 7
  463. border-style : none
  464. line-width : 1
  465. line-color : #D59400
  466. draw : line
  467. define
  468. min-zoom : 11
  469. max-zoom : 20
  470. text-color : black
  471. text-halo-color : #FFC345
  472. draw : text
  473. elseif : *trunk*
  474. define
  475. min-zoom : 7
  476. line-color : #FFC345
  477. line-width : 10:2;11:2.5;12:3;14:3;15:6;16:13;17:14
  478. border-style : solid
  479. border-color : #D59400 black 30%
  480. border-width : 12%
  481. draw : line
  482. define
  483. min-zoom : 6
  484. max-zoom : 7
  485. border-style : none
  486. line-width : 1
  487. line-color : #D59400
  488. draw : line
  489. define
  490. min-zoom : 11
  491. max-zoom : 20
  492. text-color : black
  493. text-halo-color : #FFC345
  494. draw : text
  495. elseif : *primary*
  496. define
  497. min-zoom : 7
  498. line-color : #FFFD8B
  499. line-width : 10:2;11:2.5;14:2.5;15:5;16:9;18:14
  500. border-style : solid
  501. border-color : #D0C5B5 black 20%
  502. border-width : 12%
  503. draw : line
  504. define
  505. min-zoom : 6
  506. max-zoom : 7
  507. border-style : none
  508. line-width : 1
  509. line-color : #FFC345
  510. draw : line
  511. define
  512. min-zoom : 13
  513. max-zoom : 20
  514. text-color : black
  515. text-halo-color : #FFFD8B
  516. draw : text
  517. elseif : *secondary
  518. define
  519. min-zoom : 14
  520. line-color : #FFFD8B
  521. line-width : 14:2.5;15:5;16:9;18:14
  522. border-style : solid
  523. border-color : #D0C5B5 black 20%
  524. border-width : 12%
  525. draw : line
  526. define
  527. min-zoom : 11
  528. max-zoom : 14
  529. border-style : none
  530. line-width : 1
  531. line-color : #D0C5B5
  532. draw : line
  533. define
  534. min-zoom : 14
  535. max-zoom : 20
  536. text-halo-color : #FFFD8B
  537. draw : text
  538. elseif : *tertiary
  539. define
  540. min-zoom : 14
  541. line-color : white
  542. line-width : 14:2.5;15:5;16:9;18:14
  543. border-style : solid
  544. border-color : #D0C5B5 black 20%
  545. border-width : 12%
  546. draw : line
  547. define
  548. min-zoom : 11
  549. max-zoom : 14
  550. border-style : none
  551. line-width : 1
  552. line-color : #D0C5B5
  553. draw : line
  554. define
  555. min-zoom : 13
  556. max-zoom : 20
  557. draw : text
  558. elseif : *service
  559. define
  560. min-zoom : 19
  561. line-color : white
  562. line-width : 7:0.6;9:1;10:1.2;12:2.5;13:3;16:5;18:6
  563. border-style : solid
  564. border-color : #FEFEB2 black 20%
  565. border-width : 15%
  566. draw : line
  567. elseif : *pedestrian
  568. define
  569. min-zoom : 19
  570. line-color : #EDEDED
  571. line-width : 7:0.6;9:1;10:1.2;12:2.5;13:3;16:5;18:6
  572. border-style : solid
  573. border-color : #D0C5B5 black 20%
  574. border-width : 15%
  575. draw : line
  576.  
  577. elseif : $regex("(.*residential)|(.*unclassified)")
  578. define
  579. min-zoom : 14
  580. line-color : white
  581. line-width : 14:2.5;15:5;16:9;18:14
  582. border-style : solid
  583. border-color : #D0C5B5 black 20%
  584. border-width : 12%
  585. draw : line
  586. define
  587. min-zoom : 12.9
  588. max-zoom : 14
  589. border-style : none
  590. line-width : 1
  591. line-color : #D0C5B5
  592. draw : line
  593. define
  594. min-zoom : 14
  595. max-zoom : 20
  596. draw : text
  597. elseif : *track
  598. define
  599. min-zoom : 19
  600. line-color : #9D7517
  601. line-width : 1.5
  602. line-style : dash
  603. border-style : solid
  604. border-color : white
  605. border-width : 100%
  606. border-opacity : 0.3
  607. draw : line
  608. elseif : *footway
  609. define
  610. min-zoom : 19
  611. line-color : #F68474
  612. line-width : 1.5
  613. line-style : dot
  614. border-style : solid
  615. border-color : white
  616. border-width : 100%
  617. border-opacity : 0.3
  618. draw : line
  619. draw : text
  620. elseif : *cycleway
  621. define
  622. min-zoom : 19
  623. line-color : blue
  624. line-width : 1.5
  625. line-style : dot
  626. border-style : solid
  627. border-color : white
  628. border-width : 100%
  629. border-opacity : 0.3
  630. draw : line
  631. elseif : *path
  632. define
  633. min-zoom : 19
  634. line-color : #6E7C6D
  635. line-width : 1.5
  636. line-style : dash
  637. border-style : solid
  638. border-color : white
  639. border-width : 100%
  640. border-opacity : 0.3
  641. draw : line
  642. else
  643. stop
  644.  
  645. target : highway steps
  646. define
  647. min-zoom : 18
  648. shape : custom
  649. shape-def : -1,1, -1,-1, 1,-1, 1,1;Z
  650. shape-spacing : 2
  651. shape-size : 16:1;20:3
  652. shape-aspect : 3
  653. fill-color : #F98072
  654. line-style : none
  655. draw : shape
  656.  
  657. target : pipeline
  658. define
  659. min-zoom : 13
  660. line-color : black
  661. line-width : 2
  662.  
  663. target : bridge foot
  664. define
  665. min-zoom : 13
  666. line-color : white
  667. line-width : 7:0.6;9:1;10:1.2;12:2.5;13:3;16:5;18:6
  668. border-style : solid
  669. border-color : #FEFEB2 black 20%
  670. border-width : 15%
  671. draw : line
  672. draw : text
  673.  
  674. target : historic citywalls
  675. define
  676. min-zoom : 13
  677. line-color : #8D968D
  678. line-width : 7:0.6;9:1;10:1.2;12:2.5;13:3;16:10
  679. draw : line
  680. draw : text
  681.  
  682. define
  683.  
  684. target : river
  685. define
  686. line-color : #A0B3CD
  687. line-width : 7:1;12:2;14:5
  688. draw : line
  689.  
  690. target : canal
  691. define
  692. min-zoom : 12
  693. line-color : #A0B3CD
  694. line-width : 12:1;17:8
  695. draw : line
  696.  
  697. target : drain
  698. define
  699. min-zoom : 13
  700. line-color : #A0B3CD
  701. line-width : 1
  702. draw : line
  703. target : stream
  704. define
  705. min-zoom : 13
  706. line-color : #A0B3CD
  707. line-width : 13:1;15:2
  708. draw : line
  709.  
  710. target: contour*
  711. define
  712. line-color : #7f3300
  713. line-opacity : 0.35
  714. curved : true
  715. if : *major
  716. define
  717. min-zoom : 9
  718. line-width : 11:0.1;11.9:1;12:2
  719. else
  720. define
  721. min-zoom : 12
  722. line-width : 1
  723. draw : contour
  724.  
  725. target: coastline
  726. define
  727. line-color : #B5D0D0
  728. line-width : 2
  729. draw : line
Advertisement
Add Comment
Please, Sign In to add comment