riseOnHover enabled

This commit is contained in:
Kobe Mertens 2019-02-18 11:06:58 +01:00
commit f3ffd9bf92

View file

@ -28,13 +28,13 @@ $(document).ready(function() {
} }
function pointToLayer(feature, latlng) { function pointToLayer(feature, latlng) {
var marker = new HoverMarker(latlng, { icon: redIcon}); var marker = new HoverMarker(latlng, { icon: redIcon, riseOnHover: true});
if (feature.properties) { if (feature.properties) {
if (feature.properties.holidays && christmasHoliday) { if (feature.properties.holidays && christmasHoliday) {
var marker = new HoverMarker(latlng, { icon: christmasIcon}); var marker = new HoverMarker(latlng, { icon: christmasIcon, riseOnHover: true});
} }
if (!feature.properties.hours.saturday && !feature.properties.hours.sunday) { if (!feature.properties.hours.saturday && !feature.properties.hours.sunday) {
var marker = new HoverMarker(latlng, { icon: blueIcon}); var marker = new HoverMarker(latlng, { icon: blueIcon, riseOnHover: true});
} }
} }
return marker return marker