Commit Graph

212 Commits

Author SHA1 Message Date
Bryan Housel
8f044dd05e Minor code fiddling, preparing to address line labeling issues today 2016-10-17 10:36:06 -04:00
Bryan Housel
053074d076 Export live binding for services in iD.services, fix init/reset
(closes #3324)

Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.

This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding.  `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel
b07bf8eaa2 Extract lane parsing code from way.js into lanes.js 2016-10-12 00:10:46 -04:00
Bryan Housel
f50e80d0b5 Refactor Intersection, Multipolygon from geo to osm 2016-10-11 23:09:27 -04:00
Bryan Housel
07fa5fcc34 Refactor Entity, Node, Relation, Tags, Way from core to osm 2016-10-11 22:41:24 -04:00
Bryan Housel
fbbd0709f5 Add radix parameter to parseInt calls 2016-10-11 15:24:01 -04:00
Bryan Housel
acd851b75a Merge branch 'lane' of https://github.com/kepta/iD into kepta-lane 2016-10-11 10:51:03 -04:00
npmcdn-to-unpkg-bot
3df007a9f4 Replace npmcdn.com with unpkg.com 2016-10-11 09:01:45 -04:00
Bryan Housel
c4724d7ae7 Allow network, genus, taxon, species lookups to expect uppercase values
(closes #3377)

In most cases we prefer taginfo value results with lowercase letters.
A few OSM keys expect values to contain uppercase values
This is not an exhaustive list (e.g. `name` also has uppercase values)
but these are the fields where taginfo value lookup is most useful.
2016-10-09 15:48:23 -04:00
Bryan Housel
1c3e778baf Check for rtl url parameter for testing (rather than regex) 2016-10-08 12:45:01 -04:00
Bryan Housel
6224ad3290 Merge branch 'rtl_editor' of https://github.com/mapmeld/iD into mapmeld-rtl_editor 2016-10-08 10:01:20 -04:00
Bryan Housel
84ba112ff4 Rebind clickhandler in update selection (bc it uses wrap selection) 2016-10-07 15:28:16 -04:00
Bryan Housel
7f61d36a5e Rename countryCode->code to avoid rollup name collision bug 2016-10-05 23:01:56 -04:00
Nick Doiron
c22867c279 search results and layer names 2016-10-05 01:38:13 -04:00
Nick Doiron
581bade5f3 update RTL detection 2016-10-05 01:38:13 -04:00
Nick Doiron
e208300ca5 fix mouse position calculation on RTL layout 2016-10-05 01:33:16 -04:00
Nick Doiron
6bc9e63fc3 map controls and menus 2016-10-05 01:33:16 -04:00
Nick Doiron
a9ee42bd94 undo and redo buttons 2016-10-05 01:32:45 -04:00
Nick Doiron
34a6382752 revised RTL features and detection 2016-10-05 01:31:14 -04:00
Bryan Housel
a90308bd75 Bump alpha version 2016-10-04 22:04:59 -04:00
Bryan Housel
87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -04:00
Bryan Housel
0d0e54fdff Fix more namespaces that were missed in the first pass 2016-10-04 21:15:30 -04:00
Bryan Housel
66348e4a18 Export flattened names 2016-10-04 20:50:31 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
04039db286 Merge pull request #3405 from edpop/patch-3
Fix way disappearing due to invalid "layer" tag
2016-10-01 10:26:41 -04:00
Bryan Housel
348a973f68 A few changes to make things work and test with Node 4, 5, 6 2016-09-29 10:53:07 -04:00
Bryan Housel
76d6abd43e Hide combobox on tabbing
(This only seems to affect the raw_tag_editor)
2016-09-28 15:51:57 -04:00
Bryan Housel
4a94474a3a Better guard code around wiki services, always call callbacks 2016-09-28 14:42:30 -04:00
Bryan Housel
774fe1e67a Guard against calling wikipedia service with empty query 2016-09-28 00:36:00 -04:00
Bryan Housel
aeb2e26fa0 Reassign input variable to the update selection after merge 2016-09-27 23:28:09 -04:00
Bryan Housel
132e699c89 Replace extend with smarter copy for tag changes
Because compound fields like `address` may send a bunch of undefined tag
values in the `changed` object, and we don't want them all to turn into
raw tags (but we do want them to override any existing tags).

This is subtlely different than what `_.extend({}, existing, changed)` did.
2016-09-27 23:20:16 -04:00
Bryan Housel
b92e49f61a Fix raw tag editor data binding of key/value input fields 2016-09-27 23:06:28 -04:00
Bryan Housel
460ea42c95 Fix enter/update selections for multicombo chips 2016-09-27 00:12:37 -04:00
Bryan Housel
7b6a15eaa9 Fix left/right selections in cycleway field 2016-09-27 00:01:08 -04:00
Bryan Housel
6d2e999885 Fix enter/update selections for textpaths and text labels 2016-09-26 23:25:59 -04:00
Bryan Housel
464b0b2aca Fix issues with walkthrough 2016-09-26 16:25:38 -04:00
Bryan Housel
d7b3bb5a89 Fix placeholders set during enter selection not finding input element
Also remove unhelpful placeholder from access_simple.json
2016-09-26 01:03:55 -04:00
Bryan Housel
e4509cc123 Update all dependencies, remove d3 from the greenkeeper ignore list
Also add a few workarounds for a few weird rollup v0.36 issues
2016-09-26 00:42:51 -04:00
Bryan Housel
b90c5459ab Add RatchetyInterpolator for breathe behavior
The interpolator now just runs a few discrete steps, avoiding most of the
repainting that was causing high CPU and noisy laptop fans.  And it still
looks pretty good.

(closes #2911)
2016-09-24 23:22:00 -04:00
Bryan Housel
ab1b5ad39c Fix hover behavior 2016-09-24 00:55:35 -04:00
Bryan Housel
12afac526b Fix breathe behavior 2016-09-24 00:13:28 -04:00
Bryan Housel
545cd4a44d Fix oneways 2016-09-23 12:00:21 -04:00
Bryan Housel
57d0bc13cf Fix lint warnings, comment out crashy service reset code (re: #3324) 2016-09-23 10:23:24 -04:00
Bryan Housel
9f956e414c Fix ui.Commit merge updated selections 2016-09-23 10:02:36 -04:00
Bryan Housel
cd4e6f038e Fix and cleanup all map easing transitions, now supports eased zoom, pan 2016-09-22 23:51:40 -04:00
Bryan Housel
4e1a7cb6c8 Fix propagation of change events 2016-09-21 01:17:59 -04:00
Bryan Housel
0ea59a043d Fields mostly working (but not dispatch/update) 2016-09-20 22:41:05 -04:00
Bryan Housel
c5a8bcc3a6 More fixes to fields 2016-09-18 12:57:23 -04:00
Bryan Housel
6346a11880 Continuing to audit enter/update selections that need merge() 2016-09-18 00:51:43 -04:00
Bryan Housel
a6d683eaf7 Code cleanups in svg, ui for selection merging, fix Mapillary. 2016-09-17 23:26:49 -04:00