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:
7734485917411998476 2021-06-03 00:11:20 +02:00 committed by GitHub
parent 2b46153d20
commit baab6bbfc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ $(document).ready(function() {
} else if (feature.properties.holidays && christmasSeason) {
icon = christmasIcon;
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;
iconDescription = "blue";
}