+ var endpointDragCallback = function (dragging) {
+ if (!map.hasLayer(polyline)) return;
+ if (dragging && !chosenEngine.draggable) return;
+ if (dragging && awaitingRoute) return;
+
+ getRoute(false, !dragging);
+ };
+ var endpointGeocodeCallback = function () {
+ getRoute(true, true);
+ };
+