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);
}
}
});
newNote.on("dragstart dragend", function(a) {
- console.log(a);
newHalo(newNote.getLatLng(), a.type);
});
e.preventDefault();
createNote(newNote, e.target.form, '/api/0.6/notes.json');
});
+
+ return map.getState();
};
page.unload = function () {