Log which icon
This commit is contained in:
parent
c9294024a5
commit
d3cb7bfca8
1 changed files with 4 additions and 0 deletions
|
@ -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});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue