Tool to create a parallel copy of an existing way. First call the constructor Parallelise() passing it the
way that will be parallelised. This performs some initialisation. Then call draw(), passing it an offset,
as many times as you like. Each time it recomputes the parallel way. There is no finalisation.
This is intended to work with the SelectedParallelWay controller state.
public var parallelWay:Way
public function Parallelise(way:Way)
Initialises parallelisation process, adding an entry to global undo stack.
Parameters
| way:Way — The way to be duplicated.
|
public function draw(offset:Number):void
Compute the shape of the parallel way, implicitly causing it to be drawn if onscreen. Closed ways are ok.
Parameters
| offset:Number — How far, in lon/latp units, should the parallel way be. Can be negative. |
Found an error? Help us fix it. http://wiki.openstreetmap.org/wiki/Potlatch2