MCPcopy Index your code
hub / github.com/openstreetmap/iD

github.com/openstreetmap/iD @v2.41.2 sqlite

repository ↗ · DeepWiki ↗ · release v2.41.2 ↗
2,375 symbols 7,542 edges 521 files 90 documented · 4% 3 cross-repo links
README

iD - friendly JavaScript editor for OpenStreetMap

build

Basics

  • iD is a JavaScript OpenStreetMap editor.
  • It's intentionally simple. It lets you do the most basic tasks while not breaking other people's data.
  • It supports all popular modern desktop browsers: Chrome, Firefox, Safari, Opera, and Edge.
  • Data is rendered with d3.js.

Participate!

Come on in, the water's lovely. More help? * OpenStreetMap US Slack (#id channel) * OpenStreetMap Discord (#id-and-rapid channel) * OpenStreetMap community forum

Installation

Follow the steps in the how to get started guide on how to install, build and run iD locally.

License

iD is available under the ISC License. See the LICENSE.md file for more details.

iD also bundles portions of the following open source software.

Thank you

Initial development of iD was made possible by a grant of the Knight Foundation.

Extension points exported contracts — how you extend this code

CmdSequence (Interface)
(no doc)
modules/ui/cmd_sequence.ts
BBox (Interface)
(no doc)
modules/geo/extent.ts
Detected (Interface)
(no doc)
modules/util/detect.ts
Flattened (Interface)
(no doc)
modules/ui/cmd_sequence.ts
Coord (Interface)
(no doc)
modules/geo/ortho.ts
WithBbox (Interface)
(no doc)
modules/util/partition.ts
TagDictionary (Interface)
(no doc)
modules/util/object.ts
Binding (Interface)
(no doc)
modules/util/keybinding.ts

Core symbols most depended-on inside this repo

entity
called by 1182
modules/core/graph.ts
hasEntity
called by 475
modules/core/graph.ts
replace
called by 428
modules/core/graph.ts
remove
called by 320
modules/core/graph.ts
update
called by 167
modules/osm/qa_item.js
helpHtml
called by 150
modules/ui/intro/helper.js
geometry
called by 119
modules/core/graph.ts
svgIcon
called by 116
modules/svg/icon.js

Shape

Function 2,322
Method 33
Class 12
Interface 8

Languages

TypeScript100%

Modules by API surface

modules/util/util.ts41 symbols
modules/ui/intro/line.js32 symbols
modules/ui/fields/combo.js32 symbols
modules/ui/intro/building.js28 symbols
modules/svg/labels.js26 symbols
modules/validations/crossing_ways.js25 symbols
modules/renderer/map.js25 symbols
modules/modes/select.js25 symbols
modules/services/osmose.js23 symbols
modules/ui/intro/navigation.js22 symbols
modules/ui/fields/address.js22 symbols
modules/ui/combobox.js22 symbols

Used by 3 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@actions/github-scriptgithub:actions/githu · 1×
@enzet/roentgen0.15.0 · 1×
@eslint/js10.0.1 · 1×
@fortawesome/fontawesome-svg-core7.2.0 · 1×
@fortawesome/free-brands-svg-icons7.2.0 · 1×
@fortawesome/free-regular-svg-icons7.2.0 · 1×
@fortawesome/free-solid-svg-icons7.2.0 · 1×
@mapbox/geojson-area0.2.2 · 1×
@mapbox/maki8.2.0 · 1×
@mapbox/sexagesimal1.2.0 · 1×
@mapbox/vector-tile3.0.0 · 1×
@openstreetmap/editor-layer-indexgithub:osmlab/editor · 1×

For agents

$ claude mcp add iD \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact