Skip to content

Commit cebb63d

Browse files
committed
Ensured that time series cards are not displayed for kmz without them
1 parent 62f9807 commit cebb63d

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

data/map.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,15 @@
601601
legendControl.addTo(map);
602602
}
603603

604-
if (windninjaTimeSeriesEnabled && timeSeriesImg) {
605-
showWindNinjaTimeSeries(timeSeriesImg);
604+
if (windninjaTimeSeriesEnabled) {
605+
606+
if (timeSeriesImg) {
607+
showWindNinjaTimeSeries(timeSeriesImg);
608+
} else if (activeWindNinjaTimeSeriesImg) {
609+
activeWindNinjaTimeSeriesImg.remove();
610+
activeWindNinjaTimeSeriesImg = null;
611+
}
612+
606613
}
607614
});
608615

0 commit comments

Comments
 (0)