Packagenet.systemeD.potlatch2.tools
Classpublic class Straighten

Tool to transform a non-closed way into a straight line, by deleting any non-junction, untagged, on-screen nodes, and moving the others to fit. Call only the static function straighten()



Public Methods
 MethodDefined by
  
straighten(way:Way, map:Map, performAction:Function):void
[static] Carries out the straightening.
Straighten
Method detail
straighten()method
public static function straighten(way:Way, map:Map, performAction:Function):void

Carries out the straightening.

Parameters
way:Way — Way to be straightened.
 
map:Map — Map that it belongs to.
 
performAction:Function