Commit Graph

2365 Commits

Author SHA1 Message Date
tyr e8d637f2bb Add iD.geo.sphericalDistance
iD.geo.euclideanDistance should only be used for calculations of 
projected coordinates or display (pixel) coordinates.

iD.geo.sphericalDistance calculates approximate geographical 
distances, accounting for distortions at higher latitudes. This 
can be used for determining the nearest node (operations.Delete,
actions.Circularize) or relative length comparisons (actions.Split).
2013-09-29 07:45:04 -07:00
tyr 6afe3adfbe more clever splitting of closed ways
if a way is closed, iD needs to choose a second node to
split the way at.

This algorithm looks for a node that is both far away from
the initial node in terms of way segment length and nearby
in terms of beeline-distance. This assures that areas get
split on the most "natural" points (independent of the number
of nodes).

For example: bone-shaped areas get split across their waist-
line, circles across the diameter.
2013-09-29 07:43:20 -07:00
Paul Mach be30344cfd Improve Circularize Action 2013-09-28 14:33:39 -07:00
Paul Mach 3ac12a1e70 Orthononalize bug fixes 2013-09-27 22:24:32 -07:00
Paul Norman e6aeba1f60 Add more tags to areas list
Keys added from osm2pgsql, excluded values from overpass turbo
2013-09-26 13:44:01 -07:00
John Firebaugh bfef7962fe Add office to area list (fixes #1784) 2013-09-26 13:18:32 -07:00
John Firebaugh 831f62fa0c 1.2.0 2013-09-26 10:18:31 -07:00
John Firebaugh 4728622d87 Don't auto-save intro tutorial edits
Fixes #1745
Fixes #1795
2013-09-25 15:32:56 -07:00
John Firebaugh 844c11df63 Clean up 2013-09-25 14:46:12 -07:00
SJohnson 0790cf7423 Added the ability to load points from gpx files and display on the map 2013-09-25 14:42:58 -07:00
John Firebaugh 690a04e538 Make straighten/orthogonalize act like a single operation
- Display only one or the other in the radial menu
- Rename "Orthogonalize" to "Square"
- Use "S" as shortcut for both

Refs #1839
2013-09-25 14:26:30 -07:00
Paul Mach 76e0ef7c26 Better orthogonalization of skinny quads. Fixes #1812 2013-09-21 21:21:36 -07:00
Paul Mach b8efb00cfc Add straighten way operation and action 2013-09-20 12:14:16 -07:00
Tom MacWright e77e899e08 Merge pull request #1783 from g-k/save-commit-message
Save commit message on keyup
2013-09-17 11:14:37 -07:00
Tom MacWright da4cc3dd38 Merge branch 'hlaw-unicodefix' 2013-09-17 10:46:55 -04:00
Tom MacWright 7ff9bf4a8f Cleanup style and null check 2013-09-17 10:46:49 -04:00
Tom MacWright 7f41d8d90f Catch localStorage quota exception. Fixes #1807 2013-09-13 17:26:48 -04:00
Greg Guthe 876547b1ea Fix saving comments 2013-09-09 19:22:50 -04:00
hhclaw.eb@gmail.com ab6c6411bd Unicode fix for label 2013-09-06 20:15:01 +08:00
hhclaw.eb@gmail.com 2c163ae2c2 Amend width calculation for wide characters 2013-09-06 20:00:08 +08:00
Greg Guthe 2d5ec0d77f Remove commit message save on click
Clicking the save button will blur the commit message textarea and
trigger a save.
2013-09-05 21:03:30 -04:00
Greg Guthe b27ed806a9 Save commit message on blur 2013-09-05 21:00:11 -04:00
Greg Guthe ba9745a6eb Save commit message on keyup
Refs: #1775
2013-09-05 00:35:38 -04:00
John Firebaugh e11ab9699d Avoid consecutive identical nodes when adding a midpoint
Previously, adding a midpoint to an invalidly doubled-back
segment (aba) resulted in a self-intersection with an invalid
consecutive node (accba). Now a self-intersection is still
produced, but with only one c node (acba).

Refs #1296
2013-09-01 12:57:10 -07:00
John Firebaugh 156aa90e27 Add more turn logic 2013-08-30 19:27:21 -07:00
John Firebaugh 405a49506b Building logic for turn restrictions 2013-08-30 14:23:05 -07:00
John Firebaugh a32ce33238 Add Way#affix 2013-08-30 13:59:29 -07:00
John Firebaugh 1a166ec9b7 Suppress menu in more places 2013-08-29 14:38:42 -07:00
John Firebaugh 2197fbc25b Stop nudge when exiting move mode (fixes #1766) 2013-08-29 14:34:13 -07:00
Dmitri Goldring 74744319cc Use dictionary instead of array to prevent split changes
Changesets for a new area can be out of order, this patch
fixes an issue where they could show up in the commit confirm
as 'point, area, point(s)' instead of 'points, area'.

Fixes #1722
2013-08-29 13:11:57 -07:00
John Firebaugh 6a3d62e57c Fix tests 2013-08-28 11:01:16 -07:00
John Firebaugh 8a215cac81 Add "Continue" operation 2013-08-28 09:30:28 -07:00
John Firebaugh 57cfe50ec7 Support {-y} notation 2013-08-27 17:28:28 -07:00
John Firebaugh 7c2698f0e2 Clean up 2013-08-27 17:09:36 -07:00
John Firebaugh 163c85bacb Delete relations that become empty
Fixes #465
Fixes #1454
2013-08-27 12:27:11 -07:00
John Firebaugh e30531277d Support polygon imagery bounds
Fixes #768
2013-08-27 11:25:11 -07:00
John Firebaugh 4e8cb0b97f Pull imagery from editor-imagery-index 2013-08-27 11:07:46 -07:00
John Firebaugh 20cf935c46 Optimize iD.svg.Labels 2013-08-26 16:33:03 -07:00
John Firebaugh f3c6f3eca4 Optimize use of iD.svg.Points.points 2013-08-26 15:54:58 -07:00
John Firebaugh 30f68c4ef9 Insert areas in sorted order
Fixes #1693
2013-08-26 15:27:57 -07:00
John Firebaugh 0a23c395ed Cache GeoJSON transient 2013-08-26 15:20:32 -07:00
John Firebaugh 7215e91ff2 Ensure asGeoJSON returns winding orders expected by D3 2013-08-26 14:39:08 -07:00
John Firebaugh 539a8520b4 Use d3.geo.area 2013-08-26 14:38:09 -07:00
tyr afc28fc3dc walkthrough: handle wrongly selected road type
Currently, when one selects a road type other than residential, the walkthrough gets stuck. This adds an additional step for this case and tells the user to redo the preset selection.
2013-08-24 22:42:04 +02:00
John Firebaugh 2e5b0de6d6 Merge pull request #1744 from tyrasd/patch-walkthrough-lines-tooltip
Fixes some walkthrough glitches
2013-08-24 10:46:16 -07:00
tyr 8c2fb92dad add missing context parameter to call of intro.pad() in method retry() for incomplete way drawings 2013-08-24 18:51:21 +02:00
tyr 7a1a97975e walkthrough: increase timeout for revealing road subgrid
200ms seems to be too low, because the fade-in transition seems to take 250ms and an the unfinished animation can cause troubles.
this fixes #1742
2013-08-24 18:29:38 +02:00
John Firebaugh e343fc51a7 1.1.6 2013-08-24 09:21:05 -07:00
John Firebaugh 0bec35fd8c Adjust for small screen 2013-08-24 09:11:29 -07:00
John Firebaugh 5217f7a34f Fix walkthrough on Firefox (#1743) 2013-08-24 09:08:17 -07:00