Triangle line decoration for ways tagged natural=cliff
Index: WayUI.as
===================================================================
--- WayUI.as (revision 25026)
+++ WayUI.as (working copy)
@@ -474,6 +474,19 @@
g.endFill();
}
break;
+ case 'triangle':
+ w=s.width*10; //triangle egde
+ g.lineStyle(1,c);
+ for each (seg in segments) {
+ g.beginFill(c);
+ angle0 = -Math.atan2(seg[3],
seg[2]) + Math.PI / 2; //0
+ angle1 = -Math.atan2(seg[3],
seg[2]) - Math.PI/6; //60
+ g.moveTo(seg[0],
seg[1]);//start 0,0
+ g.lineTo(seg[0] - w *
Math.sin(angle0), seg[1] - w * Math.cos(angle0));
+ g.lineTo(seg[0] + w *
Math.sin(angle1), seg[1] + w * Math.cos(angle1));
+ g.endFill();
+ }
+ break;
}
}
WayUI.as.diff
Description: Binary data
_______________________________________________ Potlatch-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/potlatch-dev
