mirror of
https://github.com/ccmdi/obsidian-map-plus.git
synced 2026-07-22 06:43:14 +00:00
fix: always show map, even if coordinates are unset
This commit is contained in:
parent
df46d8637b
commit
a6335f4bde
1 changed files with 2 additions and 3 deletions
|
|
@ -146,12 +146,11 @@ export class MapBasesView extends BasesView {
|
|||
}
|
||||
|
||||
private async renderMap(): Promise<void> {
|
||||
// Need either coordinates property OR global lat/lng keys
|
||||
if (!this.data || (!this.coordinatesProp && (!this.plugin.settings.latKey || !this.plugin.settings.lngKey))) {
|
||||
if (!this.data) {
|
||||
this.containerEl.removeClass('is-loading');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const loadingOverlay = this.containerEl.createDiv({ cls: 'map-loading-overlay' });
|
||||
const spinner = loadingOverlay.createDiv();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue