Commit Graph

1069 Commits

Author SHA1 Message Date
Bryan Housel
1a8cfcc8b1 Changeset refactor
(closes #2633)

* move osmChangeJXON from osm service to osmChangeset
* cleanup putChangeset for code clarity
* adjust params for callbacks (pass changeset around instead of changeset_id)
* add commit.reset() to reset changeset object after successful save
* improve checks for changeset tags (trim whitespace, etc)
2017-03-15 11:03:43 -04:00
Bryan Housel
de44a73e05 Fix areaKeys logic to better handle presets that can be area or line 2017-03-12 15:29:14 -04:00
Bryan Housel
d1aac857a4 Ignore server changesets with missing comment tag or empty comment 2017-03-11 14:28:30 -05:00
Bryan Housel
f783fe4942 Create osmChangeset object, inherit from osmEntity 2017-03-11 01:12:37 -05:00
mstn
05e5cf9030 add type information to references 2017-03-02 11:26:14 +01:00
mstn
3205650798 order to-be-created relations by dependencies in a changeset 2017-03-02 09:17:08 +01:00
Bryan Housel
2c11b693b8 Merge branch 'edit_menu' 2017-02-25 15:29:01 -05:00
Bryan Housel
4f8d772397 More improvements to select behavior re contextmenu, shiftclick, etc. 2017-02-21 22:16:17 -05:00
Bryan Housel
00b5ca12bd Fix css link in test harness 2017-02-20 16:56:45 -05:00
Bryan Housel
3908da03cf Fix styling of flash and footer and use absolutely positioned divs
Also fix flash tests
2017-02-17 00:23:24 -05:00
Bryan Housel
c18cc7577d Add flash test, avoid using sinon.useFakeTimers in tests.
sinon.useFakeTimers mocks setInterval, setTimeout, etc,
but not requestAnimationFrame, which d3 transitions rely on.
2017-02-11 00:19:49 -05:00
Bryan Housel
d7416b2d0c Fix nominatim / geocoder test
(closes #3767)
2017-02-02 16:00:45 -05:00
Bryan Housel
8ecff8b8bc Add osmNode#isConnected
This is used to draw vertices
* where multiple parent ways meet
* where a single way self intersects (but not the closing node of a loop)

We were using Graph#isShared or osmNode#isIntersection, but this is slightly
different to handle self-intersecting ways.
2017-01-23 23:44:04 -05:00
Bryan Housel
04971478cb Add osmNode#isEndpoint 2017-01-23 21:03:34 -05:00
Bryan Housel
ec2c2e6612 Ensure isDegenerate can be called for all entities 2017-01-23 14:17:41 -05:00
Bryan Housel
94483af4c7 Fix service name nominatim -> geocoder 2017-01-17 16:46:41 +05:30
Bryan Housel
f109efda7b Fix close() for single node ways 2017-01-12 15:56:46 +05:30
Bryan Housel
cadb38009a Add tests for way.close, way.unclose 2017-01-09 19:58:18 -05:00
Bryan Housel
8676dd6e4c Changes to removeNode and add tests 2017-01-09 18:38:28 -05:00
Bryan Housel
7b86afc9de Changes to replaceNode and add tests, also stricter isClosed 2017-01-09 18:16:30 -05:00
Bryan Housel
f510038791 Changes to updateNode and add tests 2017-01-09 17:33:46 -05:00
Bryan Housel
f1cdde0f92 Changes to addNode and add tests 2017-01-09 17:33:26 -05:00
Bryan Housel
5ffe5e0a5b Merge branch 'replace-node' of https://github.com/slhh/iD into slhh-replace-node 2017-01-05 14:17:57 -05:00
Bryan Housel
8ce6b9e185 Merge branch 'transitioned-actions' 2017-01-04 17:26:22 -05:00
Bryan Housel
9ba610a977 Add test for transitioned history.perform 2017-01-04 16:06:09 -05:00
Bryan Housel
c2713c3a3f For node-way merge, preserve original node if possible
(closes #3683)
2016-12-31 02:01:13 -05:00
slhh
fa70d79622 Additional tests added for addNode, updateNode, and replaceNode. 2016-12-24 18:32:26 +01:00
Bryan Housel
ef96fde38a Add tests for transitioned orthogonalize action 2016-12-23 16:37:17 -05:00
Bryan Housel
5dde5aeded Add tests for transitioned circularize action 2016-12-23 16:14:49 -05:00
Bryan Housel
f9c09c0648 Add tests for transitioned reflect action 2016-12-23 15:05:51 -05:00
Bryan Housel
723f0ca43a Add tests for transitioned straighten action 2016-12-23 14:58:18 -05:00
Bryan Housel
37534aed0e More cleanup of operations and post-paste behavior
* Support move, rotate, reflect, delete post paste on multiselection
* Improve text and error msgs for singular vs multi selections
* Move `disabled` checks from actions to operations
* Reproject center of rotation (closes #3667)
* Cleanup tests
2016-12-21 23:58:13 -05:00
Bryan Housel
cad4c0090c Refactor rotation code to geoRotate, add tests 2016-12-21 11:21:06 -05:00
Bryan Housel
6ab9489fe7 Add utilGetAllNodes to get all nodes and descendants 2016-12-20 22:37:53 -05:00
Bryan Housel
2267035dfb Support both reflect long axis and reflect short axis operations 2016-12-16 13:59:33 -05:00
Bryan Housel
5a6045fd3d Merge branch 'master' into Psigio-3375 2016-12-14 11:30:53 -05:00
Bryan Housel
6ca4b13304 Store view transform and selectedIDs w/history, and undo/redo them
(closes #2204)
2016-12-10 23:25:58 -05:00
Bryan Housel
8a66b3d892 Don't enter iD.modeSelect without valid entities in selectedIDs 2016-12-09 11:32:14 -05:00
Bryan Housel
a7ac44f6e8 Refactor imageryBlacklists so it can be called without triggering a GET
Previous code was problematic because we need the function to
to properly blacklist custom imagery passed in through the url hash,
before iD is completely initialized.  Triggering GET causes tests to
break because osm service testing has side effects :-/
2016-12-04 21:35:55 -05:00
Bryan Housel
b9888e45e4 Add imageryBlacklists function to get blacklists from OSM API
(for #3623)
2016-12-03 19:25:07 -05:00
Bryan Housel
2453c5c8b7 Eliminate symlinks in repository - shelljs/shx can make them
(closes #3545)
2016-11-30 17:06:33 -05:00
Bryan Housel
9b7d79a3fe Use live bound object for presets object, change context.presets() getter 2016-11-14 15:44:02 -05:00
Bryan Housel
93d50b4e87 Use live bound object for imagery array, remove context.imagery() accessor
Also update documentation, closes #3359
2016-11-14 11:16:45 -05:00
Bryan Housel
f800e5afbc Remove unnecessary window parameter to Context 2016-11-10 15:19:03 -05:00
Bryan Housel
af3db7ea36 Swap url hash map order to zoom/latitude/longitude
(closes #3554)
2016-11-10 09:56:20 -05:00
Bryan Housel
b8be480267 Tests for loadFromAPI, esp to cover retry and dispatch behaviors 2016-11-09 17:59:07 -05:00
Bryan Housel
9845f0594e Don't rely on test side effects to init() osm service 2016-11-09 11:41:19 -05:00
Bryan Housel
16ada1f29a Better error handling for common osm api error conditions
* if 509 Bandwidth Exceeded / 429 Too Many Requests, prompt for login
(closes #2262)
* if 400 Bad Request / 401 Unauthorized / 403 Forbidden - logout and retry
(closes #3546)
2016-11-08 21:43:27 -05:00
Jon D
fb72725b4d Update test index after rename 2016-11-06 11:40:15 +00:00
Jon D
73f3069c59 Rename for consistency, add logic to prevent flip if all of object not visible and if linked to hidden. Label does not render for message when not enabled 2016-11-06 11:15:15 +00:00