Log which icon

This commit is contained in:
Midgard 2020-05-22 22:00:43 +02:00
parent c9294024a5
commit d3cb7bfca8
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -34,13 +34,17 @@ $(document).ready(function() {
function pointToLayer(feature, latlng) {
var icon = redIcon;
var iconDescription = "red";
if (feature.properties) {
if (feature.properties.holidays && christmasSeason) {
icon = christmasIcon;
iconDescription = "christmas";
} else if (!feature.properties.hours.saturday && !feature.properties.hours.sunday) {
icon = blueIcon;
iconDescription = "blue";
}
}
console.debug("Created " + iconDescription + " marker");
return new HoverMarker(latlng, { icon: icon, riseOnHover: true});
}