Skip to content

Use the Lane tool — draw lanes from a centerline or boundaries

Press N for the Lane tool. A panel opens on the right and stays visible while the tool is active. The top of the panel is the CREATION MODE switch:

Lane panel — CREATION MODE has Center Line and Boundary buttons; Center Line is selected; Lane Width 50 px

The two modes do different things; pick the one that matches your situation.

Two lanes drawn in Center Line mode, a third one inserted in Boundary mode.

You draw the centerline; drawtonomy generates the left and right boundaries from the Lane Width value. Use this when you’re starting from nothing.

  1. Click on the canvas to drop the first centerline point.
  2. Click again to drop the next, and so on.
  3. Press Enter (or double-click the last point) to finish.

The Lane tool stays active, so click again somewhere else to start a new lane. Two lanes drawn this way:

Two lanes drawn from centerlines

You can change Color, Opacity, or Lane Width in the panel between lanes — the new value applies to the next lane you draw, not the selected one.

Click Boundary at the top of the panel to switch modes. In Boundary mode you don’t click empty space; you click two existing boundary linestrings, and drawtonomy makes a lane that uses them as its left and right boundaries.

Hover a linestring — drawtonomy highlights it in indigo when the cursor is close enough — and click:

Boundary mode — an existing right boundary is highlighted, ready to be picked

Click a second linestring and a new lane appears between them. The new lane shares both boundaries with whatever else uses them, so moving a boundary point updates every lane that depends on it.

Use Boundary mode when you already have geometry (drawn by hand, imported from Lanelet2, or generated by Lane Generator) and want lanes to fit between it.

Press V for Select, then click a lane. The panel switches to the lane’s attributes:

Lane Attribute Panel — Lane ID, shared boundary IDs, Direction, four connection slots

What’s shown:

  • Lane ID and the IDs of the Left Boundary / Right Boundary linestrings (e.g. way/1, way/2). Two lanes that share a linestring will show the same ID here.
  • Lane Color, Lane Opacity, Direction (Reverse) — the visual and topological settings for the lane itself.
  • Next Lanes / Prev Lanes / Left Lane / Right Lane — the four connection slots, each with Create (make a new neighbouring lane) and Set (point at an existing one). See Manage lane connections.