providers: complete?

This commit is contained in:
muerwre 2018-11-29 13:36:31 +07:00
parent 552e3effb8
commit b6bd300e1b
14 changed files with 150 additions and 29 deletions

View file

@ -72,6 +72,9 @@ export class Editor {
},
[MODES.SAVE]: {
stop: this.resetSaveDialog,
},
[MODES.PROVIDER]: {
toggle: this.clearMode,
}
};
@ -310,6 +313,8 @@ export class Editor {
});
setProvider = provider => {
if (provider === this.provider) return;
this.provider = provider;
this.map.setProvider(provider);
};