mirror of
https://github.com/ccmdi/obsidian-map-plus.git
synced 2026-07-22 06:43:14 +00:00
feat: refresh on lat/lng default change, delays for set
This commit is contained in:
parent
a6335f4bde
commit
bbed46bcd6
1 changed files with 9 additions and 1 deletions
|
|
@ -50,6 +50,9 @@ export class MapSettingTab extends PluginSettingTab {
|
|||
.onChange(async (value) => {
|
||||
this.plugin.settings.latKey = value;
|
||||
await this.plugin.saveSettings();
|
||||
setTimeout(() => {
|
||||
this.plugin.refreshAllMapViews();
|
||||
}, 1000);
|
||||
}));
|
||||
|
||||
new Setting(containerEl)
|
||||
|
|
@ -61,6 +64,9 @@ export class MapSettingTab extends PluginSettingTab {
|
|||
.onChange(async (value) => {
|
||||
this.plugin.settings.lngKey = value;
|
||||
await this.plugin.saveSettings();
|
||||
setTimeout(() => {
|
||||
this.plugin.refreshAllMapViews();
|
||||
}, 1000);
|
||||
}));
|
||||
|
||||
new Setting(containerEl)
|
||||
|
|
@ -72,7 +78,9 @@ export class MapSettingTab extends PluginSettingTab {
|
|||
.onChange(async (value) => {
|
||||
this.plugin.settings.strokeWidth = value;
|
||||
await this.plugin.saveSettings();
|
||||
this.plugin.refreshAllMapViews();
|
||||
setTimeout(() => {
|
||||
this.plugin.refreshAllMapViews();
|
||||
}, 250);
|
||||
}));
|
||||
|
||||
new Setting(containerEl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue