Commit Graph

545 Commits

Author SHA1 Message Date
Quincy Morgan 7f0db9f3bf Disable elastic scroll page bounce on standalone iD (close #7576) 2020-05-29 13:11:19 -04:00
Quincy Morgan a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan 36082a8119 Use ideditor as the container class instead of id-container
Scope all CSS to iD's container (close #7437)
Don't style html or body elements unless running standalone iD
2020-03-22 16:54:12 -07:00
Quincy Morgan f625406ccc Convert some element ids to classes to avoid collisions when embedding iD
Clarify some footer class names
2020-03-20 13:43:07 -07:00
Bryan Housel c0090929e0 Remove no longer needed substring - see dc7fba4bf 2020-02-21 10:32:27 -05:00
Bryan Housel e19bcb77d5 Require init() call before coreContext starts doing things
(closes #7304)
2020-01-29 19:27:12 -05:00
Bryan Housel f2c14ab970 Restore the global id for console dev debugging 2020-01-27 15:48:21 -05:00
Bryan Housel 6a4a1d57a7 Make a separate build:legacy target that runs buble
- `iD.js` for most browsers, `iD.legacy.js` for IE11/PhantomJS
- Skip buble plugin during normal development for faster builds
2020-01-21 15:25:10 -05:00
Bryan Housel c548d0e216 Add ability to dynamically load a different bundle in IE11 2020-01-21 13:19:06 -05:00
Quincy Morgan ebcbfea17c Add additional viewport content values (re: #6049) 2019-03-15 10:43:43 -04:00
Bryan Housel 71b2d2c6b7 Upgrade legacy symbols in tests
- iD.Context -> iD.coreContext
- iD.Graph -> iD.coreGraph
- iD.Node -> iD.osmNode
- iD.Way -> iD.osmWay
- iD.Relation -> iD.osmRelation
2019-01-30 15:43:02 -05:00
Bryan Housel 30ff68348f Don't disable boundries when disable_features list is present
(also removed some unused functions)
2017-10-23 15:53:46 -04:00
Bryan Housel 9f1d476594 Attempt to remove d3, lodash from bundle, but leave available for tests 2017-09-26 14:19:14 -04:00
Bryan Housel 7da27f2a16 Hide administrative boundaries by default
(closes #4292)
2017-09-18 22:31:11 -04:00
Bryan Housel be07dcccdf Always access OSM over https now
If you were logged in before, you might need to logout with
`id.connection().logout()` or delete the OAuth data from localStorage
2017-03-02 00:54:24 -05:00
Bryan Housel 5c8bb43ec0 Combine all the css files into dist/iD.css 2017-02-20 15:55:27 -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 f55de9ac7d Create source switcher in ui() loaded callback 2016-11-13 20:57:04 -05:00
Bryan Housel f800e5afbc Remove unnecessary window parameter to Context 2016-11-10 15:19:03 -05:00
Bryan Housel 45d85e04c5 Make authenticated api calls if possible 2016-10-24 01:21:38 -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 aa2c4afd47 Flatten names, cleanups in index.html 2016-10-04 22:03:38 -04:00
Bryan Housel 87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -04:00
Tom MacWright 760c515c8a Fix source toggle, fix way drawing 2016-09-04 17:33:42 -04:00
Tom MacWright b493c85399 Refactor away multi requirement 2016-09-03 15:13:20 -04:00
Bryan Housel 44d16b25b7 Restore the source switcher 2016-09-03 00:37:37 -04:00
Tom MacWright cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04: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
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 7ca6d06254 Replace iD global with iD.Context() module (#3254) 2016-07-19 10:15:32 -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 b3492b17a0 external modules for SVG 2016-07-06 14:39:14 -04:00
Tom MacWright 9c82bba6fb [wip] use diff3 like a module (#3228)
* [wip] use diff3 like a module

* Fix diff3 style, comment out diff3 test
2016-07-06 14:16:25 -04:00
Tom MacWright b15338b964 Use local jxon 2016-07-05 19:00:12 -04:00
Tom MacWright 712d471a6b Use togeojson package 2016-07-05 18:29:15 -04:00
Tom MacWright 869725551f Use marked as a dependency 2016-07-05 18:22:43 -04:00
Tom MacWright 8f68221b9b Use osm-auth as a package. 2016-07-05 18:14:36 -04:00
Kushan Joshi 9f2a251d31 Fixing Interdependecy between ui.preset and ui.core 2016-07-02 16:00:52 +05:30
Bryan Housel 2e10c9e21e Eliminate vendored rbush library
(re: #3180)
2016-06-26 21:34:10 -04:00
Bryan Housel 448fa7aa0c Eliminate vendored sexagesimal library
(re: #3180)
2016-06-24 16:46:55 -04:00
Kushan Joshi 4083a0e29e adding a lanes() to return lane data 2016-06-22 16:11:46 -04:00
Kushan Joshi 2b4cb618b2 Remove svg and deal with it separately with ui 2016-06-22 12:34:43 +05:30
Kushan Joshi 6a56ad547c external modules for renderer 2016-06-22 12:34:43 +05:30
Kushan Joshi 68e0400332 Add external modules to validations 2016-06-22 12:34:43 +05:30
Kushan Joshi 25485c40fb external modules for presets 2016-06-22 12:34:43 +05:30
Kushan Joshi 52c466bc27 external modules for operations 2016-06-22 12:34:43 +05:30
Kushan Joshi e79f8fb022 external modules for util 2016-06-22 12:34:43 +05:30