Commit Graph

82 Commits

Author SHA1 Message Date
John Firebaugh
c263ebd4dc iD.util.geo => iD.geo 2013-01-22 18:20:20 -05:00
John Firebaugh
381794e7a1 Fix Relation#multipolygon for unmatched inner rings (fixes #461) 2013-01-22 17:54:57 -05:00
John Firebaugh
d74bf1e39a Use proper prototypal inheritance and less dynamic new 2013-01-22 17:38:52 -05:00
John Firebaugh
814c3608db Hook into undos in a different way
This way doesn't depend on details of keybindings and
the undo button.

Also, implement this in DrawArea mode.
2013-01-22 14:55:08 -05:00
Ansis Brammanis
a97a4e4617 Fix redrawing shared vertices 2013-01-20 19:05:53 -05:00
Brandon Liu
ded802049a add history.numChanges method.
Use hasChanges/numChanges to toggle Save button and show confirmation dialog when navigating away from page.
2013-01-19 23:16:48 -08:00
Brandon Liu
d83ec7f1eb Create method history.hasChanges 2013-01-19 23:01:47 -08:00
John Firebaugh
95800741fd Add some utility methods to Way 2013-01-18 14:44:29 -08:00
John Firebaugh
b27903f7b5 Add Relation#isRestriction 2013-01-18 14:44:28 -08:00
John Firebaugh
3349e1f69c Add some utility methods to Relation 2013-01-18 14:44:28 -08:00
John Firebaugh
bf251dce15 Handle incomplete relations 2013-01-17 17:37:50 -08:00
John Firebaugh
9abe3af312 Fix extent and difference rendering for multi polygons 2013-01-17 14:27:01 -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
9b21fae8cb Validation. This adds basic validation and display to commits
Included is

* Untagged POIs, ways, areas
* Tags that suggest that lines should be areas
2013-01-17 14:46:39 -05:00
Tom MacWright
6407fa464c Run intersection on difference changes, do not use compact. Fixes #334 2013-01-16 14:06:11 -05:00
Tom MacWright
0e9e14102e Cache fetch results, higher features limit 2013-01-16 13:54:53 -05:00
Tom MacWright
87c341d7e0 Fix jshint problems. 2013-01-16 12:39:35 -05:00
Ansis Brammanis
fc272199c7 Fix difference 2013-01-16 11:34:50 -05:00
Ansis Brammanis
0a1e16a319 Nodes with changed parents added to difference 2013-01-16 11:31:36 -05:00
John Firebaugh
1d707b0eb2 Match inners with outers
After thinking about how the `evenodd` fill rule works, I pretty sure
we don't actually need to do this. If I'm right, I'll back it out, and
it will be in the history if we need it for some other purpose.
2013-01-13 18:17:16 -08:00
John Firebaugh
67c8e287cf Start on multipolygon reconstruction algorithm 2013-01-13 17:20:04 -08:00
John Firebaugh
ddaca08fb1 Clean up parentWays, apply same algorithm to relations 2013-01-12 11:03:45 -08:00
John Firebaugh
6e044f3607 Store flag on _parentWays itself, fixes #392
Relying here on the fact that `calculated` will never
collide with an actual entity ID.
2013-01-12 10:55:18 -08:00
Ansis Brammanis
bb65916e06 Fix careless naming, fixing node dragging 2013-01-12 02:15:33 -05:00
Ansis Brammanis
62e78b5b9b clean up parentWays 2013-01-11 20:37:32 -05:00
Ansis Brammanis
a08dd7ecce More efficient parentways 2013-01-11 19:14:17 -05:00
Tom MacWright
68e79ef81d Merge branch 'master' of github.com:systemed/iD 2013-01-11 15:36:06 -05:00
Tom MacWright
e30995921e Remove indirection between entity and types 2013-01-11 15:35:10 -05:00
John Firebaugh
577398ca21 Fix .shared classing
Now that Graph#parentWays is cached, the specialized Graph#parentStructure
method is no longer necessary.

This commit also demonstrates that it's relatively easy to write specs for
rendering now!
2013-01-11 11:56:37 -08:00
John Firebaugh
2ab572bd42 iD.Entity.key 2013-01-10 21:05:03 -08:00
Tom MacWright
eedc0fce9d Fast parent calculation. 2013-01-09 14:52:39 -05:00
Tom MacWright
850e7d6568 Optimize difference and parentWays 2013-01-09 13:45:04 -05:00
Ansis Brammanis
97bc2429dc Update background source for history 2013-01-08 16:26:28 -05:00
Ansis Brammanis
fe634f4f9f Tag commits with imagery used 2013-01-08 16:04:31 -05:00
Tom MacWright
4347b134de Optimize difference 2013-01-08 15:33:29 -05:00
John Firebaugh
15099ee517 Define Relation#geometry 2013-01-07 12:15:16 -08: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
2a6145ef10 Move friendlyName to Entity 2013-01-02 21:43:35 -08:00
John Firebaugh
11b269006c Remove base extent definition 2012-12-29 09:38:41 -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
John Firebaugh
31502c6214 Simplify; test; fix 2012-12-28 22:13:36 -08:00
John Firebaugh
5fe22be7a0 Introduce real Entity subclasses 2012-12-28 18:42:21 -08:00
John Firebaugh
c66ea58d56 Move transients to graph (fixes #285) 2012-12-27 18:52:56 -08:00
Tom MacWright
e8a14f8b5b Make handles connected to more than one way cyan. Fixes #205 2012-12-17 14:06:27 -05:00
Tom MacWright
e9540bf281 Avoid barriers as well 2012-12-14 14:25:14 -05:00
Tom MacWright
3803d28d74 Improve area-closed logic. Fixes #237 2012-12-14 14:20:17 -05:00
Tom MacWright
0db5193e0c Fix parentRelations 2012-12-07 14:16:11 -05:00
Tom MacWright
da66377e55 Merge branch 'master' of github.com:systemed/iD 2012-12-07 14:03:08 -05:00
Tom MacWright
6d7b135b22 Push more on split_way 2012-12-07 14:03:03 -05:00