Advertisement
Guest User

Maperitive Paper Ruleset

a guest
Jul 20th, 2014
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 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. path: highway=path
  18. footway: highway=footway
  19. parking: amenity=parking
  20. river: waterway=river
  21. stream: waterway=stream
  22. railway: railway=rail
  23. areas
  24. water: natural=water OR waterway=riverbank OR landuse=reservoir OR landuse=basin
  25. wetland: natural=wetland
  26. forest: natural=wood OR landuse=forest
  27. building: building=yes
  28. parking: amenity=parking
  29. residential: landuse=residential
  30. grass: landuse=grass
  31. scrub: natural=scrub
  32. points
  33. place: place
  34.  
  35. properties
  36. map-background-color: white
  37. font-family: Verdana
  38. text-halo-opacity: 0.7
  39. text-halo-width: 8
  40. font-stretch: 1.1
  41.  
  42. rules
  43. // target: all lines
  44. // define
  45. // line-color: red
  46. // line-width: 0.25
  47. // draw: line
  48.  
  49. target: highway1
  50. define
  51. line-join: round
  52. line-start-cap: round
  53. line-end-cap: round
  54. line-color: white
  55. line-width: 3
  56. border-style: solid
  57. border-color: black
  58. border-width: 1.5
  59. fill-color: white
  60. draw: line
  61. draw: fill
  62. define
  63. text-offset-vertical: 12:8;15:-10
  64. font-size: 12:8;15:10
  65. min-zoom: 14
  66. draw: text
  67.  
  68. target: highway2
  69. define
  70. line-join: round
  71. line-start-cap: round
  72. line-end-cap: round
  73. line-color: white
  74. line-width: 2
  75. border-style: solid
  76. border-color: black
  77. border-width: 1
  78. fill-color: white
  79. draw: line
  80. draw: fill
  81. define
  82. text-offset-vertical: -10
  83. font-size: 14:8;15:10
  84. min-zoom: 15
  85. draw: text
  86.  
  87. target: track
  88. define
  89. min-zoom: 12
  90. line-color: black
  91. line-width: 0.6
  92. draw: line
  93. define
  94. text-offset-vertical: -8
  95. font-size: 8
  96. min-zoom: 15
  97. draw: text
  98.  
  99. target: path
  100. define
  101. min-zoom: 12
  102. line-color: black
  103. line-width: 1
  104. line-style: dashlong
  105. draw: line
  106.  
  107. target: footway
  108. define
  109. line-color: black
  110. line-width: 0.6
  111. line-style: dash
  112. draw: line
  113.  
  114. target: railway
  115. define
  116. line-color: white
  117. line-width: 3
  118. line-style: dashlong
  119. border-style: solid
  120. border-color: black
  121. border-width: 0.8
  122. draw: line
  123.  
  124. target: building
  125. define
  126. line-color: black
  127. line-width: 0.7
  128. fill-color: #8A8A8A
  129. fill-opacity: 0.5
  130. draw: fill
  131.  
  132. target: wetland
  133. define
  134. fill-color: lightgray
  135. fill-hatch-color: white
  136. fill-hatch: cross
  137. fill-hatch-opacity: 1
  138. fill-opacity: 1
  139. line-width: 0.1
  140. line-style: dash
  141. line-color: gray
  142. draw: line
  143. draw: fill
  144. define
  145. text-offset-vertical: 12:-6;14:-8;16:-12
  146. font-size: 12:6;14:8;16:12
  147. min-zoom: 14
  148. draw: text
  149.  
  150. target: water
  151. define
  152. fill-color: lightgray
  153. fill-hatch-color: white
  154. fill-hatch: horizontal
  155. fill-hatch-opacity: 1
  156. fill-opacity: 1
  157. line-width: 0.2
  158. line-color: gray
  159. draw: fill
  160. draw: line
  161. define
  162. min-zoom: 13
  163. text-offset-vertical: 12:-8;13:-10;16:-14
  164. font-size: 12:8;13:10;16:14
  165. draw: text
  166.  
  167.  
  168. target: river
  169. define
  170. line-width: 3
  171. line-color: gray
  172. draw: line
  173. define
  174. min-zoom: 12
  175. text-offset-vertical: 12:-8;13:-10;16:-14
  176. font-size: 12:8;13:10;16:14
  177. draw: text
  178.  
  179. target: stream
  180. define
  181. min-zoom: 14
  182. line-width: 2
  183. line-opacity: 0.6
  184. line-color: gray
  185. draw: line
  186. define
  187. min-zoom: 15
  188. text-offset-vertical: -10
  189. font-size: 10
  190. draw: text
  191.  
  192.  
  193. target: parking
  194. define
  195. fill-color: white
  196. fill-opacity: 1
  197. line-width: 0.4
  198. line-color: gray
  199. draw: line
  200. draw: fill
  201.  
  202. target: forest
  203. define
  204. fill-color: #F1F1F1
  205. fill-hatch-color: #FAFAFA
  206. fill-hatch: diagonalcross
  207. fill-hatch-opacity: 0.1
  208. fill-opacity: 0.1
  209. line-width: 0.3
  210. line-color: gray
  211. line-style: dot
  212. draw: fill
  213.  
  214. target: grass
  215. define
  216. fill-hatch-color: white
  217. fill-hatch: nwse
  218. fill-hatch-opacity: 0.1
  219. fill-color: lightgray
  220. fill-opacity: 0.1
  221. line-width: 0.2
  222. line-color: gray
  223. line-style: none
  224. draw: fill
  225.  
  226. target: scrub
  227. define
  228. fill-hatch-color: white
  229. fill-hatch: swne
  230. fill-hatch-opacity: 0.1
  231. fill-color: lightgray
  232. fill-opacity: 0.1
  233. line-width: 0.2
  234. line-color: gray
  235. line-style: dot
  236. draw: fill
  237.  
  238. target: residential
  239. define
  240. fill-color: #A1A1A1
  241. fill-opacity: 0.2
  242. line-width: 0.5
  243. line-color: gray
  244. line-style: solid
  245. draw: fill
  246. draw: line
  247. draw: text
  248.  
  249. target: place
  250. define
  251. text: name
  252. font-size: 12:10;14:12;16:16
  253. font-stretch: 1.2
  254. text-halo-opacity: 0.6
  255. text-halo-width: 12
  256. text-offset-vertical: 0
  257. text-offset-horizontal: 0
  258. draw: text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement