Commit Graph

708 Commits

Author SHA1 Message Date
John Firebaugh
bf1e50df49 Merge pull request #2266 from bhousel/bhousel-scale
Add linear map scale to footer section
2014-06-25 12:23:53 -07:00
Bryan Housel
e34e299fd0 add dLat/dLon <-> meters tests, narrower limits for distance tests. 2014-06-23 17:12:02 -04:00
Bryan Housel
c5ada5052a Add stubs for map scale.. 2014-06-18 11:36:16 -04:00
Bryan Housel
1a2b9c82f6 add tests, jshint cleanup 2014-06-16 11:49:07 -04:00
John Firebaugh
203381694b Merge branch 'refs/heads/bhousel-bhousel-layers' 2014-06-13 12:03:16 -07:00
John Firebaugh
a3c7b5956d Remove obsolete tests 2014-06-13 12:03:08 -07:00
Bryan Housel
38cb42e0bc Add tests for line z-indexing. 2014-06-11 22:30:36 -04:00
Bryan Housel
7f35ab6125 separate svg group for areas and their related strokes/fills
(for consistency)
2014-06-11 13:01:27 -04:00
Christian Schwarz
ff0357b927 Added countrycode spec 2014-06-10 19:09:53 +02:00
Christian Schwarz
cfa023a988 Removed pointInFeature 2014-06-10 18:25:39 +02:00
Bryan Housel
0c5f563a26 add test for iD.Entity.layer(), fix spelling of man_made. 2014-06-09 23:39:16 -04:00
Christian Schwarz
49eae8e389 Switched to a custom country code service 2014-06-05 20:30:12 +02:00
Christian Schwarz
b3acd56bbb Added support for localization of address fields 2014-06-03 22:49:42 +02:00
John Firebaugh
0c09871c4a Don’t show turn restriction editor for non-highways (fixes #2240) 2014-05-27 14:35:57 -07:00
Bryan Housel
89ac5f41db Merge pull request #2235 from bhousel/bhousel-fields
Allow checkbox fields to support custom strings
2014-05-23 22:16:14 -04:00
Bryan Housel
10bd86cb45 Check single source for implied onewayness #2220 2014-05-23 17:07:11 -04:00
John Firebaugh
a2a4405ed8 Fix restriction type inference (fixes #2233) 2014-05-21 16:28:29 -07:00
John Firebaugh
48dc768bbb Merge branch 'turn-restrictions' 2014-05-21 14:22:22 -07:00
Bryan Housel
b8501bcf89 iD.Way.isOneWay should return false if oneway=no #2220
i.e. overrides implied oneway tag like `highway=motorway` or `junction=roundabout`
2014-05-20 00:14:23 -04:00
John Firebaugh
8b6ce214a2 Initial support for only_* restrictions 2014-05-19 15:53:46 -07:00
Bryan Housel
429f20a450 Improve access tag placeholders #2221 2014-05-19 12:22:52 -04:00
John Firebaugh
f811c19cdc Fix straight on restricting with splits 2014-05-18 16:02:53 -07:00
John Firebaugh
6089a6aaea Better solution for maintaining selection 2014-05-18 16:02:48 -07:00
John Firebaugh
243e86b277 Update selected segment after splits 2014-05-18 16:02:48 -07:00
John Firebaugh
9d5df793b5 Fix turn generation from ways that need splitting 2014-05-18 16:02:48 -07:00
John Firebaugh
573237e94e Render U-turns 2014-05-18 16:02:48 -07:00
John Firebaugh
3d210ac3c1 Implement basic restriction toggling 2014-05-18 16:02:47 -07:00
John Firebaugh
26422d9c9a Show ways in restriction editor as if they were split 2014-05-18 16:02:47 -07:00
John Firebaugh
f39ae89177 Render turns of selected way 2014-05-18 16:02:47 -07:00
John Firebaugh
90bc8dd70a Extract iD.geo.RawMercator 2014-05-18 16:02:46 -07:00
Bryan Housel
004be4bb9a Access field should allow "yes" placeholders to be overridden (#2213) 2014-05-02 15:30:00 -04:00
Bryan Housel
14efaee004 Remove "designated" from the general access case (#2213) 2014-05-02 14:46:07 -04:00
Bryan Housel
cab2705d57 Add tests for circularizing concave ways, straight line ways, Add isCircular() test.. 2014-04-23 16:11:42 -04:00
Bryan Housel
d245121b19 Fix isConvex() to correctly test the angle that closes the way. 2014-04-23 14:12:20 -04:00
Bryan Housel
a2331f8c93 Add tests for iD.geo.cross and iD.way.isConvex 2014-04-15 00:26:53 -04:00
Bryan Housel
fcdf7bbee2 Improve test cases for disconnect action to cover shared area nodes.. 2014-04-01 17:26:25 -04:00
Bryan Housel
5afcbf9400 Update tests to not allow closed way to disconnect itself. 2014-03-30 23:06:39 -04:00
Bryan Housel
1df54a700a Disable circularize and orthogonalize operations when way is <80% contained in the viewport 2014-03-27 22:47:34 -04:00
John Firebaugh
2ab9239a9f More accurate modification tests 2014-02-25 10:12:34 -08:00
tyr
efd3223e0c extend history loading fix to deletions
Deleted objects need to be kept in the base of the history stack, too.

This also improves the respective unit tests.
2014-02-22 14:09:17 +01:00
tyr
86c4bc9105 add tests for "restoring from v3 JSON" (core/history.js) 2014-02-21 10:19:36 +01:00
tyr
fc0a15e6c4 fix duplicate objects after restoring data from localStorage
This makes sure that the originals of changed entities get merged
into the base of the stack after restoring the data from JSON.
This is necessary, because the stack will only have elements for
the current viewport after a restart and previously *modified*
objects will now be falsely detected as *created* ones.

Also removed some ineffective code.
2014-02-21 10:01:26 +01:00
John Firebaugh
44e260a429 Fix tests 2014-02-19 09:46:54 -08:00
John Firebaugh
3733b02a37 Expand tests 2014-02-09 18:45:47 -08:00
tyr
422f76be77 merge-polygons: do not merge tags from all possible members
previously when merging polygons, all tags from all involved
members were merged into the resulting multipolygon. This includes
existing inner members with different tags or outer members that
are not directly involved in the merge operations.

Example: A forest (landuse=forest) containing some clearings
(landuse=meadow), whose outline is in part a river (waterway=river)
is merged with a new untagged area. The resulting multipolygon
would have falsely been tagged: landuse=forest;meadow + waterway=river
2014-02-09 17:53:55 +01:00
tyr
b71c98cfca protect against relation loops, part 2. fixes #2096 2014-01-10 11:12:10 +01:00
John Firebaugh
1561c366be Update OSM.org links 2014-01-08 16:29:00 -08:00
John Firebaugh
ab8a4ffd7b Update GitHub links 2014-01-08 16:14:28 -08:00
John Firebaugh
4bf21cbc8a Restore deleted nodes that are discovered to have extant parents
This bug has existed since 1.0!

Fixes #2085
2014-01-06 16:23:15 -08:00
John Firebaugh
3e2968310b Ensure "New Relation..." is always available (fixes #2066) 2014-01-03 13:00:36 -08:00