if ($(this).hasClass('disabled')) return;
- OSM.route('/new_note');
+ OSM.router.route('/note/new');
});
function createNote(marker, form, url) {
- var location = marker.getLatLng();
+ var location = marker.getLatLng().wrap();
marker.options.draggable = false;
marker.dragging.disable();
newNote = null;
noteLayer.removeLayer(marker);
addNoteButton.removeClass("active");
- OSM.route('/browse/note/' + feature.properties.id);
+ OSM.router.route('/note/' + feature.properties.id);
}
}