|
| 1 | +extends ../common/templates/index.jade |
| 2 | + |
| 3 | +block append mainContent |
| 4 | + div#controls |
| 5 | + .form-group(title="Number of lines segments. Leave blank for a small default value.") |
| 6 | + label(for="lines") Number of Lines |
| 7 | + input#lines(type="number" min="1" step="100") |
| 8 | + span#lines-shown |
| 9 | + .form-group(title="Stroke Color (any css color). A comma-separated list will cycle through the listed colors. line:(comma-separate list) will cycle through by line. A JSON dictionary will map road categories to colors, with undefined values using the 'other' entry.") |
| 10 | + label(for="strokeColor") strokeColor |
| 11 | + input#strokeColor(placeholder="black") |
| 12 | + .form-group(title="Stroke Opacity (a number in the range [0, 1]). A comma-separated list will cycle through the listed opacities. line:(comma-separate list) will cycle through by line. A JSON dictionary will map road categories to opacities, with undefined values using the 'other' entry.") |
| 13 | + label(for="strokeOpacity") strokeOpacity |
| 14 | + input#strokeOpacity(placeholder="1") |
| 15 | + .form-group(title="Stroke Width (a positive number). A comma-separated list will cycle through the listed widths. line:(comma-separate list) will cycle through by line. A JSON dictionary will map road categories to widths, with undefined values using the 'other' entry.") |
| 16 | + label(for="strokeWidth") strokeWidth |
| 17 | + input#strokeWidth(placeholder="2") |
| 18 | + .form-group(title="Stroke Offset (a number in the range [-1, 1]). A comma-separated list will cycle through the listed offsets. line:(comma-separate list) will cycle through by line. A JSON dictionary will map road categories to offsets, with undefined values using the 'other' entry.") |
| 19 | + label(for="strokeOffset") strokeOffset |
| 20 | + input#strokeOffset(placeholder="0") |
| 21 | + .form-group(title="Line Cap (one of 'butt', 'round', or 'square'). A comma-separated list will cycle through the listed line caps. line:(comma-separate list) will cycle through by line. A JSON dictionary will map road categories to line caps, with undefined values using the 'other' entry.") |
| 22 | + label(for="lineCap") lineCap |
| 23 | + input#lineCap(placeholder="butt") |
| 24 | + .form-group(title="Line Join (one of 'miter', 'bevel', 'round', or 'miter-clip'). A comma-separated list will cycle through the listed line joins. line:(comma-separate list) will cycle through by line. A JSON dictionary will map road categories to line joins, with undefined values using the 'other' entry.") |
| 25 | + label(for="lineJoin") lineJoin |
| 26 | + input#lineJoin(placeholder="miter") |
| 27 | + .form-group(title="Miter Limit (a positive number). Any miter whose length relative to the stroke with longer than this value will either be beveled or clipped.") |
| 28 | + label(for="miterLimit") miterLimit |
| 29 | + input#miterLimit(placeholder="10") |
| 30 | + .form-group(title="Antialiasing (a non-negative number). Edges of lines will be antialiased by this many pixels. Values larger than 2 tend to make things blurry.") |
| 31 | + label(for="antialiasing") antialiasing |
| 32 | + input#antialiasing(placeholder="2") |
| 33 | + .form-group(title="Show road names and categories on hover.") |
| 34 | + label(for="hovertext") Info on Hover |
| 35 | + input#hovertext(type="checkbox", placeholder="false") |
| 36 | + .form-group(title="Show an OSM map underneath the lines.") |
| 37 | + label(for="showmap") Show Map |
| 38 | + input#showmap(type="checkbox", placeholder="true", checked="checked") |
| 39 | + .form-group |
| 40 | + .shortlabel Presets |
| 41 | + button.preset(strokeColor='{"residential":"blue","service":"green","other":"black"}', strokeWidth='{"residential":4,"service":1,"other":8}', lineCap='round', showmap='true', title='Properties based on road category') Categories |
| 42 | + button.preset(strokeColor='', strokeWidth='{"residential":1,"service":0.25,"other":3}', lineCap='round', lineJoin='', miterLimit='', showmap='false', title='Thin lines based on road category') Thin |
| 43 | + button.preset(strokeColor='line:red,orange,yellow,green,blue,indigo,violet', strokeWidth='line:1,2,4,8,16', lineCap='line:butt,round,square', lineJoin='line:miter,bevel,round,miter-clip', miterLimit=4, title='Properties varied by line') Lines |
| 44 | + button.preset(strokeColor='red,orange,yellow,green,blue,indigo,violet', strokeWidth='1,2,4,8,16', lineCap='butt,round,square', lineJoin='miter,bevel,round,miter-clip', miterLimit=4, title='Properties varied by line segment') Segments |
| 45 | + |
0 commit comments