Advertisement
Guest User

Maperitive Paper Ruleset

a guest
Jul 20th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.96 KB | None | 0 0
  1. // Paper ruleset
  2. //
  3. // Simple ruleset for printed maps, for example to make notes while surveying.
  4. // Designed with rather rural areas in mind (may however be usable
  5. // in cities as well) in high zoom (13+, on lower levels map
  6. // not very much readable).
  7. //
  8. // Licence: Creative Commons Attribution-ShareAlike 3.0
  9. // http://creativecommons.org/licenses/by-sa/3.0/
  10.  
  11. features
  12. lines
  13. // all lines:
  14. highway1: highway=primary OR highway=secondary OR highway=tertiary
  15. highway2: highway=service OR highway=unclassified OR highway=residential
  16. track: highway=track
  17. trackgrade1: highway=track AND tracktype=grade1
  18. path: highway=path
  19. footway: highway=footway
  20. parking: amenity=parking
  21. river: waterway=river
  22. stream: waterway=stream
  23. railway: railway=rail
  24. areas
  25. water: natural=water OR waterway=riverbank OR landuse=reservoir OR landuse=basin
  26. wetland: natural=wetland
  27. forest: natural=wood OR landuse=forest
  28. building: building=yes
  29. parking: amenity=parking
  30. residential: landuse=residential
  31. grass: landuse=grass OR natural=grassland OR landcover=grass
  32. scrub: natural=scrub
  33. points
  34. place: place
  35. peak: natural=peak OR man_made=peak
  36.  
  37. properties
  38. map-background-color: white
  39. font-family: Verdana
  40. text-halo-opacity: 0.7
  41. text-halo-width: 8
  42. font-stretch: 1.1
  43.  
  44. rules
  45. // target: all lines
  46. // define
  47. // line-color: red
  48. // line-width: 0.25
  49. // draw: line
  50.  
  51. target: peak
  52. define
  53. shape: triangle
  54. shape-mode: center
  55. shape-size : 12
  56. fill-color: gray
  57. line-style: none
  58. draw: shape
  59. define
  60. min-zoom: 14
  61. text: name
  62. text-offset-vertical: 14
  63. draw: shape
  64. draw: text
  65.  
  66. target: highway1
  67. define
  68. line-join: round
  69. line-start-cap: round
  70. line-end-cap: round
  71. line-color: white
  72. line-width: 3
  73. border-style: solid
  74. border-color: black
  75. border-width: 1.5
  76. fill-color: white
  77. draw: line
  78. draw: fill
  79. define
  80. text-offset-vertical: 12:8;15:-10
  81. font-size: 12:8;15:10
  82. min-zoom: 14
  83. draw: text
  84.  
  85. target: highway2
  86. define
  87. line-join: round
  88. line-start-cap: round
  89. line-end-cap: round
  90. line-color: white
  91. line-width: 2
  92. border-style: solid
  93. border-color: black
  94. border-width: 1
  95. fill-color: white
  96. draw: line
  97. draw: fill
  98. define
  99. text-offset-vertical: -10
  100. font-size: 14:8;15:10
  101. min-zoom: 15
  102. draw: text
  103.  
  104. // target: trackgrade1
  105. // define
  106. // line-join: round
  107. // line-start-cap: round
  108. // line-end-cap: round
  109. // line-color: white
  110. // line-width: 2
  111. // border-style: dash
  112. // border-color: black
  113. // border-width: 1
  114. // fill-color: white
  115. // draw: line
  116. // draw: fill
  117. // define
  118. // text-offset-vertical: -8
  119. // font-size: 8
  120. // min-zoom: 15
  121. // draw: text
  122.  
  123. target: trackgrade1
  124. define
  125. min-zoom: 12
  126. line-color: black
  127. line-width: 2.2
  128. draw: line
  129. define
  130. text-offset-vertical: -8
  131. font-size: 8
  132. min-zoom: 15
  133. draw: text
  134.  
  135. target: track
  136. define
  137. min-zoom: 12
  138. line-color: black
  139. line-width: 0.6
  140. draw: line
  141. define
  142. text-offset-vertical: -8
  143. font-size: 8
  144. min-zoom: 15
  145. draw: text
  146.  
  147. target: path
  148. define
  149. min-zoom: 12
  150. line-color: black
  151. line-width: 1
  152. line-style: dashlong
  153. draw: line
  154.  
  155. target: footway
  156. define
  157. line-color: black
  158. line-width: 0.6
  159. line-style: dash
  160. draw: line
  161.  
  162. target: railway
  163. define
  164. line-color: white
  165. line-width: 3
  166. line-style: dashlong
  167. border-style: solid
  168. border-color: black
  169. border-width: 0.8
  170. draw: line
  171.  
  172. target: building
  173. define
  174. line-color: black
  175. line-width: 0.7
  176. fill-color: #8A8A8A
  177. fill-opacity: 0.5
  178. draw: fill
  179.  
  180. target: wetland
  181. define
  182. fill-color: lightgray
  183. fill-hatch-color: white
  184. fill-hatch: cross
  185. fill-hatch-opacity: 1
  186. fill-opacity: 1
  187. line-width: 0.1
  188. line-style: dash
  189. line-color: gray
  190. draw: line
  191. draw: fill
  192. define
  193. text-offset-vertical: 12:-6;14:-8;16:-12
  194. font-size: 12:6;14:8;16:12
  195. min-zoom: 14
  196. draw: text
  197.  
  198. target: water
  199. define
  200. fill-color: lightgray
  201. fill-hatch-color: white
  202. fill-hatch: horizontal
  203. fill-hatch-opacity: 1
  204. fill-opacity: 1
  205. line-width: 0.2
  206. line-color: gray
  207. draw: fill
  208. draw: line
  209. define
  210. min-zoom: 13
  211. text-offset-vertical: 12:-8;13:-10;16:-14
  212. font-size: 12:8;13:10;16:14
  213. draw: text
  214.  
  215.  
  216. target: river
  217. define
  218. line-width: 3
  219. line-color: gray
  220. draw: line
  221. define
  222. min-zoom: 12
  223. text-offset-vertical: 12:-8;13:-10;16:-14
  224. font-size: 12:8;13:10;16:14
  225. draw: text
  226.  
  227. target: stream
  228. define
  229. min-zoom: 14
  230. line-width: 2
  231. line-opacity: 0.6
  232. line-color: gray
  233. draw: line
  234. define
  235. min-zoom: 15
  236. text-offset-vertical: -10
  237. font-size: 10
  238. draw: text
  239.  
  240.  
  241. target: parking
  242. define
  243. fill-color: white
  244. fill-opacity: 1
  245. line-width: 0.4
  246. line-color: gray
  247. draw: line
  248. draw: fill
  249.  
  250. target: forest
  251. define
  252. fill-color: #F1F1F1
  253. fill-hatch-color: #FAFAFA
  254. fill-hatch: diagonalcross
  255. fill-hatch-opacity: 0.1
  256. fill-opacity: 0.1
  257. line-width: 0.3
  258. line-color: gray
  259. line-style: dot
  260. draw: fill
  261. draw: line
  262.  
  263. target: grass
  264. define
  265. fill-hatch-color: white
  266. fill-hatch: nwse
  267. fill-hatch-opacity: 0.1
  268. fill-color: lightgray
  269. fill-opacity: 0.1
  270. line-width: 0.2
  271. line-color: gray
  272. line-style: none
  273. draw: fill
  274.  
  275. target: scrub
  276. define
  277. fill-hatch-color: white
  278. fill-hatch: swne
  279. fill-hatch-opacity: 0.1
  280. fill-color: lightgray
  281. fill-opacity: 0.1
  282. line-width: 0.2
  283. line-color: gray
  284. line-style: dot
  285. draw: fill
  286.  
  287. target: residential
  288. define
  289. fill-color: #A1A1A1
  290. fill-opacity: 0.2
  291. line-width: 0.5
  292. line-color: gray
  293. line-style: solid
  294. draw: fill
  295. draw: line
  296. draw: text
  297.  
  298. target: place
  299. define
  300. text: name
  301. font-size: 12:10;14:12;16:16
  302. font-stretch: 1.2
  303. text-halo-opacity: 0.6
  304. text-halo-width: 12
  305. text-offset-vertical: 0
  306. text-offset-horizontal: 0
  307. draw: text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement