Skip to content

Commit 4021273

Browse files
Merge pull request #57 from SJVAir/update/default-smoke-on
Update Enable HMS Smoke By Default
2 parents f3597b0 + 1fae767 commit 4021273

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"files": [
55
"dist"
66
],
7-
"version": "2.6.1",
7+
"version": "2.6.2",
88
"type": "module",
99
"scripts": {
1010
"dev": "vite",

src/DisplayOptions/HMSSmoke.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const smokeLayer: L.FeatureGroup = new L.FeatureGroup();
1111
const hmsSmokeVisibility = Checkbox.defineOptions({
1212
smoke: {
1313
label: "HMS Smoke",
14-
model: false,
14+
model: true,
1515
icon: {
1616
id: "heat",
1717
}
@@ -23,6 +23,9 @@ export const useHMSSmoke = asyncInitializer<DisplayOptionProps<Checkbox>>(async
2323
let smokeData = [];
2424
map.createPane(hmsSmokePane).style.zIndex = "601";
2525

26+
smokeData = await loadSmoke();
27+
smokeLayer.addTo(map);
28+
2629
watch(
2730
() => hmsSmokeVisibility.smoke.model.value,
2831
async (isChecked) => {

0 commit comments

Comments
 (0)