Import a Lanelet2 (.osm) file
drawtonomy can read Lanelet2 OSM-format maps. Sample maps are available from the Autoware documentation.
Import the whole file
Section titled “Import the whole file”- Open the File menu → Import.
- Pick the
.osmfile. - drawtonomy parses the file and populates the canvas with Lane shapes plus their connections.
Import only specific lanes
Section titled “Import only specific lanes”For large maps, importing every lane will slow the editor down. Use the lane-selection dialog instead:
- Open the File menu → Import → Select lanes.
- drawtonomy shows a preview map.
- Click or drag to select the lanes you want.
- Click Import selection.
Performance tips
Section titled “Performance tips”drawtonomy handles large maps, so you can import a full Lanelet2 file when you need to. When you only care about a section, importing just the lanes you need keeps the editor snappiest and avoids loading geometry you won’t edit.
After import
Section titled “After import”Imported lanes are full-fidelity Lane shapes; the connections from the Lanelet2 file are preserved. Edit, smooth, or export back without losing topology.
Round-trip and regulatory elements
Section titled “Round-trip and regulatory elements”drawtonomy keeps the original .osm XML as a sidecar when you import.
On export back to .osm (Lanelet2), original IDs and tags are
preserved, and regulatory elements you didn’t touch — traffic lights,
right-of-way, speed limits, stop signs — are re-emitted from that
source verbatim.
Imported regulatory elements also become editable: traffic lights, traffic signs (including speed limits), stop lines, and right-of-way relations come in as drawtonomy shapes linked to the lanelets they govern, and you can place new ones from scratch with the same UI. For LiDAR-aligned or city-scale authoring, use Vector Map Builder or JOSM.
See also
Section titled “See also”- Convert between OpenDRIVE and Lanelet2 —
use drawtonomy as a bridge to
.xodr. - Import an OpenDRIVE (.xodr) file — the same selection workflow for OpenDRIVE maps.
- drawtonomy.svg format — the lossless format for re-editing within drawtonomy.
- Generate lanes from a map — when you don’t have a curated map file.