Commit Graph

51 Commits

Author SHA1 Message Date
Bryan Housel
fac0429c4c Don't call updateTags extra times
(closes #3650)
2016-12-17 22:38:28 -05:00
Bryan Housel
a3de3534c3 Don't reuse click handler in enter selection, set on update
(closes #3638)
2016-12-08 11:08:21 -05:00
Bryan Housel
cb6801c2b6 Address field improvements and bugfixes
(closes #3553)

* eliminate duplicate values in suggestions
* set minItems(1) on all combo boxes
* setup dropdowns for all common address fields
2016-11-05 23:48:14 -04:00
Bryan Housel
1043402b88 Don't call behavior.off unless behaviors were actually added 2016-11-01 21:42:37 -04:00
Bryan Housel
98d484fc1f Restore hover behavior to restrictions editor, add breathe behavior
The issue was: now that selections are immutable you can't add behaviors
to them unless they are already entered.  i.e. the surface selection in
enter does not end up being the real surface after merging to update.
2016-10-30 11:35:36 -04:00
Bryan Housel
8b6e5db004 Fix turn restrictions editor enter/update selection issues 2016-10-30 00:01:05 -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
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
7f61d36a5e Rename countryCode->code to avoid rollup name collision bug 2016-10-05 23:01:56 -04:00
Bryan Housel
87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -04:00
Bryan Housel
3102a4ae6a Rename all the things to include pseudonamespaces 2016-10-04 19:06:20 -04:00
Bryan Housel
4a94474a3a Better guard code around wiki services, always call callbacks 2016-09-28 14:42:30 -04:00
Bryan Housel
aeb2e26fa0 Reassign input variable to the update selection after merge 2016-09-27 23:28:09 -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
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
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
41b2122efe Fix wrong setDimensions call (dimensions is a method on Layers) 2016-09-08 22:35:36 -04:00
Tom MacWright
4fcbcddc5b Fix eslint 2016-09-06 10:18:05 -04:00
Tom MacWright
2b366b5f78 Fix access field 2016-09-06 10:06:28 -04:00
Tom MacWright
92f2908ffe Fix wikipedia 2016-09-05 21:48:22 -04:00
Tom MacWright
6189af9b47 fix localized 2016-09-05 21:40:41 -04:00
Tom MacWright
ed135ce9ef Enable lib tests 2016-09-05 10:22:45 -04:00
Tom MacWright
c5b3a16d3a Fix getSetValue, fix line display 2016-09-03 16:39:30 -04:00
Bryan Housel
a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Tom MacWright
a59b0d9fdf Fix transitions and multis 2016-08-24 10:42:34 -04:00
Tom MacWright
cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Tom MacWright
8819d3d061 Remove continued iD references (#3341)
* Remove continued iD references

* make build.js safe enough to dodge json plugin bug

* Package as an iife to avoid var name issue
2016-08-10 20:06:45 -07:00
Tom MacWright
6341d4e4b5 one-shot build (#3266)
* One-shot development

* Move jsonp to module
* Tooltip -> module
* Remove d3.jsonp
* Fix tooltip lint
* Load all libs but d3 itself with require
* Add top-level brfs

* Unformat intro graph
2016-08-10 15:25:19 -07:00
Bryan Housel
1ab3ba2369 Merge pull request #3302 from 1ec5/network-combo
Combo field with taginfo for road networks
2016-08-02 15:41:55 -04:00
Bryan Housel
3779d21197 Add 5, 10, 15 to imperial maxspeed values 2016-08-02 12:28:27 -04:00
Minh Nguyễn
d1d6b5399e Filter taginfo by country code prefix
taginfo returns results that match anywhere within the string. So in Canada, you might get results like US:CA:SF. This change filters out such results.
2016-08-02 07:26:50 -07:00
Minh Nguyễn
05ecac64cc Compare lowercase value to country code 2016-08-02 07:23:17 -07:00
Minh Nguyễn
4922a37b00 Combo field with taginfo for road networks
Added a variation of the combo field for road networks. If the field’s value is blank or shares a prefix with the current country code, search taginfo for values beginning with the country code and a colon.
2016-08-02 07:23:17 -07:00
Minh Nguyễn
ee74066b5c Added 75, 80 mph speed limits 2016-08-01 23:10:20 -07:00
Bryan Housel
1c3a250576 Add missing 60 mph maxspeed option 2016-08-01 23:16:05 -04:00
Bryan Housel
d307221612 Space around operators 2016-07-31 23:57:39 -04:00
Bryan Housel
a85bad8c8c Restructure lane data (cherry pick) 2016-07-31 23:53:07 -04:00
Bryan Housel
fbce168809 Draw rectangles (cherry pick) 2016-07-31 23:50:57 -04:00
Minh Nguyễn
e1bdae7800 taginfo tooltips for combo values (#3299)
Each combo value obtained from taginfo now has a tooltip describing the value, if available.
2016-07-31 23:37:09 -04:00
Bryan Housel
747b9f37d5 Pacify eslint 2016-07-24 17:39:06 -07:00
Bryan Housel
0755847401 Default Wikipedia language field to the user's detected language
(fixes #3265)
2016-07-23 16:17:38 -07:00
Tom MacWright
af776501d3 Require locale, second pass (#3259)
* Require locale, second pass

* Remove t global, remove t where it isn't needed
2016-07-21 16:20:13 -04:00
Tom MacWright
604d1e2719 import lodash (#3257) 2016-07-19 12:04:16 -04:00
Bryan Housel
cb71e90384 Module for iD.Detect() (#3243)
* convert iD.Detect() iife to a module

* iD.Detect() should return loaded locale (except for 'en')

(The previous code was a hack to replace the detected locale with the loaded
locale.  Now that Detect is a module, we can not replace the detected locale
from external code, but we can have Detect() return the locale we really want)
2016-07-13 09:15:47 -04:00
Kushan Joshi
fc680a2e9a external modules for services 2016-07-06 14:39:58 -04:00
Kushan Joshi
39c82af158 Sort modules [eslint rule] 2016-07-06 12:12:08 +05:30
Kushan Joshi
780960c711 interim 2016-07-06 00:34:35 +05:30