Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return L.icon({
iconUrl: markerList[1],
iconSize: [20, 56],
iconAnchor: [10, 28]
});
} else {
return L.icon({
iconUrl: url,
iconSize: [20, 56],
iconAnchor: [10, 28]
});
}
}
var plan = new ReversablePlan([], {
geocoder: Geocoder.nominatim(),
routeWhileDragging: true,
createMarker: function(i, wp, n) {
var options = {
draggable: this.draggableWaypoints,
icon: makeIcon(i, n)
};
var marker = L.marker(wp.latLng, options);
marker.on('click', function() {
plan.spliceWaypoints(i, 1);
});
return marker;
},
routeDragInterval: 100,
addWaypoints: true,
waypointMode: 'snap',
position: 'topright',
return L.icon({
iconUrl: markerList[1],
iconSize: [20, 56],
iconAnchor: [10, 28]
});
} else {
return L.icon({
iconUrl: url,
iconSize: [20, 56],
iconAnchor: [10, 28]
});
}
}
var plan = new ReversablePlan([], {
geocoder: Geocoder.nominatim(),
routeWhileDragging: true,
createMarker: function(i, wp, n) {
var options = {
draggable: this.draggableWaypoints,
icon: makeIcon(i, n)
};
var marker = L.marker(wp.latLng, options);
marker.on('click', function() {
plan.spliceWaypoints(i, 1);
});
return marker;
},
routeDragInterval: options.lrm.routeDragInterval,
addWaypoints: true,
waypointMode: 'snap',
position: 'topright',