mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-26 23:43:46 +00:00
(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()`
14 lines
400 B
JavaScript
14 lines
400 B
JavaScript
import serviceMapillary from './mapillary';
|
|
import serviceNominatim from './nominatim';
|
|
import serviceTaginfo from './taginfo';
|
|
import serviceWikidata from './wikidata';
|
|
import serviceWikipedia from './wikipedia';
|
|
|
|
export var services = {
|
|
mapillary: serviceMapillary,
|
|
nominatim: serviceNominatim,
|
|
taginfo: serviceTaginfo,
|
|
wikidata: serviceWikidata,
|
|
wikipedia: serviceWikipedia
|
|
};
|