Repository navigation
iD Core
Lane Studio runs on iD's core. This is the short version; iD's own ARCHITECTURE.md has the long one.
| Part | What it is |
|---|---|
iD.osmNode, osmWay, osmRelation
|
OSM entities, immutable: an edit makes a new copy. Ids are prefixed by type (n123, w123); new ones are negative |
iD.coreGraph |
All entities by id, immutable and shared between versions, like git |
iD.coreHistory |
A stack of graphs: undo pops one. Actions need no undo code of their own |
iD.coreDifference |
What changed between two graphs, to redraw |
iD.coreTree |
An R-tree of what is in view |

| Part | What it is |
|---|---|
| Actions | Functions from a graph to a new graph (actionDeleteNode('n1')(graph)), keeping the data consistent |
| Modes | Browse, Select and the drawing modes; each has enter and exit, and one is active at a time |
| Behaviors | Shared interaction (hover, drag, select), installed by a mode and removed with off
|
| Operations | An action with its interface: tooltip, key, whether it is available and enabled |
-
iD.rendererMapsets up the projection and zoom;iD.svgPoints,svgVertices,svgLinesandsvgAreasdraw with d3 joins. A point is a node in no way, a vertex a node in a way, an area a closed way with area tags or a multipolygon. - Elements get classes from their tags (
tag-highway tag-highway-residential), see Customising. - UI components are d3 functions:
selection.call(uiThing(context)). - d3 also provides fetching, dispatch (events), geo paths and zoom.
coreValidator runs rules (modules/validations/) on each entity and lists issues in the Issues pane: errors
block upload, warnings don't. Rules include almost_junction, close_nodes, crossing_ways,
disconnected_way, help_request, impossible_oneway, incompatible_source, invalid_format,
mismatched_geometry, missing_role, missing_tag, osm_api_limits, outdated_tags, private_data,
suspicious_name and unsquare_way; Lane Studio adds lane_tags (Checks).
Changesets record issues as warnings:<type>:<subtype>=<count> (left by the user) and resolved:<type>:<subtype>=<count>
(fixed).
Copied from docs/ on every change; edit the files there, not here.
Lane Studio
- Guide
- FAQ
-
Tag coverage
- Tags: Accessibility
- Tags: Addresses
- Tags: Advertising
- Tags: Aerialways
- Tags: Aeroways
- Tags: Agriculture
- Tags: Amenities
- Tags: Animals
- Tags: Annotations
- Tags: Barriers
- Tags: Bicycles
- Tags: Boundaries
- Tags: Bridges
- Tags: Buildings
- Tags: Buses
- Tags: Changeset
- Tags: Children
- Tags: Climbing
- Tags: Clubs
- Tags: Communications
- Tags: Crafts
- Tags: Crossings
- Tags: Cycleways
- Tags: Diplomacy
- Tags: Education
- Tags: Emergencies
- Tags: Ferries
- Tags: Food and beverages
- Tags: Government
- Tags: GPS
- Tags: Hazards
- Tags: Health
- Tags: Highways
- Tags: Hiking
- Tags: Historic
- Tags: Import
- Tags: Industrial
- Tags: Infrastructure
- Tags: Landcover
- Tags: Landuse
- Tags: Leisure
- Tags: Lifecycle
- Tags: Man made
- Tags: Marine
- Tags: Marine navigation
- Tags: Maritime
- Tags: Mechanics
- Tags: Military
- Tags: Motorcycles
- Tags: Names
- Tags: NaPTAN
- Tags: Natural
- Tags: Offices
- Tags: Parking
- Tags: Pipelines
- Tags: Places
- Tags: Police
- Tags: Power
- Tags: Products
- Tags: Properties
- Tags: Public transport
- Tags: Railways
- Tags: References
- Tags: Religion
- Tags: Restrictions
- Tags: Riding
- Tags: Routes
- Tags: Shops
- Tags: Social facilities
- Tags: Social networks
- Tags: Sports
- Tags: Swimming and bathing
- Tags: Tourism
- Tags: Transport
- Tags: Vending machines
- Tags: Waste processing
- Tags: Water
- Tags: Water management
- Tags: Waterways
- Tags: Other
- Developers
- API
- Contributing
- Releasing
- Accessibility
- Privacy
- Security
- Code of conduct
- Changelog