});
function createNote(marker, form, url) {
- var location = marker.getLatLng();
+ var location = marker.getLatLng().wrap();
marker.options.draggable = false;
marker.dragging.disable();
});
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 () {