Commit Graph

2777 Commits

Author SHA1 Message Date
John Firebaugh
161a4e24a6 Parallelism 2013-09-30 10:37:59 -07:00
Minh Nguyễn
77c7091cf2 Show relation documentation for relation presets
See http://taginfo.openstreetmap.org/taginfo/apidoc#api_4_relation_wiki_pages

Fixes #1862.
2013-09-30 10:35:00 -07:00
John Firebaugh
30bf1cd87c Remove unused variables 2013-09-30 10:14:40 -07:00
Paul Mach
0e080b3ed6 Limit squaring to near square or near straight nodes 2013-09-29 13:44:30 -07:00
John Firebaugh
75b6ec746b Clean up 2013-09-29 07:55:59 -07:00
John Firebaugh
166bc5de5b Clean up 2013-09-29 07:46:45 -07:00
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
20c5209aad Update togeojson.js to 0.3.0 2013-09-25 15:01:04 -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