riseOnHover enabled
This commit is contained in:
commit
f3ffd9bf92
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue