Repository navigation
Code Map
Where each part of Lane Studio lives, and the hooks it uses in iD.
| Part | Where |
|---|---|
| Entry point and boot |
index.ts, core/boot.ts, lanes.html
|
Lane model: parse, edit and write *:lanes tags; lane types; markings; connectivity; street features and the centre line; street parking (parking.ts); access keys, their hierarchy and values (access.ts); active traffic management |
model/ |
| Actions (lanes, markings, signs, copy, connect), each one undo step | actions/ |
State: selected lanes, tools, keyboard, settings, roadside detection, what's new, links; fields, a preset for every road marking (markingPresets) and for the other features iD has none for (featurePresets) added to iD's presets (preset_fields.ts) |
core/ |
| Geometry in metres: lane layout, roads and junctions, street features (crossings, UK crossings, tactile paving, advanced stop lines, multipolygon areas), road markings, symbols along lanes, parking, parking spaces, railways, water, building work, signs, routing | geometry/ |
| Look-ahead corridor, roundabouts | osm/ |
| Map drawing and click targets | svg/ |
Sidebar sections; road fields in iD's Fields (road_fields.ts); shared field parts (lane_fields.ts); i button topics (field_info.ts); parking (parking_fields.ts) and cycle lane (cycleway_fields.ts) details; the + menu (roadside_menu.ts); iD's Allowed Access field as Lane Studio draws it (access_field.ts); the field filter (field_filter.ts); panes (settings, Map key pane_key.ts); welcome screen, what's new, walkthrough (intro.ts), help pages (help.ts), logo, speed roundels |
ui/ |
| Lane tags rule | validations/ |
| Version | version.ts |
| Feature | Files |
|---|---|
| Routing |
geometry/routing.ts, core/lane_routing.ts, core/mode_routing.ts, core/route_access.ts (roads coloured by access), ui/routing_panel.ts, svg/routing.ts
|
| Speed Limit tool |
core/lane_speed.ts, core/mode_speed.ts, ui/speed_panel.ts, ui/speed_roundels.ts, model/speed_limits.ts
|
| Connectivity tool |
geometry/connectivity.ts (connections at a node, relations read and checked), actions/connect_lanes.ts, core/lane_connectivity.ts, core/mode_connectivity.ts, ui/connectivity_panel.ts, svg/connectivity.ts, css-lanes/45_connectivity.css
|
| Railways |
geometry/railway.ts, geometry/rail_features.ts, svg/railway.ts
|
| Water |
geometry/water.ts (watercourses at width, water areas, weirs, dams, gates), svg/water.ts
|
| Building work |
core/lifecycle.ts (what is being built, the two mistakes read as meant), geometry/works.ts (sites, scaffolding, works areas, roadworks cones), svg/works.ts; the fixes in validations/lane_tags.ts
|
| Parking spaces and car parks |
geometry/parking_spaces.ts, svg/parking_spaces.ts
|
| Brand logos |
core/brand_logos.ts (Wikidata), svg/brand_logos.ts
|
| The OpenStreetMap map when zoomed out |
core/zoomed_out_map.ts (an overlay of iD's background, its opacity following the zoom) |
| What's new |
core/whats_new.ts, ui/whats_new.ts (the build copies docs/CHANGELOG.md to dist/lanes-changelog.md) |
Elsewhere: styles css-lanes/ (built into dist/lanes.css), strings data/lanes.yaml (read as t('_lanes.…')),
the logo docs/img/lane-studio-logo.svg, site packaging scripts/build_lanes_site.js, the wiki
scripts/build_wiki.js, the tag coverage pages scripts/build_tag_coverage.js, tests test/spec/lanes/.
The website is LanesWebsite/; its statistics' collector and page parts are in LanesWebsite/includes/statistics/,
their country borders built by scripts/build_statistics_countries.js (Statistics).
iD needed only small hooks that keep its behaviour by default, so plain iD (index.html) works as before:
| Hook | File | Default |
|---|---|---|
context.createdBy(), the changeset's created_by
|
modules/core/context.ts, modules/ui/commit.js
|
iD <version> |
context.operationFilter(), hiding edit menu operations |
modules/core/context.ts, modules/modes/select.js
|
none |
prefs.prefix(), for stored keys, saved edits and the edit lock |
modules/core/preferences.js, modules/core/history.ts
|
no prefix |
localizer.addLocaleDir(), localizer.mergeStrings()
|
modules/core/localizer.ts |
none |
uiEntityEditorAddSection(), extra sidebar sections ({ afterFields: true } after the fields) |
modules/ui/entity_editor.js |
none |
uiSectionPresetFieldsSetFilter(), leaving out preset fields |
modules/ui/sections/preset_fields.js |
none |
A field's referenceComponent, its own i button |
modules/ui/field.js |
iD's wiki reference |
uiInitAddPane(), extra panes |
modules/ui/init.js |
none |
uiInitHidePane(), leaving out one of iD's panes (Preferences) |
modules/ui/init.js |
all shown |
uiInitSetSidebarHeader(), a header above the sidebar |
modules/ui/init.js |
none |
uiTopToolbarAddTool(), extra top bar tools |
modules/ui/top_toolbar.js |
none |
uiVersionSetProduct(), the footer's version |
modules/ui/version.js |
iD's version |
uiIntroSetChapters(), the walkthrough's chapters |
modules/ui/intro/intro.js |
iD's chapters |
uiPaneHelpAddDocs(), help pages before iD's |
modules/ui/panes/help.js |
none |
coreValidatorAddRule(), extra validation rules |
modules/core/validator.js |
none |
svgVerticesSetImportance(), which vertices are drawn unselected |
modules/svg/vertices.js |
iD's choice |
| A second esbuild entry, CSS bundle and strings file |
config/, scripts/
|
iD unchanged |
Lane Studio saves changesets as created_by=LaneStudio <version>, keeps its saved edits and preferences under a
lanes_ prefix, and writes none for unmarked lanes in new turn:lanes keys.
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