Fix: veel pinnen waren ten onrechte rood
Als er "Gesloten" stond bij zaterdag en zondag, werd het rood aangeduid. Nu worden die zoals het hoort blauw.
This commit is contained in:
parent
2b46153d20
commit
baab6bbfc4
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ $(document).ready(function() {
|
||||||
} else if (feature.properties.holidays && christmasSeason) {
|
} else if (feature.properties.holidays && christmasSeason) {
|
||||||
icon = christmasIcon;
|
icon = christmasIcon;
|
||||||
iconDescription = "christmas";
|
iconDescription = "christmas";
|
||||||
} else if (!feature.properties.hours.saturday && !feature.properties.hours.sunday) {
|
} else if ((!feature.properties.hours.saturday && !feature.properties.hours.sunday)||(feature.properties.hours.saturday.toLowerCase()==="gesloten"&&feature.properties.hours.sunday.toLowerCase()==="gesloten")) {
|
||||||
icon = blueIcon;
|
icon = blueIcon;
|
||||||
iconDescription = "blue";
|
iconDescription = "blue";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue