Commit c47cd006 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸
Browse files

adjusted paths for new store

parent 7e3bfa50
......@@ -22,7 +22,7 @@
"reqwest" : "https://github.com/ded/reqwest.git",
"leaflet-container-control": "https://git.smhi.se/stw/leaflet-container-control.git",
"leaflet-player-control": "https://git.smhi.se/stw/leaflet-player-control.git",
"leaflet-tilelayer-wms-store-smhi": "https://git.smhi.se/stw/leaflet-tilelayer-wms-store-smhi.git",
"leaflet-tilelayer-wms-store": "https://git.smhi.se/stw/leaflet-tilelayer-wms-store.git",
"leaflet-timedimension-weather": "https://git.smhi.se/stw/L.TimeDimension.layer.weather.git",
"stwkit": "https://git.smhi.se/stw/stwkit.git"
},
......
......@@ -39,8 +39,8 @@
<script src="../bower_components/leaflet-timedimension/dist/leaflet.timedimension.src.js"></script>
<script src="../bower_components/moment/moment.js"></script>
<script src="../bower_components/leaflet-player-control/src/leaflet-player-control.js"></script>
<script src="../bower_components/leaflet-timedimension-weather/src/L.TimeDimension.layer.wms.picasso.js"></script>
<script src="../bower_components/leaflet-tilelayer-wms-store-smhi/src/leaflet-tilelayer-wms-store-smhi.js"></script>
<script src="../bower_components/leaflet-timedimension-weather/dist/L.TimeDimension.layer.weather.js"></script>
<script src="../bower_components/leaflet-tilelayer-wms-store/src/leaflet-tilelayer-wms-store-smhi.js"></script>
<script src="../bower_components/stwkit/src/components/pleasewait.js"></script>
<script src="../src/leaflet-weather-control.js"></script>
<!-- endbower -->
......
......@@ -118,18 +118,18 @@ var L;
var legendDiv = L.DomUtil.create('div', 'uk-width-1-1', legendGridGrid);
switch (layername) {
case 'SMHI/NEMO/BF/currentCombined':
self.forecastInformation(legendDiv, '00 UTC, 12 UTC');
self.forecastInformation(legendDiv, '00 UTC');
self.currentLegendSMHI(legendDiv, self.getLangValue(layersplit[layersplit.length - 1]));
break;
case 'SMHI/NEMO/BF/windCombined':
self.forecastInformation(legendDiv, '00 UTC, 12 UTC');
self.forecastInformation(legendDiv, '00 UTC');
self.windLegendSMHI(legendDiv, self.getLangValue(layersplit[layersplit.length - 1]));
break;
case 'SMHI/NEMO/BF/windDirection':
self.forecastInformation(legendDiv, '00 UTC, 12 UTC');
self.forecastInformation(legendDiv, '00 UTC');
break;
case 'SMHI/NEMO/BF/iceCombined':
self.forecastInformation(legendDiv, '00 UTC, 12 UTC');
self.forecastInformation(legendDiv, '00 UTC');
self.sstLegendSMHI(legendDiv, self.getLangValue(layersplit[layersplit.length - 1] + 'sst'));
self.iceLegendSMHI(legendDiv, self.getLangValue(layersplit[layersplit.length - 1] + 'ice'));
break;
......@@ -206,7 +206,7 @@ var L;
self.iconMap[id].classList.add('uk-icon-chevron-up');
}
var wait = new STWkit.PleaseWait();
wait.start();
wait.start(3000);
self.player.disable();
var date = self.player.getDate();
var timeLayer = self.getTimeLayer(id);
......@@ -219,6 +219,7 @@ var L;
timeLayer.on('metadataload', metadataloadfn);
var metadataerrorfn = function () {
timeLayer.off('metadataerror', metadataerrorfn);
wait.stop();
};
timeLayer.on('metadataerror', metadataerrorfn);
self.timeLayers.addLayer(timeLayer);
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment