if ($(this).hasClass('disabled')) return;
- OSM.route('/new_note');
+ OSM.router.route('/new_note');
});
function createNote(marker, form, url) {
- var location = marker.getLatLng();
+ var location = marker.getLatLng().wrap();
marker.options.draggable = false;
marker.dragging.disable();
e.preventDefault();
createNote(newNote, e.target.form, '/api/0.6/notes.json');
});
+
+ return map.getState();
};
page.unload = function () {