John Firebaugh
f6ff3e678b
Use osmId/Entity.id.toOSM
2013-01-28 10:16:51 -05:00
John Firebaugh
47ef222f38
Convert iD.format.XML to member functions
2013-01-27 21:50:08 -05:00
John Firebaugh
646c746991
Convert iD.format.GeoJSON to member functions
2013-01-27 21:50:07 -05:00
John Firebaugh
5ea855e18d
Replace Graph#fetch with Graph#childNodes
...
Having two kinds of Ways (fetched and non-fetched)
introduced some accidental complexity. This brings things
more in line with how parentWays/parentRelations work.
Fixes #73 .
2013-01-25 15:10:44 -05:00
John Firebaugh
278bb4a51c
Fix some cases where a degenerate way was created
2013-01-23 12:40:27 -05:00
John Firebaugh
292c916cb1
Converting some actions to entity methods
...
The guidelines here are:
Entity methods:
return a modified entity
don't necessarily maintain whole-graph consistency
Actions:
return a modified graph
always maintain whole-graph consistency
call entity methods liberally
generally don't call other actions
2013-01-23 12:40:27 -05:00
John Firebaugh
d74bf1e39a
Use proper prototypal inheritance and less dynamic new
2013-01-22 17:38:52 -05:00
John Firebaugh
95800741fd
Add some utility methods to Way
2013-01-18 14:44:29 -08:00
John Firebaugh
5a2444b551
Extract and fix extent/intersection calculations
...
Extents are now [[min x, min y], [max x, max y]].
2013-01-17 14:27:01 -08:00
Tom MacWright
6407fa464c
Run intersection on difference changes, do not use compact. Fixes #334
2013-01-16 14:06:11 -05:00
John Firebaugh
62efa1948e
Add Entity#geometry, use in inspector
...
Fixes the icon for areas, but breaks it for vertices.
Needs a big-vertex sprite.
2013-01-02 21:59:55 -08:00
John Firebaugh
d181df4c51
Polymorphism
2012-12-28 22:24:52 -08:00
John Firebaugh
f7dfda46b2
Move Entity subclasses to separate files
2012-12-28 22:17:09 -08:00
Tom MacWright
a0d28c1e2d
Expand tests, move way logic into entity.js and test it.
2012-12-04 13:06:21 -05:00
Tom MacWright
51370330f2
Reload data, fixes #129 , also fixes jshint
2012-11-27 18:37:20 -05:00
Tom MacWright
936cefb4ef
Rename and update
2012-11-27 17:51:03 -05:00