From d3cb7bfca8ab99b92b2e52c134ae55a6b2c7a41c Mon Sep 17 00:00:00 2001 From: Midgard Date: Fri, 22 May 2020 22:00:43 +0200 Subject: [PATCH] Log which icon --- src/js/map.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/map.js b/src/js/map.js index 388d731..11fb069 100644 --- a/src/js/map.js +++ b/src/js/map.js @@ -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}); }