[BUGFIX] Start and end mode
This commit is contained in:
parent
89b9a4216e
commit
f3eb100da8
@ -275,7 +275,7 @@ define(["map/clientlayer", "map/labelslayer",
|
||||
map = L.map(el, options);
|
||||
var now = new Date();
|
||||
config.mapLayers.forEach(function (item, i) {
|
||||
if (item.config.start <= now.getHours() || item.config.end > now.getHours()) {
|
||||
if ((typeof item.config.start === 'number' && item.config.start <= now.getHours()) || (typeof item.config.end === 'number' && item.config.end > now.getHours())) {
|
||||
item.config.order = item.config.start * -1;
|
||||
} else {
|
||||
item.config.order = i;
|
||||
|
Loading…
Reference in New Issue
Block a user