John Firebaugh 2c40de62be Add iD.behavior.drag
`iD.behavior.drag` is like `d3.behavior.drag`, with the following differences:

* The `origin` function is expected to return an [x, y] tuple rather than an
  {x, y} object.
* The events are `start`, `move`, and `end`.
  (https://github.com/mbostock/d3/issues/563)
* The `start` event is not dispatched until the first cursor movement occurs.
  (https://github.com/mbostock/d3/pull/368)
* The `move` event has a `loc` and `dxdy` [x, y] tuple properties rather
  than `x`, `y`, `dx`, and `dy` properties.
* The `end` event is not dispatched if no movement occurs.
* An `off` function is available that unbinds the drag's internal event handlers.
* Delegation is supported via the `delegate` function.
2012-12-21 12:10:43 -08:00
2012-12-20 19:28:48 -05:00
2012-12-20 18:49:21 -05:00
2012-12-21 12:10:43 -08:00
2012-10-24 19:51:44 +02:00
2012-12-21 12:10:43 -08:00
2012-12-04 14:09:45 -05:00
2012-12-04 17:56:04 -05:00
2012-12-21 12:10:43 -08:00
2012-12-12 16:05:02 -05:00
2012-12-21 12:10:43 -08:00
2012-12-05 16:42:48 -05:00
2012-12-14 11:30:13 -05:00
2012-12-04 18:34:09 -05:00
2012-11-16 12:06:03 -05:00

iD - friendly JavaScript editor for OpenStreetMap

Build Status

Try the online demo of the most recent code. and open issues for bugs and ideas!

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.
  • We support modern browsers. Data is rendered with d3.

Participate!

To run the code locally, just fork this project and run it from a local webserver. With a Mac, you can enable Web Sharing and drop this in your website directory.

If you have Python handy, just cd into iD and run

 python -m SimpleHTTPServer

Come on in, the water's lovely. More help? Ping RichardF, tmcw, or jfire on IRC (irc.oftc.net, in #osm-dev or #osm), on the OSM mailing lists or at richard@systemeD.net.

License

iD is available under the WTFPL, though obviously, if you want to dual-license any contributions that's cool. It includes d3js, which BSD-licensed.

Description
No description provided
Readme 253 MiB
Languages
JavaScript 94.4%
CSS 5.3%
TypeScript 0.2%