Commit Graph

50 Commits

Author SHA1 Message Date
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 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
Bryan Housel a90308bd75 Bump alpha version 2016-10-04 22:04:59 -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 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 57d0bc13cf Fix lint warnings, comment out crashy service reset code (re: #3324) 2016-09-23 10:23:24 -04:00
Kushan Joshi 4c996b9b42 refactor none to null 2016-09-13 19:53:02 +05:30
Eduard Popov 9cbf6217d7 Fix way disappearing due to invalid "layer" tag
Hello.

Now layer() returns only a finite number, not NaN.

/* Chrome 53 */
2016-09-08 12:26:27 +10:00
Tom MacWright 20962074ba Fix vertices areas midlines 2016-09-06 10:58:07 -04:00
Tom MacWright ed135ce9ef Enable lib tests 2016-09-05 10:22:45 -04:00
Tom MacWright 27f9f75eae Master-merge 2016-09-03 17:02:38 -04:00
Holger Jeromin d1105ccc14 Removing parseInt call of a number 2016-09-02 09:35:21 +02:00
Holger Jeromin aa1d03c823 Added Radix for parseInt call 2016-09-02 09:20:44 +02:00
Bryan Housel a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Kushan Joshi cb670ccdc4 add test cases for bicycleway 2016-08-22 18:17:12 +05:30
Tom MacWright cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Kushan Joshi c95df1c830 restructure lanesArray 2016-08-21 04:04:42 +05:30
Kushan Joshi ce948f7563 modify test cases to adjust lanes != total lane count 2016-08-21 03:35:52 +05:30
Kushan Joshi 9f76267152 add psv, hov, hgv , bicycle lanes 2016-08-21 02:34:47 +05:30
Kushan Joshi 80d2000291 add test cases for maxspeed & maxpseed:lanes 2016-08-20 18:32:35 +05:30
Kushan Joshi 51c0670a57 add maxspeed 2016-08-19 03:22:34 +05:30
Kushan Joshi 9a1c68f2b5 interim 2016-08-16 19:01:54 +05:30
Kushan Joshi 94b40cdfd0 add turn lanes 2016-08-16 16:04:33 +05:30
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 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
Eduard Popov ab190f085b fix critical error on save changes (#3264) 2016-07-22 11:52:19 -04: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
Tom MacWright 3856b1ff2f Inter-require iD instead of relying on the global (#3256) 2016-07-19 10:30:50 -04:00
Bryan Housel 7ca6d06254 Replace iD global with iD.Context() module (#3254) 2016-07-19 10:15:32 -04:00
Bryan Housel 0d8fb87f93 Treat entities on addr:interpolation lines as points, not vertices
(closes #3241)
2016-07-14 13:00:36 -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 39c82af158 Sort modules [eslint rule] 2016-07-06 12:12:08 +05:30
Tom MacWright b15338b964 Use local jxon 2016-07-05 19:00:12 -04:00
Tom MacWright 8f68221b9b Use osm-auth as a package. 2016-07-05 18:14:36 -04:00
Tom MacWright a8295e9706 Merge master 2016-07-05 18:03:54 -04:00
Kushan Joshi 780960c711 interim 2016-07-06 00:34:35 +05:30
Bryan Housel 197b936d50 Upgrade rbush to 2.x 2016-07-01 23:12:51 -04:00
Bryan Housel 2e10c9e21e Eliminate vendored rbush library
(re: #3180)
2016-06-26 21:34:10 -04:00
Kushan Joshi 332200b404 display lane count on sidebar 2016-06-22 16:11:47 -04:00
Kushan Joshi 07827e5a2d Adding test case for lanes().default 2016-06-22 16:11:47 -04:00
Kushan Joshi 4083a0e29e adding a lanes() to return lane data 2016-06-22 16:11:46 -04:00
Kushan Joshi 12df331d51 external modules for core 2016-06-18 02:08:14 +05:30
Kushan Joshi 59e6581aa5 Modularize iD.core 2016-06-16 18:41:37 +05:30