Make map.js play nice with leaflet 1.0.0 again

This commit is contained in:
Midgard 2020-05-22 22:35:28 +02:00
parent 296365b925
commit 4daecbccd3
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -4,19 +4,19 @@ $(document).ready(function() {
});
L.Icon.Default.imagePath = "img/";
L.Icon.Default.imagePath = "img";
var popuptemplate = Handlebars.compile($("#popup-template").html());
var BlueIcon = L.Icon.Default.extend({});
var RedIcon = L.Icon.Default.extend({
options: {
iconUrl: "red-marker.png"
iconUrl: "img/red-marker.png"
}
});
var ChristmasIcon = L.Icon.Default.extend({
options: {
iconUrl: "christmas-marker.png"
iconUrl: "img/christmas-marker.png"
}
});