Adding steps feature icon. Playing with steps rendering.
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Sat, 27 Mar 2010 10:15:30 +0000 (10:15 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Sat, 27 Mar 2010 10:15:30 +0000 (10:15 +0000)
TODO.txt
resources/features/paths__steps.png [new file with mode: 0644]
resources/features/paths__steps.svg [new file with mode: 0644]
resources/map_features.xml
resources/potlatch.css

index 8f97388..44a4083 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -37,11 +37,13 @@ Potlatch 2: main outstanding issues
 * Dynamic reloading of stylesheet/map_features, so that you don't need to reload the full page when editing them
 * If a select name is too long then, the select menu seems to give a horizontal scrollbar instead of the name of the item e.g. cuisine#Coffee Shop
 * If you have both inputSets names and buildingAddress, and name= key is filled in then the basic tab will get both, surely only name should be shown and building name should be ignored e.g. cafes. [Actually this was an issue of addr: being missing from one of them, however this may still be a problem for other overlapping inputSets]
+* It would be useful to have fields that only allow numbers in a non-destructive way, for example for step_count or capacity.
 
 
 == Tagging ==
 
 * Remove created_by=* tags from any data touched
+* Ability to specify that a node should e a point in a way, for example for crossings
 
 == Rendering (Halcyon) ==
 
diff --git a/resources/features/paths__steps.png b/resources/features/paths__steps.png
new file mode 100644 (file)
index 0000000..1590b29
Binary files /dev/null and b/resources/features/paths__steps.png differ
diff --git a/resources/features/paths__steps.svg b/resources/features/paths__steps.svg
new file mode 100644 (file)
index 0000000..ebbe956
--- /dev/null
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="343pt"
+   height="340pt"
+   id="svg2816"
+   version="1.1"
+   inkscape:version="0.47 r22583"
+   sodipodi:docname="paths__unknown.svg">
+  <defs
+     id="defs2818">
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient3619">
+      <stop
+         style="stop-color:#00ffff;stop-opacity:1;"
+         offset="0"
+         id="stop3621" />
+      <stop
+         style="stop-color:#00ffff;stop-opacity:0;"
+         offset="1"
+         id="stop3623" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient3609">
+      <stop
+         style="stop-color:#008000;stop-opacity:1;"
+         offset="0"
+         id="stop3611" />
+      <stop
+         style="stop-color:#008000;stop-opacity:0;"
+         offset="1"
+         id="stop3613" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 212.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="428.75 : 212.5 : 1"
+       inkscape:persp3d-origin="214.375 : 141.66667 : 1"
+       id="perspective2825" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3609"
+       id="linearGradient3615"
+       x1="215"
+       y1="188.25"
+       x2="215"
+       y2="430.5"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3619"
+       id="linearGradient3625"
+       x1="215"
+       y1="188.75"
+       x2="215"
+       y2="0"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.001462,0,0,1,-1.2518275,0)" />
+  </defs>
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="1.6"
+     inkscape:cx="266.82499"
+     inkscape:cy="119.75636"
+     inkscape:document-units="pt"
+     inkscape:current-layer="layer1"
+     id="namedview2820"
+     showgrid="false"
+     inkscape:window-width="1280"
+     inkscape:window-height="720"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata2822">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <rect
+       style="fill:url(#linearGradient3615);fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1.0"
+       id="rect2827"
+       width="430"
+       height="241.25"
+       x="0"
+       y="188.75" />
+    <rect
+       style="fill:url(#linearGradient3625);fill-opacity:1"
+       id="rect3617"
+       width="428.125"
+       height="188.75"
+       x="0"
+       y="-6.5955419e-10" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:27.25000000000000000;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
+       d="m 66.875,383.125 0,-115 160,0 0,-126.875 148.125,0"
+       id="path3780" />
+  </g>
+</svg>
index 74e192b..51191aa 100644 (file)
 
   <feature name="Steps">
     <category>paths</category>
-    <icon image="features/paths__unknown.png">
+    <icon image="features/paths__steps.png">
     </icon>
     <help>http://wiki.openstreetmap.org/wiki/Tag:highway%3Dsteps</help>
 
index 4dca42d..aafa5fd 100644 (file)
@@ -40,7 +40,8 @@ area=yes tag should be filled. The below doesn't yet work as intended. */
 way[highway=pedestrian] !:area { color: #ddddee; width: 5; casing-color: #555555; casing-width: 6; }
 way[highway=pedestrian] :area  { color: #555555; width: 1; fill-color: #ddddee; fill-opacity: 0.8; }
 
-way[highway=footway]   { color: #FF6644; width: 2; dashes: 6, 3 }
+way[highway=steps]     { color: #FF6644; width: 2; dashes: 4, 2; }
+way[highway=footway]   { color: #FF6644; width: 2; dashes: 6, 3; }
 way[highway=bridleway] { z-index:9; color: #996644; width: 2; dashes: 4, 2, 2, 2; }
 way[highway=track]     { color: #996644; width: 2; dashes: 4, 2; }
 way[highway=path]      { color: lightgreen; width: 2; dashes: 2, 2; }