Skip to content

Commit

Permalink
Use current model when opening the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Aug 1, 2024
1 parent a9f00c2 commit 85340e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/windy-sounding/src/Plugin.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts">
import { onDestroy, onMount } from 'svelte';
import { openPlugin, mountPlugin, destroyPlugin } from './sounding';
import { DEFAULT_MODEL } from './util/utils';
let pluginElement: HTMLElement;
Expand All @@ -17,7 +16,7 @@
const mapCenter = W.map.map.getCenter();
const lat = Number(parameters?.lat ?? mapCenter.lat);
const lon = Number(parameters?.lon ?? mapCenter.lng);
const modelName = parameters?.modelName ?? DEFAULT_MODEL;
const modelName = parameters?.modelName ?? W.store.get('product');
openPlugin({ lat, lon, modelName });
};
Expand Down

0 comments on commit 85340e7

Please sign in to comment.